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

[Trigger] Moving

Status
Not open for further replies.
Level 10
Joined
Apr 13, 2005
Messages
630
I got this quest that you attack a person and shell attack u then move to 2 places before u have to kill him. Problem is the unit wont say his third floating text and wont go all the way to the first point.

first trigger​

  • Traitor
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Unit-type of (Attacked unit)) Equal to Public Speaker) and ((Owner of (Attacked unit)) Equal to Neutral Passive)
    • Actions
      • Special Effect - Destroy excamationpoint
      • Unit - Make traitor Invulnerable
      • Unit - Order (Attacking unit) to Stop
      • Quest - Create a Required quest titled Traitor with the description There was a recent ..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Floating Text - Create floating text that reads You have all been L... above traitor with Z offset 0.00, using font size 10.00, color (100.00%, 50.00%, 0.00%), and 0.00% transparency
      • Set Floatingtext = (Last created floating text)
      • Wait 3.00 seconds
      • Floating Text - Destroy Floatingtext
      • Floating Text - Create floating text that reads He has told you ove... above traitor with Z offset 0.00, using font size 10.00, color (100.00%, 50.00%, 0.00%), and 0.00% transparency
      • Set Floatingtext = (Last created floating text)
      • Wait 3.00 seconds
      • Floating Text - Destroy Floatingtext
      • Floating Text - Create floating text that reads My master gives you... above traitor with Z offset 0.00, using font size 10.00, color (100.00%, 50.00%, 0.00%), and 0.00% transparency
      • Set Floatingtext = (Last created floating text)
      • Floating Text - Destroy Floatingtext
      • Wait 5.00 seconds
      • Unit - Order traitor to Move To (Center of Spying <gen>)
      • Trigger - Turn off (This trigger)
second trigger​

  • Move traitor
    • Events
      • Unit - A unit enters Spying <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Public Speaker
    • Actions
      • Unit - Order traitor to Move To (Center of Region 045 <gen>)
third​

  • Traitor End
    • Events
      • Unit - A unit enters Region 045 <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Public Speaker
    • Actions
      • Unit - Make traitor Vulnerable
      • Unit - Change ownership of traitor to Player 11 (Dark Green) and Retain color
last​

  • Traitor Died
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Public Speaker
    • Actions
      • Game - Display to (All players) the text: Report back to Al M...
      • Special Effect - Create a special effect attached to the overhead of Al Mualim 0062 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Set excamationpoint = (Last created special effect)
      • Trigger - Turn off (This trigger)
 
Last edited by a moderator:
Level 12
Joined
Apr 27, 2008
Messages
1,228
Here is the problem with the text:
  • Set Floatingtext = (Last created floating text)
  • Floating Text - Destroy Floatingtext
  • Wait 5.00 seconds
  • Unit - Order traitor to Move To (Center of Spying <gen>)
Should be:
  • Set Floatingtext = (Last created floating text)
  • Wait 5.00 seconds
  • Floating Text - Destroy Floatingtext.
  • Unit - Order traitor to Move To (Center of Spying <gen>)
About movement well just reduce the size of the region.
 
Last edited by a moderator:
Status
Not open for further replies.
Top