My heroes have a spellbook Hero ability that lets them cast multiple spells. When they cast these spells, I want to automatically close the book so they can see their regular spells and move, patrol, stop, hold position, and so on.
Originally I did this:
I recalled that there is an order you can give to a unit to make them open a spellbook. I used it in my Battle for Tatooine map. Does anyone know if there is a custom order I can give to CLOSE a spellbook? I'm looking for something like this:
Originally I did this:
-
Spell Book Fix
-
Events
- Unit - A unit owned by Player 7 (Green) Begins channeling an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Borean's Grace tranquility
- (Ability being cast) Equal to Consume Fires
- (Ability being cast) Equal to Consume Fire 2
- (Ability being cast) Equal to Crushing Wave channel
- (Ability being cast) Equal to Earthen Sanctuary Inferno (Neutral Hostile)
- (Ability being cast) Equal to Earthen Sanctuary Inferno (Neutral Hostile) 2
- (Ability being cast) Equal to Quake impale
- (Ability being cast) Equal to Fire Shield
- (Ability being cast) Equal to Fire Shield 2
- (Ability being cast) Equal to Gail of Wind rocket effect = 1
- (Ability being cast) Equal to Hurricane
- (Ability being cast) Equal to Kiss of the Witch fan of knives
- (Ability being cast) Equal to Lightning Rune
- (Ability being cast) Equal to Lamune's Dazzling Scouts
- (Ability being cast) Equal to Magnetic Rock (Neutral Hostile)
- (Ability being cast) Equal to Magnetic Rock (Neutral Hostile) 2
- (Ability being cast) Equal to Mists of Obscurement (aqua)
- (Ability being cast) Equal to Pyroclasm acid bomb 1
- (Ability being cast) Equal to Pyroclasm acid bomb 2
- (Ability being cast) Equal to Pyromantic Siege (Neutral Hostile 2)
- (Ability being cast) Equal to Sandstorm
- (Ability being cast) Equal to Sandstorm (snow)
- (Ability being cast) Equal to Smoke Screen channel
- (Ability being cast) Equal to Spirit Link Mirin Meld
- (Ability being cast) Equal to Touch of the Witch Roar(Morph)
- (Ability being cast) Equal to Twister Gate (Neutral Hostile)
- (Ability being cast) Equal to Water Barrier (more powerful)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Game - Force Player 7 (Green) to press Escape/Cancel
-
Events
I recalled that there is an order you can give to a unit to make them open a spellbook. I used it in my Battle for Tatooine map. Does anyone know if there is a custom order I can give to CLOSE a spellbook? I'm looking for something like this:
- Custom script: call IssueImmediateOrderById (udg_triggeringUnit, 852608)