Help New guy looking for direction on scripting an item.

MarcStuts08

Rookie
Member
Posts
8
#1
Hello, I'm fairly new to the whole experience of Pokémon Essentials, but I have started work on a game (Beta is in testing to find quirks and oddities I've missed), but the first major hurdle I've run into is the creation of an item that's important to the game.

The main character gets a sword and I want to make it an item to be used in battle, when used an attack animation will be played for the sword, and non-elemental damage will be dealt to the enemy Pokémon. The sword would upgrade as you progress through the story, and get stronger (this is a simple fix, I'll just have a new item for each sword upgrade).

I'm trying to wrap my head around the best way to get started making this item, since as far as I'm aware, no current item is used on the enemy Pokémon from the bag, so I don't have a point of reference to start from.
 

TheMaper

Novice
Member
Posts
14
#3
I think I'll try to look into this if I have the time. I'm looking to allow the player to help their pokemon in battle, so I think the process will be similar to allowing the player to have an attack. I speculate you should look into mega evolutions, and try to figure out how to make another option like one, in this case called "use sword" or whatever the attack name would be.

Edit: One more thing, under pbItem_ItemEffect you could try looking at pokedolls as well as other in battle items like smokeballs. They seem to modify the value of battle.decision so perhaps you could try modifying that and add another option for your sword attack.
 
Last edited:
Top