HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to temporarily disable hero spells?

06-18-2004, 02:15 AM#1
Pyrus
I have an immolation type spell (turn on/turn off) on a hero of mine as a hero ablity. Is it possible that i could have his other ability (a hero ability) disabled while immolation is off and enabled while immolation is on?
06-18-2004, 02:25 AM#2
fugly
there probably is a way better than mine but here is my unexpeirenced approach, you have 2 abilities,
- 1 that is the disabled ability, so it does nothing but has text and a nice icon
- 2 the ability that you want enabled when IMO is turned on, now for triggering

Event - Unit is Issued Order
Condition - Order Issused = "ImolationOn" (your going to have to look this up, you want to use the string that is given for "Turn On" with imolation which can be found in the object editer for imolation)
Event - Remove Ability (Ability #1) From Triggering Unit
Add Ability (Ability #2) to Triggering unit
//////////////////////////////////////////////
///Trigger Number 2 does the opposite
//////////////////////////////////////////////
Event - Unit is Issued Order
Condition - Order Issused = "ImolationOff" (again your going to have to look this up, you want to use the string that is given for "Turn Off" with imolation which can be found in the object editer for imolation)
Event - Remove Ability (Ability #2) From Triggering Unit
Add Ability (Ability #1) to Triggering unit

and there ya go
06-18-2004, 02:42 AM#3
Pyrus
Thanks for trying but i dont like using AddAbility and RemoveAbility. Apparently when you remove an ability it cannot be added again. Anybody else.
06-18-2004, 02:47 AM#4
sweet5
umm yeah it can...I've done it in a few of my maps...
06-18-2004, 02:20 PM#5
Vexorian
you may try using engineering upgrade to temporary replacing the skill with a fake version that is disabled
06-18-2004, 06:15 PM#6
Pyrus
The best way it seems is to replace the skill with a fake version. How would I use the engineering upgrade to replace them. I know how it works, how it replaces the spells. Will i need to give the hero the engineering ability?
06-18-2004, 10:51 PM#7
Vexorian
yep, and that skill makes effect without showing in the commands section, if you just disable the ability based on the upgrade