• 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] I need help please about Kicking Trigger

Status
Not open for further replies.
Level 4
Joined
Dec 31, 2011
Messages
85
Well what I need is, can you make a Trigger that will make anyone in Red Spot be kicked expect if I am host? Means, only if Red has my name would be able to be red, or otherwise in game he/she could be Defeated. (My IG Name: CrackBam) thanks..
 
Level 2
Joined
May 25, 2011
Messages
11
Here you go, if I understood you correctly this trigger should help:
  • KickScript
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of Player 1 (Red)) Equal to CrackBam
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Game - Defeat Player 1 (Red) with the message: Kicked!
Of course you can modify "Else - Actions" to display text message or else.
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
A slightly better way would be:
  • Kick Player 1
    • Events
      • Map initialization
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of Player 1 (Red)) Not equal to CrackBam
        • Then - Actions
          • Game - Defeat Player 1 (Red) with the message: Kicked!
        • Else - Actions
You don't need to put "Do nothing".
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
Here you go:
  • Kick All Players
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Temp_Int = 0
      • 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 CrackBam
            • Then - Actions
              • Set Temp_Int = (Temp_Int + 1)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_Int Equal to 0
        • Then - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Kicked!
        • Else - Actions
 
Level 4
Joined
Dec 31, 2011
Messages
85
could you please do me a last favor, can you give me a link of map or tell me how the system works to copy the whole trigger thing? I tried to add it one by one my self but I can't find the Set Temp_Int = 0 and Set Temp_Int = (Temp_Int + 1) so do me this last favor please pm me link or reply of the map which i can copy the whole trigger and paste to my map
 
Level 2
Joined
May 25, 2011
Messages
11
So, I made trigger that does this:
If Player 1 (Red) is not "CrackBam", then it kicks everyone.

I attached it to this post.
 

Attachments

  • kickScript.w3x
    16 KB · Views: 59
Level 4
Joined
Dec 31, 2011
Messages
85
i did already gave you Rep, I will give you again tomorrow it says after 24 hours.. if it helped:) am gonna check now ty for your attempt anyways
 
Level 2
Joined
May 25, 2011
Messages
11
Temp_Int is just an integer variable. I'm sure Zourick's map will show you.

I managed to do this without any variables, here's the trigger:
  • kickScript
    • Events
      • Map initialization
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of Player 1 (Red)) Not equal to CrackBam
        • Then - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Game - Defeat (Picked player) with the message: Kicked!
        • Else - Actions
I think CrackBam needed just this.
 
Status
Not open for further replies.
Top