Group: Member
Posts: 5
Type: None
RM Skill: Intermediate
I've tried to copy a bit what's seen in the YEM equipment overhaul script since there is an identical tag for equipments but I just can't get it to work
when YEM::REGEXP::SKILL::EQUIP_STAT_PER case $1.upcase when "HP","MAXHP"; @equip_stat_per[:hp] = $2.to_i when "MP","MAXMP"; @equip_stat_per[:mp] = $2.to_i when "ATK"; @equip_stat_per[:atk] = $2.to_i when "DEF"; @equip_stat_per[:def] = $2.to_i when "SPI"; @equip_stat_per[:spi] = $2.to_i when "AGI"; @equip_stat_per[:agi] = $2.to_i when "HIT"; @equip_stat_per[:hit] = $2.to_i when "EVA"; @equip_stat_per[:eva] = $2.to_i when "CRI"; @equip_stat_per[:cri] = $2.to_i when "ODDS"; @equip_stat_per[:odds] = $2.to_i end
The error I get is this:
Script 'YEM Skill Equip System' line 356 : NameError occured
If someone already knows what's missing for this modification to work that would be awesome
**EDIT**
Turns out the error I got was because I had made a typo with my EQUIP_STAT_PER however even with the error gone it unfortunately still doesn't work Help is still needed friends !
This post has been edited by SuperWeirdo: May 20 2011, 05:31 PM
Group: Member
Posts: 5
Type: None
RM Skill: Intermediate
By the way, am I the only one who can't get the tag <stat: +x%> function for states ? This function is clearly documented in the custom states section of the Melody Engine 1 script and yet it has never worked for me using the melody 1.00m demo.
you likely haven't set it up right <atk: 110%> raise attack by 10% <atk: 90%> lowers attack by 10% also changing lines in the code can and will break things unless you know what you're doing
You also need to take into consideration the value of your stats as a 10% increase in Max HP when it's at 100 will only raise it by (Max HP /10 ) or a value of 10
This post has been edited by Twilight: May 19 2011, 08:04 PM
Group: Member
Posts: 5
Type: None
RM Skill: Intermediate
QUOTE (Twilight @ May 19 2011, 08:02 PM)
you likely haven't set it up right <atk: 110%> raise attack by 10% <atk: 90%> lowers attack by 10% also changing lines in the code can and will break things unless you know what you're doing
You also need to take into consideration the value of your stats as a 10% increase in Max HP when it's at 100 will only raise it by (Max HP /10 ) or a value of 10
I've tried that and it worked. However, for some reason I can't get the state to stack even with <max stack: x> I'm still wondering if it's because the <stat: x%> actually boosts the paremeter or if it sets it to the value. On the first case, it should be stackable on the second case, it wouldn't change anything to stack it.
By the way, since the changes I tried to make didn't work, I've reverted back to vanilla YEM. Anyway if anyone is aware of a way to modify YEM in order for it to support <stat: +x%> either for skills or states, that would be awesome.