squall_seawave
Member
well i am using the rtab of cogwheel minkoff and DerVVulfman but is a bit hard to do some thigs an i dont know if i am going the right way or i took a wrong turn
i want if somebody could explain me
what is speller
what is spell
what is state_p[battler]
what is state_m[battler]
what is target.damage[spell]
also in other note is there any special way to show animations in battle in the middle of the rtab? i mean show an animation to an especially made script for the rtab
i want if somebody could explain me
Code:
def def make_skill_action_result(battler, plus_id)
# Acquiring skill
@skill = $data_skills[battler.current_action.skill_id + plus_id]
# Verification whether or not it is cooperation skill
speller = synthe?(battler)
# Applying the effect of skill
for target in battler.target
if speller != nil
damage = 0
effective = false
state_p = []
state_m = []
d_result = false
for spell in speller
if spell.current_action.spell_id != 0
@skill = $data_skills[spell.current_action.spell_id + plus_id]
end
effective |= target.skill_effect(spell, @skill)
if target.damage[spell].class != String
d_result = true
damage += target.damage[spell]
elsif effective
effect = target.damage[spell]
end
state_p += target.state_p[spell]
state_m += target.state_m[spell]
target.damage.delete(spell)
target.state_p.delete(spell)
target.state_m.delete(spell)
end
if d_result
target.damage[battler] = damage
elsif effective
target.damage[battler] = effect
end
target.state_p[battler] = state_p
target.state_m[battler] = state_m
else
end
end
end
what is speller
what is spell
what is state_p[battler]
what is state_m[battler]
what is target.damage[spell]
also in other note is there any special way to show animations in battle in the middle of the rtab? i mean show an animation to an especially made script for the rtab