Help - Search - Members - Calendar
Full Version: Script Request-comparing shop item stats against actual
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS
Decedent
This may be in wrong forum, simply because I can't find the request part, but bare with me...

For RPG Maker XP

So during the shop processing scene, I can see how an item will effect a party members HP and SP, drawing it green, red or white depending on the change (thanks to 2 variables). But I can't do the same for AGI, STR, EVD etc...

Now I can see in the equip screen how it gets the values, but the shop scene doesn't have a right_window etc, I can't figure out how to get;
-The actor's STR (ignoring the equipped item obviously)
-The currently selected items str

It should look something like (simplified);

@newactor.str = actor.str + (items.str) (item being currently selected)

if newactor.str == actor.str
font = white
drawtext(X and Y values, "#{actor.str}")
else if newactor.str >= actor.str
font = green
drawtext(X and Y values, "#{actor.str}")
etc, etc

it's a long shot, just hoping someone has the exact thing I need, even a reference to a submitted tutorial or something that you have seen this in.
The Law G14
Is this VX? And so I got this down right, basically you're just trying extend the "changed stats" from Atk, Def, etc. to include things like Agi, str, etc.? I'll see what I can do to help if so smile.gif
Decedent
For XP, and yeah, so that when Plain ring is highlighted, I can see if it will increase or decrease a party members AGI, STR etc stats instead of just the plain old MDef, PDef and ATK.
The Law G14
Alright, gotcha, can you give me a mock up of some sort on how you would like it organized, because there is little space to draw all of those stats, unless you want me to combine all the stats together and check to see if on an overall level the equipment is "greater" than other equipment like how the default system does it.
Decedent


It won't need to display the before and after, only the after with the idea in mind that if the after is higher than the before, it will draw the value with green font, if ==, normal, and if <= red.

As you can see I have that set up with the HP and SP becuase I can get the before and after value easy enough and do the conditional branch scripting, but I can't get before and after values with the other 3 stats Str, Int and Spd.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.