Hi, so this is probably going to be one of the most depressing things you help fix, but I'm still new and may be overlooking something.
So I am working through these: [http://www.rpgmakerweb.com/support/products/tutorials] tutorials and am currently working on the boss fight. The problem is.... well... take a look at the values here:
If you notice, I have it set to use "Aura" from 0-25% HP, however it is registering that as 0-0% HP. Also, in practice that is how it's behaving too. I shouldn't need to tell you what problems are arising from that. In addition, if I set the "Low" value to anything greater than 0, it sets the second value to 127836219378651297834% (Not the EXACT number, but that is roughly what appears).
[Ex. 1-157268512% HP]
Would anybody happen to know what is causing these issues and any potential fixes?
Also, another problem I am facing is with the "SelfSkillEffects" script within those tutorials. When I add it, I get back an error on Line 37, and now I'm not the best with Ruby so I couldn't see any syntax errors, but it looked fine from another language at first. The script is:
class RPG::Skill
def self_effects
if @self_effects.nil?
@self_effects = []
self.note.each_line {|a|
scan = a.scan(/<self[ ]*effect[ ]*\:[ ]*(\d+(?:[ ]*,[ ]*\d+)*)>/i)
scan[0][0].scan(/\d+/).each {|b|
@self_effects.push(@effects[b.to_i - 1]) if b.to_i >= 1
}
}
end
@self_effects
end
end
class Game_Battler
alias jet3745_item_effect_apply item_effect_apply
def item_effect_apply(user, item, effect, reffed = false)
if item.is_a?(RPG::Skill) && item.self_effects.include?(effect) && !reffed
user.item_effect_apply(user, item, effect, true)
return
end
jet3745_item_effect_apply(user, item, effect)
end
end
The problem is that it causes problem when any form of Damage Value appears (Player or Enemy takes damage), does not even have to be an attack that uses it. Anybody know what the problem is and any potential side-routes or fixes?
So I am working through these: [http://www.rpgmakerweb.com/support/products/tutorials] tutorials and am currently working on the boss fight. The problem is.... well... take a look at the values here:
If you notice, I have it set to use "Aura" from 0-25% HP, however it is registering that as 0-0% HP. Also, in practice that is how it's behaving too. I shouldn't need to tell you what problems are arising from that. In addition, if I set the "Low" value to anything greater than 0, it sets the second value to 127836219378651297834% (Not the EXACT number, but that is roughly what appears).
[Ex. 1-157268512% HP]
Would anybody happen to know what is causing these issues and any potential fixes?
Also, another problem I am facing is with the "SelfSkillEffects" script within those tutorials. When I add it, I get back an error on Line 37, and now I'm not the best with Ruby so I couldn't see any syntax errors, but it looked fine from another language at first. The script is:
class RPG::Skill
def self_effects
if @self_effects.nil?
@self_effects = []
self.note.each_line {|a|
scan = a.scan(/<self[ ]*effect[ ]*\:[ ]*(\d+(?:[ ]*,[ ]*\d+)*)>/i)
scan[0][0].scan(/\d+/).each {|b|
@self_effects.push(@effects[b.to_i - 1]) if b.to_i >= 1
}
}
end
@self_effects
end
end
class Game_Battler
alias jet3745_item_effect_apply item_effect_apply
def item_effect_apply(user, item, effect, reffed = false)
if item.is_a?(RPG::Skill) && item.self_effects.include?(effect) && !reffed
user.item_effect_apply(user, item, effect, true)
return
end
jet3745_item_effect_apply(user, item, effect)
end
end
The problem is that it causes problem when any form of Damage Value appears (Player or Enemy takes damage), does not even have to be an attack that uses it. Anybody know what the problem is and any potential side-routes or fixes?