Let's say you have scripts that change around damage or other aspects, such as skill_damage_multiplier[skill_id]
or have custom notetags that define a skill's base damage, such as
<skill_base_damage: 400> How could I reference a skill's data in the damage formula/etc itself,
such as
$data_skills[skill_id].skill_base_damage * a.atk / b.defor
value = 70; if @magical? then value *= 0.8 end; value You see, when your formulas start getting really long and complex and you're using custom notetag formula scripts for damage and custom ailments/effects, you start getting a really long comment box that's slow to navigate through.
That's why I'd like to be able to define all of the specifics of a skill via notetags at the top of the comment box, so I don't have to modify the formula for each skill. But, I can't seem to figure out how to reference a skill's data outside of the script editor.
I tried things like
@id
self.id
self.magical?
and it all returns errors
or have custom notetags that define a skill's base damage, such as
<skill_base_damage: 400> How could I reference a skill's data in the damage formula/etc itself,
such as
$data_skills[skill_id].skill_base_damage * a.atk / b.defor
value = 70; if @magical? then value *= 0.8 end; value You see, when your formulas start getting really long and complex and you're using custom notetag formula scripts for damage and custom ailments/effects, you start getting a really long comment box that's slow to navigate through.
That's why I'd like to be able to define all of the specifics of a skill via notetags at the top of the comment box, so I don't have to modify the formula for each skill. But, I can't seem to figure out how to reference a skill's data outside of the script editor.
I tried things like
@id
self.id
self.magical?
and it all returns errors