- 1
- Posts
- 3
- Years
- he/him
- North America
- Seen May 5, 2023
Hello! I've never asked any questions here before so idk if I'm doing this right but I need a little help with my Essentials fangame, in particular, scripting an ability that changes my Pokémon's form. I've never made a fangame before and only have very basic C# experience so I really don't know what I'm doing here.
So the object of this script in Battle_AbilityEffects is to give my Pokémon, Lopot, an ability where when it gets hit by anything, it changes form.
Here is what I came up with after scouring other similar abilities and the essentials docs wiki:
Battle::AbilityEffects::OnBeingHit.add(:POTTED
proc { |ability, user, target, move, battle|
battler.form != 1
}
)
Could someone in the Essentials community who is familiar with battle scripting help a pal out? Many thanks to the kind, beautiful, and generous soul who helps out, that is, if anyone does. :D
So the object of this script in Battle_AbilityEffects is to give my Pokémon, Lopot, an ability where when it gets hit by anything, it changes form.
Here is what I came up with after scouring other similar abilities and the essentials docs wiki:
Battle::AbilityEffects::OnBeingHit.add(:POTTED
proc { |ability, user, target, move, battle|
battler.form != 1
}
)
Could someone in the Essentials community who is familiar with battle scripting help a pal out? Many thanks to the kind, beautiful, and generous soul who helps out, that is, if anyone does. :D