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

Force player to start a spell

Status
Not open for further replies.

Tzi

Tzi

Level 4
Joined
Jan 7, 2009
Messages
57
Hi there,

I've got a problem with a trigger of mine.
I'm trying to force a player that picks a unit of a specific type to pick another specific unit and to press the "F" button after the forced selection.
This unit has an ability with an F Hotkey.

But this ONLY works while using a 0.01+ sec wait between the selection command for the specific unit and the command to force the player to press the F button.
In case of deleting the wait command the ability will not start.
This wait destroys the multi-player functionality, am I right?

  • Picking Ability
    • Ereignisse
      • Spieler - Spieler 1 (Rot) Auswählen a unit
      • Spieler - Spieler 2 (Blau) Auswählen a unit
      • Spieler - Spieler 3 (Blaugrau) Auswählen a unit
      • Spieler - Spieler 4 (Lila) Auswählen a unit
      • Spieler - Spieler 5 (Gelb) Auswählen a unit
      • Spieler - Spieler 6 (Orange) Auswählen a unit
      • Spieler - Spieler 7 (Grün) Auswählen a unit
      • Spieler - Spieler 8 (Rosa) Auswählen a unit
      • Spieler - Spieler 9 (Grau) Auswählen a unit
      • Spieler - Spieler 10 (Hellblau) Auswählen a unit
      • Spieler - Spieler 11 (Dunkelgrün) Auswählen a unit
      • Spieler - Spieler 12 (Braun) Auswählen a unit
    • Bedingungen
      • Unit-type of (Triggering Unit) equal to (Specific Unit-Type)
    • Aktionen
      • Auswahl - Clear selection for (Triggering player)
      • Auswahl - Select Specific Unit for (Triggering player)
      • Wait 0.01 game-time seconds
      • Spiel - Force (Triggering player) to press the key F
(It's german: Auswahl = Selection)

I don't wanna trigger the spell itself, cause I want the player to be able to choose a target for the spell.
 

Tzi

Tzi

Level 4
Joined
Jan 7, 2009
Messages
57
Thanks,

I'll keep the wait in the trigger and test it anytime I have the chance to.

I don't think that I can use "Unit - Issue Order With no Target" cause I want the player to be able to choose a target for that spell. A spell "With no Target" can't target a target... I think^^
 
Status
Not open for further replies.
Top