| 08-19-2004, 02:50 AM | #1 |
I am making a map that involves learning spells through tombs, but I have run into a roadblock when it comes to making the save/load code for it. I want to do it similar to my item setup (map at bottom), but the problem is that I can't find a way to detect if a unit has X ability, and then add it to the trigger so it attaches the info to the main password. I want a way to detect it but there isn't any ability to do so since WE assumes that all the skills you learn will be through hero abilities. Anyway... can anybody help. |
| 08-19-2004, 02:52 AM | #2 |
If Level of ability>0 then...However if you mean like if he has a hero skill I really don't know how to detect that easily. |
| 08-19-2004, 02:59 AM | #3 |
well maybe I should have explained a bit better. Basically I have a trigger that is ran from the parent trigger (isn't included on the map). There is a variable (that is already set up) that has 676 arrays, starting with AA then AB etc..., and I set up a seperate variable with all the spells in it (if you look at the map its the trigger SetSpells, it doesn't have any spells yet because the trigger is on a seperate map, but that will have 100 or more spells, 1 for each array). Then I want to check if the hero has spell[array 1], and if he does set the passcode to AA (since that was correspondant to the first array). if it doesn't it changes the variable to the sell array to up one, and checks it again (so it checks the next spell), and it keeps on doing that until it finds the correct spell. However the problem im having with is the check to see if the hero has the spell or not. EDIT: It appears that it might work, ill have to do a few dummy trigger to test it since I didn't even know a trigger like that existed, but we will see. Thanks Weeaddar, your work is an inspiration to us all (I would be using your RPG maker but I can't save with it, but still thanks). |
| 08-19-2004, 03:54 AM | #4 |
Well it was a lot more difficult then the items, because you couldn't specify which slot you were looking at (which was a pain in the ass), but I got it working. Thanks for the help. |
