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

Ordering the player to cast a spell again?

Status
Not open for further replies.
Level 15
Joined
Nov 30, 2007
Messages
1,202
After a spell finnishes casting I want to order the player to cast it again so that the "select target" apears again.

How do retrive the id of the casted spell? GetSpellAbilityId(Something..?)

Also can one detect when you click on the spell but not cast it?
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
To make the "select target" appears again, here's how you would do it;
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Game - Force (Triggering player) to press the key C
Game - Force UI Key

Provided that you MUST know, the hotkey to that spell.
You can however, set it up at Setup Trigger, I taught you from the hashtable thread.
 
Status
Not open for further replies.
Top