I'm trying to make a pokemon, and the goal is to achieve the whole four move limit thing on spells.
Basically this is what I need to do (you don't have to read this part, I'm mostly constructing my thoughts): I need to create an array of spells ranging in values from 0-16. (Roselia has 16 moves and 0 must be empty for this to work properly) I need to have this list consistently populated with the same spells in the same slots.
I also have to have Global variables that memorize a numeric value. An int works fine, it only needs to be two digits. Ok. Hmmm...So, in each script that gives a new move and takes one away I need to basically removespell the spell at the Global Variable's slot in the array. So the dialogue would have to be structured just so...I'll have to figure that out. Anyway, so if all the moveslots have a value other than 0 we get to a dialogue topic that reads "Which move would you like to forget?" and then there are four topics linked, the actual topic text chosen by the player is PKRoseliaMoveArray[PKMoveSlot1], PKRoseliaMoveArray[PKMoveSlot2], etc.
If they choose one of these topics, the response is "Roselia has forgotten" PKRoseliaMoveArray[PKMoveSlotX] (where x is whatever slot they chose) as string"! Roselia has learned Mega Drain!" (for example)
and then run a small script that basically says PKRoseliaActor.removespell(PKRoseliaMoveArray[PKMoveSlotX])
PKMoveSlotX.setValue(new spell's number in the array)
PKRoseliaActor.AddSpell(PKRoseliaMoveArray[PKMoveSlotX])
Does this all make sense? I dunno, I feel like there are a lot of gaps I'm not seeing...
