HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Turning regular passive abilities into toggle abilities?

01-08-2007, 07:01 PM#1
Baron Crinkle
I have a number of passive abilities I would like to turn into auto-cast/toggle abilities and make them cost mana. Is there a way to do this gracefully through the editor, or do I need to involve triggers?
01-08-2007, 07:05 PM#2
Vexorian
You are forced to use triggers here
01-08-2007, 11:09 PM#3
Pyrogasm
Do you know how to use Disabled Spell books? If you don't, learn how 'cause you're gonna need them. Here's an example trigger for you for turning Bash into a toggleable ability.
Map Initilization Disable:
Collapse Events
Map Initilization
Conditions
Collapse Actions
Player Group - Pick every player in (All Players) and do (Player - Disable (Dummy Bash Spellbook) for (Picked Player))
Cast Add/Remove:
Collapse Events
Unit - A unit starts the effect of an ability
Collapse Conditions
Ability being cast equal to Dummy Bash Toggle
Collapse Actions
Collapse If (All conditions are true) then do (Actions), else do (Actions)
Collapse If - Conditions
Level of (Bash) for (Triggering unit) > 0
Collapse Then - Actions
Unit - Remove (Dummy Bash Spellbook) from (Triggering Unit)
Collapse Else - Actions
Unit - Add (Dummy Bash Spellbook) to (Triggering unit)
Unit - Set level of (Bash) for (Triggering Unit) to (Level of (Dummy Bash Toggle) for (Triggering Unit))
In the above trigger, "Bash" is the actual Bash ability, "Dummy Bash Toggle" is a dummy ability that does nothing, and "Dummy Bash Spellbook" is a diabled spellbook which contains the "Bash" ability.

Wash, rinse, repeat.