Tag | rainbowperso

S0MHP

Created by RainbowPerso#2781 - Tag is a game where you have to catch someone if you're it, and not die. If you become it, you lose a point of score, your score is how many lives you have, and you start with 3. If you get to 0, you're out of the game. To catch people if you're it, is by meleeing them.

Code Snippet

View variables

Rules

No Rules are declared.
variables { global: 0: wait 1: victimee 25: skrratatat 27: it } rule("Assemble time___") { event { Ongoing - Global; } conditions { Is Assembling Heroes == True; } actions { Set Match Time(0); } } rule("Score 3____") { event { Ongoing - Global; } conditions { Is Game In Progress == True; } actions { Set Player Score(All Players(All Teams), 3); } } rule("Respawn time___") { event { Ongoing - Each Player; All; All; } conditions { Is Game In Progress == True; Global Variable(wait) == 0; } actions { Set Respawn Max Time(Event Player, 5); } } rule("Wait______") { event { Ongoing - Global; } } rule("Global variable of wait") { event { Ongoing - Global; } conditions { Is Game In Progress == True; } actions { Set Global Variable(wait, 11); } } rule("Global variable of wait") { event { Ongoing - Global; } conditions { Is Game In Progress == True; Global Variable(wait) > 0; } actions { Wait(1, Ignore Condition); Set Global Variable(wait, Subtract(Global Variable(wait), 1)); Loop If Condition Is True; } } rule("Global variable of wait") { event { Ongoing - Global; } conditions { Global Variable(wait) == 5; } actions { Big Message(All Players(All Teams), Custom String("5 SECONDS LEFT!", Null, Null, Null)); } } rule("IT___") { event { Ongoing - Global; } } rule("IT pick") { event { Ongoing - Global; } conditions { Is Game In Progress == True; Global Variable(wait) <= 0; } actions { Set Global Variable(it, Randomized Array(All Living Players(All Teams))); Start Forcing Player To Be Hero(Global Variable(it), Hero(Ana)); } } rule("IT melee") { event { Player Dealt Damage; All; Ana; } conditions { Attacker == Event Player; } actions { Set Global Variable(it, Victim); Start Forcing Player To Be Hero(Global Variable(it), Hero(Ana)); Start Forcing Player To Be Hero(Attacker, Hero(Genji)); Set Player Score(Victim, Subtract(Score Of(Victim), 1)); Set Status(Attacker, Null, Phased Out, 1.500); Set Move Speed(Attacker, 200); Allow Button(Attacker, Jump); Wait(2.500, Ignore Condition); Set Move Speed(Attacker, 100); } } rule("IT hud") { event { Ongoing - Global; } conditions { Is Game In Progress == True; Global Variable(wait) == 0; } actions { Create HUD Text(All Players(All Teams), Custom String("{1} {0}", Global Variable(it), Hero Icon String(Hero(Ana)), Null), Null, Null, Right, 0, Green, Green, Green, Visible To and String, Default Visibility); } } rule("IT jump") { event { Ongoing - Each Player; All; All; } conditions { Event Player == Global Variable(it); } actions { Allow Button(Event Player, Jump); } } rule("Score 0___") { event { Ongoing - Each Player; All; All; } conditions { Score Of(Event Player) == 0; } actions { Kill(Event Player, Null); Big Message(All Players(All Teams), Custom String("{0} IS OUT!", Event Player, Null, Null)); Set Respawn Max Time(Event Player, 9999); Enable Death Spectate All Players(Event Player); } } rule("Lives___") { event { Ongoing - Each Player; All; All; } conditions { Is Alive(Event Player) == True; Has Spawned(Event Player) == True; Is Game In Progress == True; Global Variable(wait) == 0; } actions { Create HUD Text(Event Player, Custom String("{0} LIVES", Score Of(Event Player), Null, Null), Null, Null, Left, 0, Red, Red, Red, Visible To and String, Default Visibility); Set Global Variable(D, Last Text ID); } } rule("Lives removal___") { event { Ongoing - Each Player; All; All; } conditions { Score Of(Event Player) == 0; } actions { Destroy HUD Text(Global Variable(D)); } } rule("Declare win___") { event { Ongoing - Global; } conditions { Number of Living Players(All Teams) == 1; Is Game In Progress == True; } actions { Declare Player Victory(All Living Players(All Teams)); } } rule("Genji Passive_____") { event { Ongoing - Global; } } rule("Genji's passives") { event { Ongoing - Each Player; All; Genji; } conditions { Is In Air(Event Player) == True; Is Game In Progress == True; } actions { Disallow Button(Event Player, Jump); } } rule("Genji's false passives") { event { Ongoing - Each Player; All; Genji; } conditions { Is On Ground(Event Player) == True; Is Game In Progress == True; } actions { Allow Button(Event Player, Jump); } } rule("Remove player____") { event { Player Joined Match; All; All; } conditions { Is Game In Progress == True; Global Variable(wait) == 0; } actions { Set Global Variable(skrratatat, Event Player); } } rule("Remove player_") { event { Ongoing - Each Player; All; All; } conditions { Has Spawned(Global Variable(skrratatat)) == True; Global Variable(skrratatat) == Event Player; } actions { Kill(Event Player, Null); } } rule("Re-choose") { event { Player Left Match; All; All; } conditions { Event Player == Global Variable(victimee); } actions { Big Message(All Players(All Teams), Custom String("RE-CHOOSING", Null, Null, Null)); Wait(5, Ignore Condition); Set Global Variable(victimee, Randomized Array(All Living Players(All Teams))); } } rule("Re-choose") { event { Player Died; All; All; } conditions { Event Player == Global Variable(it); } actions { Big Message(All Players(All Teams), Custom String("RE-CHOOSING", Null, Null, Null)); Wait(5, Ignore Condition); Set Global Variable(it, Random Value In Array(All Living Players(All Teams))); Start Forcing Player To Be Hero(Global Variable(it), Hero(Ana)); } }
View Fullscreen
Copy current Rule
Copy all Rules
Categories | Free for all
Heroes | Genji, Ana
Created at |
Last updated |
Current version | 1.0.1

0 Comments

Log in or Sign up to place a comment.
Workshop.codes - Background image