• 🏆 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!

Detect Spellbook and Auto-Cast

Status
Not open for further replies.
Level 2
Joined
Dec 25, 2008
Messages
24
Hi All!

Well, i wonder how can i to detect the spellbook ability, not detect an ability from the spellbook, just detect when it open and close (not the spellbook item)

I tried - With Order, and ability begin cast and more but nothing.

And is possible order to auto-cast an avility with triggers? (GUI)

Thanks!
 
Level 2
Joined
Dec 25, 2008
Messages
24
Don't know how to detect spellbook ability. It might be possible though, but I don't have WE here at the moment.

To auto-cast an ability with triggers, you can use the "Unit - issue order" action and select the right base ability (e.g. Mountain King - Storm Bolt)

Mmmm, i want that automatic, for example, priest put auto-cast heal, is this possible with GUI?
 
Level 2
Joined
Dec 25, 2008
Messages
24
Ah, so you want to turn autocast on/off through a trigger?

It's still the same idea: Unit - Issue an order with no target

Unit - Order (a unit) to Human Priest - Activate Heal
Unit - Order (a unit) to Human Priest - Deactivate Heal

Mmm, is possible with custom abilities?
 
Level 10
Joined
Jun 1, 2008
Messages
485
Mmm, is possible with custom abilities?
yes, its possible. just put the order of the custom ability based for.
ex: you make custom searing arrow, then the order is:
  • Unit - Order (a unit) to Night Elf Priestess Of The Moon - Activate Searing Arrows
  • Unit - Order (a unit) to Night Elf Priestess Of The Moon - Deactivate Searing Arrows
and for detecting when unit open spell book
  • Detect Spell book
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (==) (Order(<your spell book order>))
    • Actions
spell book order can changed, but normally it's <spellbook>
 
Level 2
Joined
Dec 25, 2008
Messages
24
yes, its possible. just put the order of the custom ability based for.
ex: you make custom searing arrow, then the order is:
  • Unit - Order (a unit) to Night Elf Priestess Of The Moon - Activate Searing Arrows
  • Unit - Order (a unit) to Night Elf Priestess Of The Moon - Deactivate Searing Arrows
and for detecting when unit open spell book
  • Detect Spell book
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (==) (Order(<your spell book order>))
    • Actions
spell book order can changed, but normally it's <spellbook>

Oh good, thanks.

So, can i turn On/Off auto cast a custom ability? because custom abilities doesnt appear where Searing Arrows are...
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
You need to use the base ability. If you based your custom spell off searing arrows, you use "Priestess - searing arrows on". If you based your spell off "heal", you use "Priest - activate heal", etc.

Also note that because of this, 2 abilities based on the same base ability will both fire at the same time. There's no way around, especially for autocast abilities. (Non-autocast abilities could be based off "channel")
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
P.S. : I dont think you can detect spell book opening because opening spell book order isnt sync I think. I think that because even if game lags like hell you open spell book right when you click it
 
Level 2
Joined
Dec 25, 2008
Messages
24
(Detect Spellbook) - So, there is no way to detect open a spellbook ability...

(Auto Cast) - And, if the ability is like replenish?, that is not there...
 
Status
Not open for further replies.
Top