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

Facilitating Triggering.

Status
Not open for further replies.
Level 5
Joined
Aug 6, 2009
Messages
136
So i want to improve triggering just because there is a way, but i dont know how to improve it.

Well lets get to the point:

I want to make an easier way on triggering... Let me demonstrate:

Events: Player - Player 1 (Red) types a chat message containing -clear as An exact match.

Conditions: None

Actions: Cinematic - Clear the screen of text messages for Player Group - Player 1 (Red)​

This is a lame trigger...
How can i improve it? Like when: ''Triggering player'' types the message it will trigger the event for ''Triggering player''.

Instead of copying the trigger and choose so that it affects each player etc.etc...


Thank you!!!
 
  • Tr
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Trig <gen> the event Player - (Player(IntegerA)) types a chat message containing -clear as An exact match
  • Trig
  • Events
  • Conditions
  • Actions
    • Set TempGroup = (Player Group - Triggering player)
    • Cinematic - Clear the screen of text messages for TempGroup
    • Custom script: call DestroyForce (udg_TempGroup)
 
Level 5
Joined
Aug 6, 2009
Messages
136
  • Tr
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Trig <gen> the event Player - (Player(IntegerA)) types a chat message containing -clear as An exact match
  • Trig
  • Events
  • Conditions
  • Actions
    • Set TempGroup = (Player Group - Triggering player)
    • Cinematic - Clear the screen of text messages for TempGroup
    • Custom script: call DestroyForce (udg_TempGroup)

I checked and did as you did and it turned out something like this:

  • Tr
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Trigger - Add to Trig <gen> the event Player - (Player((IntegerA))) types a chat message containing -clear as An exact match)
  • Trig
  • Events
  • Conditions
  • Actions
    • Set TempGroup = (Player group((Triggering player)))
    • Cinematic - Clear the screen of text messages for TempGroup
    • Custom script: call DestroyForce (udg_TempGroup)
And it doesn't work... Where did i go wrong?

EDIT: Nvm it worked Thx
+rep!
 
Last edited:
Status
Not open for further replies.
Top