|
Post by Lost In Thought on Feb 1, 2009 17:44:23 GMT -5
I'm adding a new consumed attribute [like HP or MP] to the DBS, and I have it running pretty well except one little thing... how do I show this attributes current value in the DBS's display? I need it to be shown similar to HP and MP at the top of the screen, or at the very least at the start of each party member's turn, so the player knows what they can and cannot safely do with that party member.. Help please.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 1, 2009 22:52:33 GMT -5
The only ways to get it to appear in the top left (as opposed to the bottom) are with Text Boxes or VFX. Using those would mean you'd have to figure out each member's stat and do a sort like this: Sort: Variable [member in party slot A's special stat] Apply if 0: (display 0 in text box or with VFX on screen under party member's HP/MP display) To End Apply if 1: (display 1 in text box or with VFX on screen under party member's HP/MP display) To End ...until you've reached the maximum. End Sort
You can also use temp variables and divisions to figure out each digit (ones, tens, and hundreds) then display each digit as a seperate text box or VFX (making your maximum number of sorts be 30 (10 (0-9) times 3 (quantity of number slots)). It might also help to decrease the value of each member's special stat with division (so instead of the range being, for example, 20-100, it would be 4-20).
|
|
|
Post by Lost In Thought on Feb 1, 2009 23:10:01 GMT -5
Okay, I will probably end up doing that (although I wish there was an easier way to do it and make it look nice). Thank you!
How could I get it to show at the beginning of each turn in the message box at the bottom of the screen? All I can think of at the moment is the turn start area of a direct or indirect effect. I'm probably going to use the text boxes you mentioned to make it look nice, but for testing purposes I might just do this and replace it when I'm more patient.
|
|
|
Post by Doan the Nado on Feb 5, 2009 11:47:42 GMT -5
In the Message Window commands there is definitely a way to display the value of a variable. I'm not sure where exactly that would go in the DBS though.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 5, 2009 21:50:58 GMT -5
I forget because I haven't touched RPGM2 for a few months, but under Game Settings there are two sections called "Flow 1" and "Flow 2" which hold system events which hold scripts which tell the game what to do during battles. If there's not one that occurs at the start (or very end) of every turn of every battle, then you'll need to make a Custom Indirect Effect and put it on every single party member and do the same thing but with the Indirect Effect's system event slots. The reason you'll need to put it on every member is because an Indirect Effect stops running when a member is KO'd.
For putting variables in message windows, it's rather easy and simple. You just do this:
Text Message: 'Poopyhead has ' Text: Show Content: Variable[current HP] Text Message: 'HP remaining.'
Note that you'd also want to load the member's info before displaying that so as to show their most recent (aka. current) HP value.
|
|
|
Post by Lost In Thought on Feb 6, 2009 6:33:31 GMT -5
Okay, thank you again. I didn't see anything for turn start or end when I looked at the Flow options in the game setting menu, so I guess I'll have to go with an effect's turn start or end script.
|
|