| 06-03-2003, 08:03 PM | #1 |
I need to be able to know what skill level a particular hero has in a particular skill. I am willing to simply keep a variable and have it update when they level up that skill if that is the only way. Thanks, Sen |
| 06-03-2003, 08:08 PM | #2 |
I think its something to this tune.. (I'm not near my machine so I'm just conjecturing. Correct me if I'm wrong) Events A unit owned by playerX is issued an order Conditions isued order = whatever spell you want to increment Actions variable = variable + 1 |
| 06-03-2003, 08:12 PM | #3 |
Ah, thank you very much, diddn't realise it was something so simple. I will go test it out in a bit when I can, and tell you how it went. |
| 06-03-2003, 08:56 PM | #4 |
wrong. ability button is clicked. its really complex. wouldent sugest doing it if u dun know jass. |
| 06-04-2003, 02:36 AM | #5 |
I do know Jass, please how to test for the specific ability raised. |
| 06-04-2003, 02:57 AM | #6 |
If you know the answer, I'd like to know. I know JASS reasonably well (I know C++ very well, and JASS is just like C++ only more retarded) |
| 06-04-2003, 09:24 AM | #7 |
If you know the JASS script to do this, please just tell me Earth Fury ^^. |
| 06-04-2003, 10:07 AM | #8 |
And yet again EF is giving out bad info. There is already another thread by "Ultra..." something... Anyway, he is doing the exact same thing, he is doing this because his trigger-run spell needs to know what level it is, and he uses one variable to store this, as you are to do as well? Well, look in the thread because I don't know the exact command. It's only one trigger. Regards Dead-Inside |
| 06-04-2003, 03:12 PM | #9 |
combatken was on the right track, but the info was wrong, and earth-fury, it is not complex and you DONT need jass to do it: Events Unit Specific Event (unit learns a skill) Conditons Hero Skill comparasion (learned skill is = to (choose the skill)) Actions Varible = (value + 1) it is as simple as that |
| 06-04-2003, 05:11 PM | #10 |
Thanks guys! I knew it was something simple I just couldn't seem to find it. |
| 06-04-2003, 05:17 PM | #11 |
oops, what was I thinking! Ah, sorry for the misleading |
| 06-05-2003, 07:43 AM | #12 | |
Quote:
....magnetic, my man. ;) And from all the help I got in my thread, let me tell you for sure this system works like a charm: Events Unit Specific Event (unit learns a skill) Conditons Hero Skill comparasion (learned skill is = to (choose the skill)) Actions Set Varible = (Variable + 1) lets say your variable is numbnuts, it would look like numbutz = (numbnutz + 1) use 'arithmatic' and pick your variable for the first value, and the number 1 for the second to come up with the (numbnutz + 1) part. The tricky part comes in when you want it to recognize a custom spell. There's no preset for it the WE. You can't pick it from anywhere. At that point you just pick any spell, and convert the trigger to custom text, and if you picked let's say 'blizzard' as the spell, in the JASS Script it wont say 'blizzard', but it'll use the spell code Ahbz. All you need to do then is plug in YOUR custom spell's code, whatecer it is. in place of that. Only thing you would might want to change is if more than one player could possibly learn the skill, you'd haveta add in a bunch of player-specific conditions. That's about it. Then again maybe you wouldn't, heh. I did it in my map just to be on the safe side though, so yeah... |
