• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Prevent spell book closing

Status
Not open for further replies.
Level 7
Joined
Aug 19, 2009
Messages
279
When another spell book with the same base order id as the spell book which open is added or removed from the unit, the spell book automatically closes itself. Is there any way to prevent this?
 
Replace yourunit with the unit you want to open a spellbook with and ability rawcode with the ability rawcode of your spellbook (ctrl+D to see them).
JASS:
call IssueImmediateOrderById(yourunit,'ability rawcode')

If that doesn't work, then it's quite likely not possible.

Nope doesn't work... :goblin_cry:
 
Maybe it doesn't work if it's not a unit ability?
Why not try making the hotkey something like X and use the trigger action Game - Force Player 1 (Red) to press the key X
Like Xonok said, if that doesn't work then it's almost certainly not possible.
 
Maybe it doesn't work if it's not a unit ability?
Why not try making the hotkey something like X and use the trigger action Game - Force Player 1 (Red) to press the key X
Like Xonok said, if that doesn't work then it's almost certainly not possible.

Wow there was something like that in game? I didn't knew it.

Works!!!!!!! Thanks!!


Need another help now. Is there anyway to change the hotkey for the cancel key present in spellbook??


------EDIT---------
This bug was more useful to me than harmful lol..
 
Status
Not open for further replies.
Back
Top