- Joined
- Mar 12, 2020
- Messages
- 15
- Reaction score
- 3
- First Language
- English
- Primarily Uses
- RMVXA
I'm relatively new not only to this forum, rpgmaker or scripts, but also windows and game making. I've been practicing a while and recently started implementing Yanfly's scripts and learning how they operate and work. However this is something that I can't figure out and would like to ask for assistance on.
I had added in Yanfly's Battle Core script and several of the battle scripts along with that, but ever since I added them in combat won't work. Anytime I attempt it, before it shows anything in the screen this message pops up:
undefined method 'X' for Game_Enemy:Class
Originally it was for maxbuff because I had the Buffs and Stats script, but I took that out seeing if combat would work. When I did, the 'X' changed from 'maxbuff' to 'warmup_rate'. I haven't actually changed anything in the classes, monsters, actors yet, was just running it to see if the scripts worked but it doesn't. I tried to read the instructions on how to use it but I couldn't find anything. When the game crashes and I go to scripts, it immediately jumps to this part of the Yanfly Ace Skill Restrictions Script:
#--------------------------------------------------------------------------
# new method: wur
#--------------------------------------------------------------------------
def wur
n = 1.0
if actor?
n *= self.actor.warmup_rate
n *= self.class.warmup_rate
for equip in equips
next if equip.nil?
n *= equip.warmup_rate
end
else
n *= self.enemy.warmup_rate
if $imported["YEA-Doppelganger"] && !self.class.nil?
n *= self.class.warmup_rate
end
end
for state in states
next if state.nil?
n *= state.warmup_rate
end
return n
end
As I've explained already I'm new to script, so I'm not entirely sure what is going on. Whether it's that I should have written something in somewhere, taken something out, turn something off/on, or else something I'm not coming up with I'm unsure of what's wrong or what to do other than take out all the scripts (which is what I *don't* want). Can someone help me figure this out?
I had added in Yanfly's Battle Core script and several of the battle scripts along with that, but ever since I added them in combat won't work. Anytime I attempt it, before it shows anything in the screen this message pops up:
undefined method 'X' for Game_Enemy:Class
Originally it was for maxbuff because I had the Buffs and Stats script, but I took that out seeing if combat would work. When I did, the 'X' changed from 'maxbuff' to 'warmup_rate'. I haven't actually changed anything in the classes, monsters, actors yet, was just running it to see if the scripts worked but it doesn't. I tried to read the instructions on how to use it but I couldn't find anything. When the game crashes and I go to scripts, it immediately jumps to this part of the Yanfly Ace Skill Restrictions Script:
#--------------------------------------------------------------------------
# new method: wur
#--------------------------------------------------------------------------
def wur
n = 1.0
if actor?
n *= self.actor.warmup_rate
n *= self.class.warmup_rate
for equip in equips
next if equip.nil?
n *= equip.warmup_rate
end
else
n *= self.enemy.warmup_rate
if $imported["YEA-Doppelganger"] && !self.class.nil?
n *= self.class.warmup_rate
end
end
for state in states
next if state.nil?
n *= state.warmup_rate
end
return n
end
As I've explained already I'm new to script, so I'm not entirely sure what is going on. Whether it's that I should have written something in somewhere, taken something out, turn something off/on, or else something I'm not coming up with I'm unsure of what's wrong or what to do other than take out all the scripts (which is what I *don't* want). Can someone help me figure this out?



