| 08-24-2004, 06:30 AM | #1 |
I am almost ready to send my Cityscape Snipers into the first beta phase, but i am having difficulty with a trigger. What i want it to do is, when you pick up a sniper rifle, you get the Sniper Shot Ability. There are 10 levels to the ability. I want to trigger it so that when you use the Sniper rifle, the sniper shot skill goes up a level, without the use of skill points. Just use the item, increase the skill level. Anything is welcomed. Guesses, hunches, actual idea. If you think you are in the ballpark somewhere, post it, please. |
| 08-24-2004, 09:47 AM | #2 |
U would make the 10 different "sniper shot" abilities. Then you would create an ability array size 10. Then you would set sniper shot level1 = SNIPERVAR[1] sniper shot level2 = SNIPERVAR[2] sniper shot level3 = SNIPERVAR[3] sniper shot level4 = SNIPERVAR[4] sniper shot level5 = SNIPERVAR[5] sniper shot level6 = SNIPERVAR[6] sniper shot level7 = SNIPERVAR[7] sniper shot level8 = SNIPERVAR[8] sniper shot level9 = SNIPERVAR[9] sniper shot level10 = SNIPERVAR[10] at map initialization. Then you would do a trigger like this Unit begins casting ability for each integer a from 1 to 10 loop if Ability being cast = SNIPERVAR[integer a] then remove SNIPERVAR[integer a] give casting unit SNIPERVAR[integer a + 1] else do nothing This trigger will check if the sniper shot ability is being cast, and if so it will check to see what level of the spell is being cast. So level 1 being cast it will give SNIPERVAR[1 + 1 = 2] and it will remove SNIPERVAR[integer a = 1] from the casting unit. This could be a good place to start, hope this helps. |
| 08-24-2004, 04:37 PM | #3 |
I just went though what you put down, and i didn't see that condition you used: for each integer A from 1 to 10 loop. i only found; Integer A equal to ##. Unless you meant something else, please specify. I am at a stand still now. |
| 08-24-2004, 04:55 PM | #4 | |
Quote:
For Each Integer A 1 to 10... thats an action, not a condition. Use that action, and It'll make a loop function under it. For the part after that, he wants you to use the If/Then/Else, Multiple Functions, which is also an action. |
| 08-25-2004, 12:24 AM | #5 |
Ok. I got it so that it will work, finally. Now, i just need to work up a trigger to decrease the levels... Thank you eveyone. |
| 08-25-2004, 12:27 AM | #6 |
You all know there are functions/GUI triggers to increase and decrease the level of an ability in 1.17 don't you? |
| 08-25-2004, 12:42 AM | #7 |
yeah just use 1.17... |
| 08-25-2004, 06:13 AM | #8 |
I probably won't use 1.17 until it goes live on b.net on the Azeroth server. |
| 08-25-2004, 06:49 PM | #9 |
Then you're wasting your time because there are functions that do exactly what you're trying to do and you don't have to make a new spell for each level. |
| 08-25-2004, 07:00 PM | #10 |
I will say wait for 1.17 Removing and adding abilities resets cooldown |
| 08-26-2004, 02:59 PM | #11 |
gah... why can't they just hurry up with 1.17 already... i want my ability actions... |
