HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Right Click and decrease level...

08-30-2004, 01:39 AM#1
Aelita Lyoko
Well, i am about ready to through my Cityscape Snipers map into the first Beta stage. However, i will require a trigger to finish off my triggering part.

I have completed the Sniper Rifle trigger to increase the level. But now, i need to trigger it to decrease in level.

I need to be where you right-click the ability and it will decrease in level by 1 level.

My reputation point and I are hoping to get this solved.

Thank you!
08-30-2004, 01:47 AM#2
Progniss
Not sure how you have it set up, but you could do it by spells.
Increase & Decrease - (Spell like the Undead Statue Mana/Health ability)
When one of these are activated (the other cannot be activated) make the levels increase or decrease via spell is activated and spell being equal to eithor incease level or decrase level, and the action would then increase every 2 seconds with a wait trigger or whatever.

Code:
Event
unit begins casting an ability
condition
ability being cast = Increase
action
wait 2 secs
*if level is a variable number you werent really descriptive*
set level = level + 1

Code:
Event
unit begins casting an ability
condition
ability being cast = Decrease
action
wait 2 secs
*if level is a variable number you werent really descriptive*
set level = level - 1