- 17
- Posts
- 4
- Years
- Seen Feb 6, 2023
Working with pokemon essentials v18 .1
In my game you need to be able to use the stock hm moves as is, Cut, Surf,Fly,Rocksmash however when you get to a certain point in the game based on the number of badges, an npc "the charm speccialist" will offer to make a charm for you, eg: Cut Charm, Surf Charm, Fly Charm, Rock Smash Charm. I've got this all set out already as an event. essentially the pokemon will be able to use the hm move in the field (not in battle) without losing a move slot. in my game pokemon can forget HM moves so these can be frgotten once youve progressed enough into the game to acquire the charms.
so the question becomes, how to alter the field moves script to allow for checking for an held item as well as continue to check if the Pokemon has the move.
eg:
if pokemon has the item and can learn the move related to the item but does not have the move allow it to use move in the overworld.
else check it has the move and use it.
I've tried to add this myself but keep getting errors.
I've tried to add the check using:- pkmn.hasItem?(:CUTCHARM) and it just doesnt do anything.
Any help or a point to somthing else that can help is welcome, I will just ask peopel to remember to be nice as I've gotten "snotty" replies off people because they now how to do somthing and think it should be obvious how to do it. remember that is always the case for everyone.
thanks in advance for any replies.
In my game you need to be able to use the stock hm moves as is, Cut, Surf,Fly,Rocksmash however when you get to a certain point in the game based on the number of badges, an npc "the charm speccialist" will offer to make a charm for you, eg: Cut Charm, Surf Charm, Fly Charm, Rock Smash Charm. I've got this all set out already as an event. essentially the pokemon will be able to use the hm move in the field (not in battle) without losing a move slot. in my game pokemon can forget HM moves so these can be frgotten once youve progressed enough into the game to acquire the charms.
so the question becomes, how to alter the field moves script to allow for checking for an held item as well as continue to check if the Pokemon has the move.
eg:
if pokemon has the item and can learn the move related to the item but does not have the move allow it to use move in the overworld.
else check it has the move and use it.
I've tried to add this myself but keep getting errors.
I've tried to add the check using:- pkmn.hasItem?(:CUTCHARM) and it just doesnt do anything.
Any help or a point to somthing else that can help is welcome, I will just ask peopel to remember to be nice as I've gotten "snotty" replies off people because they now how to do somthing and think it should be obvious how to do it. remember that is always the case for everyone.
thanks in advance for any replies.