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

Help!!!

Status
Not open for further replies.
Level 1
Joined
Aug 2, 2007
Messages
5
How to make the map detect your name and then if you dont write -massage- it kicks you from game? plz help :sad:
 
Level 19
Joined
Nov 16, 2006
Messages
2,165
Something like:

  • Player
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Name of (Player((Integer A)))) Equal to YourName
            • Then - Actions
              • Game - Defeat (Triggering player) with the message: You are kicked!
            • Else - Actions
              • Do nothing
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Something like:

  • Player
    • Events
      • Time - Elapsed game time is 15.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Name of (Player((Integer A)))) Equal to YourName
              • MessageBoolean[Integer A] Equal to False
            • Then - Actions
              • Game - Defeat (Triggering player) with the message: You are kicked!
            • Else - Actions
              • Do nothing

Notice I made a small change.

And another trigger:

  • Player
    • Events
      • Player - player 1 writes "-massage" as an exact match
      • Player - player 2 writes "-massage" as an exact match
    • Conditions
    • Actions
      • Set MessageBoolean[Player Number of (triggering player)]=True
MessageBoolean is a Boolean, Initial value to "False" and an Array of 12.
 
Level 19
Joined
Nov 16, 2006
Messages
2,165
Eleandor, your trigger kicks the player only when he said a certain message before 15 seconds.
Mine kicks him when he said nothing.
And that was his question.
"How to make the map detect your name and then if you dont write -massage- it kicks you from game?
 
Level 1
Joined
Aug 2, 2007
Messages
5
sorry my bad i ment How to make the map detect your name and then if you write -massage- it DONT kick you from game?
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
let's analyse this sentence:

"How to make the map detect your name and then if you dont write -massage- it kicks you from game?"

The map detects your name after an amount of seconds, and if you have NOT (= don't) writen "massage" by then, you're kicked.

that's what I did, right?
If that's not what you need, Kawlinsh, rephrase please :)
 
Status
Not open for further replies.
Top