• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Prevent spell book closing

Status
Not open for further replies.
Level 7
Joined
Aug 19, 2009
Messages
278
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?
 
Level 7
Joined
Aug 19, 2009
Messages
278
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:
 
Level 5
Joined
Nov 30, 2012
Messages
200
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.
 
Level 7
Joined
Aug 19, 2009
Messages
278
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.
Top