Search found 188 matches

by LordShiranai
Sun Oct 31, 2010 9:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Hmm refreshing variables?
Replies: 28
Views: 4182

Re: Hmm refreshing variables?

@LS: ohh thanks for giving me a mock up to go by. o: always nice having a CLEAR refference. I hope that what is being posted provides a clear example. I understand that, like Jake said, there is a lot take in because I think many concepts were introduced in this thread. However, I think that you ar...
by LordShiranai
Sun Oct 31, 2010 9:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Hmm refreshing variables?
Replies: 28
Views: 4182

Re: Hmm refreshing variables?

Instead of
property Attackpower(get_power)

Try
Attackpower = property(get_power)
by LordShiranai
Sun Oct 31, 2010 8:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Hmm refreshing variables?
Replies: 28
Views: 4182

Re: Hmm refreshing variables?

Equipment is where things can get complicated, depending on what you want your equipment to do and how complex you want your battle system to be. Like Jake said, I'd probably store equipment as a reference to another object. You could do something like this if your character can just equip a weapon ...
by LordShiranai
Sun Oct 31, 2010 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Hmm refreshing variables?
Replies: 28
Views: 4182

Re: Hmm refreshing variables?

Ah I gotcha. so it only does the link one time when it's first set in that case. Therefore formulas inside wouldn't update would they? such as self.dodge = self.agi * .5 * self.lv It would only then take the link once. so if I had 5 as agi and 2 as lv. the dodge stat would equal to 5. But then at a...
by LordShiranai
Sun Oct 31, 2010 6:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Hmm refreshing variables?
Replies: 28
Views: 4182

Re: Hmm refreshing variables?

Thats what I figured would be best in terms of new attributes. But the max health thing is whats confusing me If classes update on the fly. wouldn't maxhp change because hp changes and we have self.maxhp = self.hp? Or does it not change because it's technically another attribute that we needed not ...
by LordShiranai
Sun Oct 31, 2010 6:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Hmm refreshing variables?
Replies: 28
Views: 4182

Re: Hmm refreshing variables?

Very good example by Jake of how to use objects to make things easier. One more question.. I see in the first bit, there is no Maxhealth in the list. Does classes add parts if one asigns them? Like in the above. it only gives slots for name, health, strength but then if later you say self.agility ag...
by LordShiranai
Sun Oct 31, 2010 1:17 am
Forum: Ren'Py Questions and Announcements
Topic: Help with Actions in Screen Language
Replies: 2
Views: 496

Re: Help with Actions in Screen Language

Generally, if you have a button that returns a value within a screen, you will want to use "call screen" or "renpy.call_screen" rather than "show screen."
by LordShiranai
Tue Oct 26, 2010 11:38 am
Forum: Creator Discussion
Topic: Mac appstore...
Replies: 21
Views: 1859

Re: Mac appstore...

It's probably going to need to be a "wait and see" thing for many game developers outside of the ultra casual / puzzle game fare. Given Apple's inconsistency with guideline enforcement for the iPhone app store, as well as terms that would seemingly cause most M rated games to be rejected, ...
by LordShiranai
Mon Oct 25, 2010 4:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Hiding a Stat Screen
Replies: 11
Views: 3014

Re: Hiding a Stat Screen

15 minutes later, I have a working system, LordShiranai. I am adding you to the "Special Thanks" credits of my game. Also, I might suggest that your post be added to the Cookbook: it's easy to copy into code, perfectly functional, and simple even for a newb-o like me to customize (I repla...
by LordShiranai
Mon Oct 25, 2010 3:18 pm
Forum: General Discussion
Topic: What happens when you character has...
Replies: 13
Views: 1765

Re: What happens when you character has...

I deliberately gave a character of mine the same last name like one author (Amelia Steinbeck, came from John Steinbeck). It doesn't really mean anything, it's just me liking the author and his last name. I'm not using her to represent him in any way similar to him. :) All the last names in Fatal He...
by LordShiranai
Mon Oct 25, 2010 1:54 pm
Forum: General Discussion
Topic: What happens when you character has...
Replies: 13
Views: 1765

Re: What happens when you character has...

You're going to be hard pressed to come up a name that nobody in the world has in a story with a contemporary setting. In most cases I wouldn't be overly concerned the "conflict." You probably don't need to worry about anything unless one of the following is true: 1. The individual is nota...
by LordShiranai
Sun Oct 24, 2010 7:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Hiding a Stat Screen
Replies: 11
Views: 3014

Re: Hiding a Stat Screen

No problem. Hope that it works for you.
by LordShiranai
Sun Oct 24, 2010 7:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Hiding a Stat Screen
Replies: 11
Views: 3014

Re: Hiding a Stat Screen

Okay, here is a very basic stat box that defines a custom screen in Python which does the basics of what you want. There may be a "better" way to do this, mind you, but this is pretty quick and dirty. The following is a screen defined with Python code, as well as a helper function which wi...
by LordShiranai
Sun Oct 24, 2010 6:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Hiding a Stat Screen
Replies: 11
Views: 3014

Re: Hiding a Stat Screen

You may be better off in 6.11 defining a custom screen versus using overlays. In many cases, screens will be easier to use.

Let me see if I can do a small example real quick.
by LordShiranai
Fri Oct 22, 2010 5:38 pm
Forum: Ren'Py Questions and Announcements
Topic: feature req: call_in_new_context doesn't trim label names
Replies: 7
Views: 871

Re: feature req: call_in_new_context doesn't trim label name

Just curious. Do other methods that take a label such as renpy.jump or ui.callsinnewcontext automatically strip trim? If so, I would agree that renpy.call_in_new_context should behave in a similar manner for consistency.