HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Requirements??

12-04-2006, 12:36 AM#1
Valdez
How can I make it to where one spell requires another to be active. For example, To use Storm Bolt the unit must be actively Wind Walked or Invisable.

Thanks,
~Valdez
12-04-2006, 12:51 AM#2
Ryude
Here is a simple way to activate a spell if a unit has another spell learned. If that's what you're asking.

Make a new trigger called Disable Storm Bolt, this will disable the use of storm bolt for all players.
Trigger:
Disable Storm Bolt
Collapse Events
Time - Elapsed game time is 1.00 seconds
Conditions
Collapse Actions
Player Group - Pick every player in (All players) and do (Player - Disable Storm Bolt for (Picked player))

Then make another trigger that enables the use of storm bolt if the player has learned Avatar, or whatever you want.
Trigger:
Enable Storm Bolt
Collapse Events
Unit - A unit Learns a skill
Collapse Conditions
(Learned Hero Skill) Equal to Avatar
Collapse Actions
Player - Enable Storm Bolt for (Owner of (Triggering unit))
12-04-2006, 01:39 AM#3
Vexorian
The "best" way although not truly multi instanceable is to use unit requirements, then have a dummy, invisible unit called "Active windwalk" and create that unit for the player when windwalk starts/ remove when it ends. Make that unit the requirement for storm bolt, the advantage is that the button UI will show it as requirement and disable the icon and all that kind of nice stuff.

The second best way which can be multi instanceable is to have 2 versions of storm bolt one which is actually a passive ability which does nothing and another which is the real one and replace between them when appropiate, the issue with this method is that cooldown gets reset
12-04-2006, 03:01 AM#4
Ryude
Quote:
Originally Posted by Vexorian
The "best" way although not truly multi instanceable is to use unit requirements, then have a dummy, invisible unit called "Active windwalk" and create that unit for the player when windwalk starts/ remove when it ends. Make that unit the requirement for storm bolt, the advantage is that the button UI will show it as requirement and disable the icon and all that kind of nice stuff.

The second best way which can be multi instanceable is to have 2 versions of storm bolt one which is actually a passive ability which does nothing and another which is the real one and replace between them when appropiate, the issue with this method is that cooldown gets reset

I never thought about the first one, I learn something new every day :P
12-04-2006, 04:07 PM#5
Valdez
Thanks guys. :)