• 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.

[Solved] Forcing to open a spellbook

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
Is there a way to let a unit open his spellbook?

I'm asking because I replace a specific ability in the spellbook, so I add a dummyspellbook with a new ability in it, etc, and I remove the old dummy spellbook.. Anyways... That closes the spellbook right after I added the dummybook.

Therefor I would like to know if I can automatically open it again with a simple trick in Jass or something?
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
JASS:
if GetLocalPlayer() == GetOwningPlayer(caster) then

    call ForceUIKey("Z")

endif

Like that?...
I'm always very insecure with locally doing things.:p
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
Thanks for the help guys.
I got it to work now.

However now I'm wondering an other thing.
Is it possible to track if a spellbook is currently open or not?
 
Thanks for the help guys.
I got it to work now.

However now I'm wondering an other thing.
Is it possible to track if a spellbook is currently open or not?

not possible.


What you can do is create dummy abilities that don't do anything. When they are used, they are removed and the spellbook in question is added and opened. If the ability level of the spellbook is >0, then that spellbook is currently open.

When escape is hit or another unit is selected, the spellbook is closed.
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
not possible.


What you can do is create dummy abilities that don't do anything. When they are used, they are removed and the spellbook in question is added and opened. If the ability level of the spellbook is >0, then that spellbook is currently open.

When escape is hit or another unit is selected, the spellbook is closed.

Alright.
Well thats too much of a hassle for just a very slight improvement.
It's not worth it.

Thanks anyway!
 
Status
Not open for further replies.
Top