Return to post
- variables
- {
- player:
- 0: TrickOrTreat
- 1: FunSizedcandy
- 2: door
- 3: MiniCandy
- 4: OriginalCandy
- 5: Door3fs
- 6: Door4fs
- 7: Door8fs
- 8: Door9fs
- 9: Door10fs
- 10: KingSizedCandy
- 11: door2m
- 12: animation
- 13: animation2
- 14: animation3
- 15: animation4
- 16: Door1O
- 17: Door3O
- 18: Door4O
- 19: Door5O
- 20: Door6O
- 21: Door7O
- 22: Door1KS
- 23: Door2KS
- 24: Door3KS
- 25: Door4KS
- 26: Door6KS
- 27: Roadhogtext
- 28: mansiondoor2
- 30: candytrap
- 31: destroymachine
- 32: NodeNum
- 33: candymachine
- 34: CandyMachNum
- 35: hud
- }
- rule("credits (created By FINCH#12273 u/ebro02)")
- {
- event
- {
- Ongoing - Global;
- }
- actions
- {
- Set Objective Description(All Players(All Teams), Custom String("Workshop Code: C417N"), Visible To and String);
- Wait(30, Ignore Condition);
- Set Objective Description(All Players(All Teams), Custom String("Created by: FINCH #12273"), Visible To and String);
- Wait(30, Ignore Condition);
- Set Objective Description(All Players(All Teams), Custom String("Happy Halloween"), Visible To and String);
- Wait(30, Ignore Condition);
- Loop;
- }
- }
- rule("super jump")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Crouch) == True;
- Is Button Held(Event Player, Jump) == True;
- disabled Is On Ground(Event Player) == True;
- }
- actions
- {
- Start Accelerating(Event Player, Vector(0, 1, 0), 100, 20, To World, Direction Rate and Max Speed);
- Wait(0.150, Ignore Condition);
- Stop Accelerating(Event Player);
- Wait(2, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("remove effects")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.OriginalCandy == 20;
- Distance Between(Vector(90.663, 16.745, -89.902), Event Player) < 63;
- }
- actions
- {
- Destroy All Effects;
- Wait(10000, Ignore Condition);
- }
- }
- rule("spawn arrows")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.animation == 3;
- }
- actions
- {
- disabled Create Beam Effect(Event Player, Good Beam, Vector(-13.530, 1, 17.335), Vector(-11.622, 1, 17.592), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-11.300, 1, 17.592), Vector(-7.465, 3, 18.148), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-7.465, 3, 18.148), Vector(-5.160, 3, 18.551), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-5.160, 3, 18.551), Vector(-4.946, 3, 16.782), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-4.946, 3, 16.782), Vector(-4.112, 6, 10.508), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-4.112, 6, 10.508), Vector(-3.913, 6, 8.408), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-3.913, 6, 8.408), Vector(-7.932, 6, 7.839), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-7.932, 6, 7.839), Vector(-6.931, 6, -0.023), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-6.931, 6, -0.023), Vector(-18.816, 6, -1.483), Green,
- Visible To Position and Radius);
- Create Beam Effect(Event Player, Good Beam, Vector(-18.816, 6, -1.483), Vector(-20.147, 6, 8.652), Green,
- Visible To Position and Radius);
- }
- }
- rule("animation leave stopper")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.animation != 3;
- Z Component Of(Position Of(Event Player)) < 15;
- }
- actions
- {
- Start Accelerating(Event Player, Vector(0, 0, 1), 100000, 10000, To World, Direction Rate and Max Speed);
- Wait(0.100, Ignore Condition);
- Loop If Condition Is True;
- Stop Accelerating(Event Player);
- }
- }
- rule("animation")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Has Spawned(Event Player) == True;
- Event Player.animation == 0;
- }
- actions
- {
- Start Camera(Event Player, Vector(-23, 7, 35), Event Player, 0);
- Teleport(Event Player, Vector(-15.531, 4.574, 24));
- Set Facing(Event Player, Vector(0, 0, 1), To World);
- Big Message(Event Player, Custom String("It was a spooky strange halloween night,"));
- Wait(3.500, Ignore Condition);
- Big Message(Event Player, String("{0} {1} {2}", Custom String("And"), Hero Of(Event Player), Custom String(
"Sat at home seaking a fright")));
- "Sat at home seeking a fright")));
- Wait(3.500, Ignore Condition);
- Big Message(Event Player, String("{0} {1} {2}", Custom String(""), Hero Of(Event Player), Custom String("looked out the window")));
- Create HUD Text(Event Player, Null, Custom String("Look out the window"), Null, Left, -9, Green, White, White,
- Visible To and String, Default Visibility);
- Wait(3.500, Ignore Condition);
- Event Player.animation2 = True;
- }
- }
- rule("animation2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.animation2 == True;
- Z Component Of(Facing Direction Of(Event Player)) > 0.800;
- }
- actions
- {
- Wait(0.250, Ignore Condition);
- disabled Create HUD Text(Event Player, Null, Custom String("Look out the window"), Null, Left, -9, Green, White, White,
- Visible To and String, Default Visibility);
- Event Player.animation2 = False;
- Start Camera(Event Player, Vector(X Component Of(Position Of(Event Player)) + -0.500, 1.500 + Y Component Of(Position Of(
Event Player)), 0.700 + Z Component Of(Position Of(Event Player))), Vector(0.400, 0, -0.900), 0);
- Event Player)), 0.700 + Z Component Of(Position Of(Event Player))), Vector(0.400, 0, -0.900), 10);
- Wait(1, Ignore Condition);
- Big Message(Event Player, Custom String("solemn expression on face"));
- Wait(5, Ignore Condition);
Start Camera(Event Player, Vector(-23, 7, 35), Event Player, 0);
- Start Camera(Event Player, Vector(-23, 7, 35), Event Player, 10);
- Big Message(Event Player, Custom String("then looked up to the sky"));
- Event Player.animation3 = True;
- Create HUD Text(Event Player, Null, Custom String("Look up"), Null, Left, -8, Green, White, White, Visible To and String,
- Default Visibility);
- }
- }
- rule("animation3")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.animation3 == True;
- Y Component Of(Facing Direction Of(Event Player)) > 0.950;
- }
- actions
- {
- Wait(0.250, Ignore Condition);
- Event Player.animation3 = False;
- Wait(1, Ignore Condition);
- Big Message(Event Player, Custom String("Three shots did soon chase"));
- Create HUD Text(Event Player, Null, Custom String("shoot"), Null, Left, -7, Green, White, White, Visible To and String,
- Default Visibility);
- Event Player.animation4 = True;
- }
- }
- rule("animation4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.animation4 == True;
- Is Button Held(Event Player, Primary Fire) == True;
- }
- actions
- {
- Wait(0.250, Ignore Condition);
- Event Player.animation4 = False;
- Wait(3.500, Ignore Condition);
- Big Message(Event Player, Custom String("\"what is there to do\""));
- Wait(3.500, Ignore Condition);
- Big Message(Event Player, String("{0} {1}", Hero Of(Event Player), Custom String("thought in their seat")));
- Wait(3.500, Ignore Condition);
- Big Message(Event Player, Custom String("\"I have an Idea!\""));
- Wait(3.500, Ignore Condition);
- Big Message(Event Player, Custom String("\"I'll go trick or treat!!\""));
- Stop Camera(Event Player);
- Event Player.animation = 3;
- }
- }
- rule("Spawn words")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is In Spawn Room(Event Player) == False;
- }
- actions
- {
- Destroy All In-World Text;
- }
- }
- rule("spawn words")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is In Spawn Room(Event Player) == True;
- Event Player.animation == 3;
- }
- actions
- {
- Create In-World Text(Event Player, Custom String("knock on doors to trick or treat and collect candy"), Vector(-13.294, 3, 1.547),
- 1, Do Not Clip, None, White, Default Visibility);
- Create In-World Text(Event Player, Custom String("\"knock\" on the door"), Vector(-21.036, 7.350, 6.270), 1, Do Not Clip,
- Visible To Position and String, White, Default Visibility);
- }
- }
- rule("trick or treat")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Melee) == True;
- }
- actions
- {
- Event Player.TrickOrTreat = True;
- Wait(0.500, Ignore Condition);
- Event Player.TrickOrTreat = False;
- Loop If Condition Is True;
- }
- }
- rule("hud total")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
Event Player.hud == 0;
Is Button Held(Event Player, Interact) == True;
- disabled Event Player.hud == 0;
- disabled Is Button Held(Event Player, Interact) == True;
- }
- actions
- {
Destroy All HUD Text;
- disabled Destroy All HUD Text;
- Wait(1, Ignore Condition);
- disabled Create HUD Text(Event Player, Event Player.TrickOrTreat, Null, Null, Left, 0, White, White, White, Visible To and String,
- Default Visibility);
- "mini"
- Create HUD Text(Event Player, String("{0} / {1}", Event Player.MiniCandy, Custom String("3 Mini Candies")), Null, Null, Right, 1,
- Green, White, White, Visible To and String, Default Visibility);
- "Fun Sized"
- Create HUD Text(Event Player, String("{0} / {1}", Event Player.FunSizedcandy, Custom String("20 Fun-Sized CandY")), Null, Null,
- Right, 2, Purple, White, White, Visible To and String, Default Visibility);
- "Original"
- Create HUD Text(Event Player, String("{0} / {1}", Event Player.OriginalCandy, Custom String("20 Original Candy")), Null, Null,
- Right, 3, Orange, White, White, Visible To and String, Default Visibility);
- "King"
- Create HUD Text(Event Player, String("{0} / {1}", Event Player.KingSizedCandy, Custom String("20 King Sized candies")), Null, Null,
- Right, 4, White, White, White, Visible To and String, Default Visibility);
- disabled Wait(0.250, Ignore Condition);
Event Player.hud = 1;
- disabled Event Player.hud = 1;
- disabled Loop If Condition Is True;
- }
- }
rule("hud M")
- rule("hud intro")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
Event Player.hud == 1;
Is Button Held(Event Player, Interact) == True;
Event Player.MiniCandy < 3;
Event Player.FunSizedcandy == 0;
- disabled Event Player.hud == 1;
- disabled Is Button Held(Event Player, Interact) == True;
- disabled Event Player.animation == 3;
- disabled Event Player.FunSizedcandy == 0;
- }
- actions
- {
Destroy All HUD Text;
Wait(1, Ignore Condition);
Create HUD Text(Event Player, String("{0} {1}", Custom String("Mini Hints"), Custom String("")), Null, Null, Right, 1, Green,
- disabled Destroy All HUD Text;
- disabled Wait(1, Ignore Condition);
- Create HUD Text(Event Player, String("{0} {1}", Custom String("intro hints"), Custom String("")), Null, Null, Left, -10, Red,
- White, White, Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("Knock on 2 doors"), Null, Right, 2, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("Look out the window"), Null, Left, -9, Green, White, White,
- Visible To and String, Default Visibility);
- disabled Create HUD Text(Event Player, Null, Custom String("Look up"), Null, Left, -8, Green, White, White, Visible To and String,
- Default Visibility);
- disabled Create HUD Text(Event Player, Null, Custom String("shoot"), Null, Left, -7, Green, White, White, Visible To and String,
- Default Visibility);
- disabled Event Player.hud = 0;
- }
- }
- rule("hud M")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- disabled Event Player.hud == 1;
- disabled Is Button Held(Event Player, Interact) == True;
- Event Player.animation == 3;
- disabled Event Player.FunSizedcandy == 0;
- }
- actions
- {
- disabled Destroy All HUD Text;
- disabled Wait(1, Ignore Condition);
- Create HUD Text(Event Player, String("{0} {1}", Custom String("Mini Hints"), Custom String("")), Null, Null, Left, 1, Green, White,
- White, Visible To and String, Default Visibility);
- Create HUD Text(Event Player, Null, Custom String("Knock on 2 doors"), Null, Left, 2, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find the barrel"), Null, Right, 2.500, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("find the barrel"), Null, Left, 2.500, Green, White, White,
- Visible To and String, Default Visibility);
Event Player.hud = 0;
- disabled Event Player.hud = 0;
- }
- }
- rule("hud FS")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
Event Player.hud == 1;
Is Button Held(Event Player, Interact) == True;
- disabled Event Player.hud == 1;
- disabled Is Button Held(Event Player, Interact) == True;
- Event Player.MiniCandy == 3;
Event Player.FunSizedcandy < 20;
- disabled Event Player.FunSizedcandy < 20;
- }
- actions
- {
Destroy All HUD Text;
Wait(1, Ignore Condition);
Create HUD Text(Event Player, String("{0} {1}", Custom String("Fun SIzed Hints"), Custom String("")), Null, Null, Right, 1, Purple,
- disabled Destroy All HUD Text;
- disabled Wait(1, Ignore Condition);
- Create HUD Text(Event Player, String("{0} {1}", Custom String("Fun SIzed Hints"), Custom String("")), Null, Null, Left, 11, Purple,
- White, White, Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("Knock on 10 doors"), Null, Right, 2, Green, White, White, Visible To and String,
- Create HUD Text(Event Player, Null, Custom String("Knock on 10 doors"), Null, Left, 12, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find a wagon"), Null, Right, 2.500, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("find a wagon"), Null, Left, 12.500, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("do a squat"), Null, Right, 3, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("do a squat"), Null, Left, 13, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find a piano"), Null, Right, 4, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("find a piano"), Null, Left, 14, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("knock on the upstairs neighbors"), Null, Right, 5, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("knock on the upstairs neighbors"), Null, Left, 15, Green, White, White,
- Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find 3 candy"), Null, Right, 6, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("find 3 candy"), Null, Left, 16, Green, White, White, Visible To and String,
- Default Visibility);
Event Player.hud = 0;
- disabled Event Player.hud = 0;
- }
- }
- rule("hud O")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
Event Player.hud == 1;
Is Button Held(Event Player, Interact) == True;
- disabled Event Player.hud == 1;
- disabled Is Button Held(Event Player, Interact) == True;
- Event Player.FunSizedcandy == 20;
Event Player.OriginalCandy < 20;
- disabled Event Player.OriginalCandy < 20;
- }
- actions
- {
Destroy All HUD Text;
Wait(1, Ignore Condition);
Create HUD Text(Event Player, String("{0} {1}", Custom String("Original Hints"), Custom String("")), Null, Null, Right, 1, Orange,
- disabled Destroy All HUD Text;
- disabled Wait(1, Ignore Condition);
- Create HUD Text(Event Player, String("{0} {1}", Custom String("Original Hints"), Custom String("")), Null, Null, Left, 21, Orange,
- White, White, Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("Knock on 8 doors"), Null, Right, 2, Green, White, White, Visible To and String,
- Create HUD Text(Event Player, Null, Custom String("Knock on 8 doors"), Null, Left, 22, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find 5 candies"), Null, Right, 2.500, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("find 5 candies"), Null, Left, 22.500, Green, White, White,
- Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find find 3 lamp posts"), Null, Right, 3, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("find find 3 lamp posts"), Null, Left, 23, Green, White, White,
- Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find the clock"), Null, Right, 4, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("find the clock"), Null, Left, 24, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find the graveyard"), Null, Right, 5, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("find the graveyard"), Null, Left, 25, Green, White, White,
- Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("say a voiceline"), Null, Right, 6, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("say a voiceline"), Null, Left, 26, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("knock on the roof"), Null, Right, 7, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("knock on the roof"), Null, Left, 27, Green, White, White, Visible To and String,
- Default Visibility);
Event Player.hud = 0;
- disabled Event Player.hud = 0;
- }
- }
- rule("hud KS")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
Event Player.hud == 1;
Is Button Held(Event Player, Interact) == True;
- disabled Event Player.hud == 1;
- disabled Is Button Held(Event Player, Interact) == True;
- Event Player.OriginalCandy == 20;
Event Player.KingSizedCandy < 20;
- disabled Event Player.KingSizedCandy < 20;
- }
- actions
- {
Destroy All HUD Text;
Wait(1, Ignore Condition);
Create HUD Text(Event Player, String("{0} {1}", Custom String("King SIzed Hints"), Custom String("")), Null, Null, Right, 1, White,
- disabled Destroy All HUD Text;
- disabled Wait(1, Ignore Condition);
- Create HUD Text(Event Player, String("{0} {1}", Custom String("King SIzed Hints"), Custom String("")), Null, Null, Left, 31, White,
- White, White, Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("Knock on 7 doors"), Null, Right, 2, Green, White, White, Visible To and String,
- Create HUD Text(Event Player, Null, Custom String("Knock on 7 doors"), Null, Left, 32, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find 4 wagon wheels"), Null, Right, 2.500, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("find 4 wagon wheels"), Null, Left, 32.500, Green, White, White,
- Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("regain your health"), Null, Right, 3, Green, White, White,
- disabled Create HUD Text(Event Player, Null, Custom String("regain your health"), Null, Left, 33, Green, White, White,
- Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("find 5 candies"), Null, Right, 4, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("find 5 candies"), Null, Left, 34, Green, White, White, Visible To and String,
- Default Visibility);
Create HUD Text(Event Player, Null, Custom String("say hello"), Null, Right, 5, Green, White, White, Visible To and String,
- disabled Create HUD Text(Event Player, Null, Custom String("say hello"), Null, Left, 35, Green, White, White, Visible To and String,
- Default Visibility);
Event Player.hud = 0;
- disabled Event Player.hud = 0;
- }
- }
- rule("hud M")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
Event Player.hud == 1;
Is Button Held(Event Player, Interact) == True;
- disabled Event Player.hud == 1;
- disabled Is Button Held(Event Player, Interact) == True;
- Event Player.KingSizedCandy == 20;
- }
- actions
- {
Destroy All HUD Text;
Wait(1, Ignore Condition);
Create HUD Text(Event Player, String("{0} {1}", Custom String("Mansion Hints"), Custom String("")), Null, Null, Right, 1,
- disabled Destroy All HUD Text;
- disabled Wait(1, Ignore Condition);
- Create HUD Text(Event Player, String("{0} {1}", Custom String("Mansion Hints"), Custom String("")), Null, Null, Left, 41,
- Turquoise, White, White, Visible To and String, Default Visibility);
Create HUD Text(Event Player, Null, Custom String("Knock on the mansion door"), Null, Right, 2, Green, White, White,
- Create HUD Text(Event Player, Null, Custom String("Knock on the mansion door"), Null, Left, 42, Green, White, White,
- Visible To and String, Default Visibility);
Event Player.hud = 0;
- disabled Event Player.hud = 0;
- }
- }
- rule("======================dividers====================(and little more ;)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- actions
- {
- Event Player.door = True;
- Event Player.hud = 0;
- }
- }
- rule("Mini")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.MiniCandy < 3;
- Is In Spawn Room(Event Player) == False;
- Event Player.animation == 3;
- Y Component Of(Position Of(Event Player)) < 8;
- }
- actions
- {
- Set Move Speed(Event Player, 0);
- Teleport(Event Player, Vector(-13.916, 2.250, 8.453));
- Big Message(Event Player, Custom String("sorry friend!"));
- Wait(2, Ignore Condition);
- Set Move Speed(Event Player, 100);
- Big Message(Event Player, Custom String("you're gonna need at least 3 mini candies to trick or treat in this area."));
- Wait(0.250, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("Fun sized")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.FunSizedcandy < 20;
- Z Component Of(Position Of(Event Player)) < -42.500;
- }
- actions
- {
- Set Move Speed(Event Player, 0);
- Teleport(Event Player, Vector(12.726, 5.256, -30.912));
- Big Message(Event Player, Custom String("hey kid!"));
- Wait(2, Ignore Condition);
- Set Move Speed(Event Player, 100);
- Big Message(Event Player, Custom String("you need at least 20 Fun-Sized Candies to trick or treat in this area"));
- Wait(0.250, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("Fun sized bridge")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.FunSizedcandy < 20;
- Z Component Of(Position Of(Event Player)) < -38;
- Y Component Of(Position Of(Event Player)) > 9;
- X Component Of(Position Of(Event Player)) > 3;
- }
- actions
- {
- Set Move Speed(Event Player, 0);
- Teleport(Event Player, Vector(12.726, 5.256, -30.912));
- Big Message(Event Player, Custom String("hey kid!"));
- Wait(2, Ignore Condition);
- Set Move Speed(Event Player, 100);
- Big Message(Event Player, Custom String("you need at least 20 Fun-Sized Candies to trick or treat in this area"));
- Wait(0.250, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("King sized")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.OriginalCandy < 20;
- Distance Between(Vector(90.663, 16.745, -89.902), Event Player) < 63;
- }
- actions
- {
- Set Move Speed(Event Player, 0);
- Teleport(Event Player, Vector(22.602, 6.645, -58.931));
- Big Message(Event Player, Custom String("hey heathen!"));
- Wait(2, Ignore Condition);
- Set Move Speed(Event Player, 100);
- Big Message(Event Player, Custom String("you need at least 20 Original Candies to trick or treat with the rich"));
- Wait(0.250, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("Mansion")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.KingSizedCandy < 20;
- Distance Between(Vector(94.207, 16.255, -46.197), Event Player) < 23;
- }
- actions
- {
- Set Move Speed(Event Player, 0);
- Teleport(Event Player, Vector(87.298, 14.483, -71.118));
- Big Message(Event Player, Custom String("you moron stupid baby"));
- Wait(2, Ignore Condition);
- Set Move Speed(Event Player, 100);
- Big Message(Event Player, Custom String("youre not rich enough to trick or treat at the mansion"));
- Wait(0.250, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("...................................................Mini Sized....................................(grn)")
- {
- event
- {
- Ongoing - Global;
- }
- }
- rule("door 1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-21.036, 7.550, 6.272), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Green, Vector(-21.036, 7.550, 6.272), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("SWEET KNOCK!!"));
- Wait(2, Ignore Condition);
Small Message(Event Player, Custom String("press \"interact\" (f) to toggle tasks and hints"));
- disabled Small Message(Event Player, Custom String("press \"interact\" (f) to toggle tasks and hints"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.MiniCandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-20.341, 7.500, 2.345), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Green, Vector(-20.341, 7.500, 2.345), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Ive lost my barrel!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("if you can find it ill give you an extra candy"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Big Message(Event Player, Custom String("Find the barrel"));
Create In-World Text(Event Player, Icon String(Arrow: Down), Vector(-20.691, 7, 5.136), 1, Do Not Clip,
- Create In-World Text(Event Player, Icon String(Arrow: Down), Vector(-20.691, 7, 5.136), 5, Do Not Clip,
- Visible To Position and String, Green, Default Visibility);
- Event Player.MiniCandy += 1;
- Event Player.door = True;
- Event Player.door2m = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 2(barrel)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-20.679, 6.500, 5.032), Event Player) < 2;
- Event Player.door == True;
- Event Player.door2m == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find the barrel"), Null, Left, 2.500, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, Green, Vector(-20.679, 6.500, 5.032), 0.500, Visible To Position and Radius);
- Small Message(Event Player, Custom String("hold \"crouch\" (ctrl) and \"jump\" (space) to super jump"));
- Wait(1, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.MiniCandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("------------------------------------------------Fun Sized------------------------------------------(prpl)")
- {
- event
- {
- Ongoing - Global;
- }
- }
- rule("door 1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-23.556, 3.412, -38.750), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-23.556, 3.412, -38.750), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("On this night you'll meet your doom!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("but heres some candy I like your costume."));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-24.941, 0.030, -16.135), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-24.941, 0.030, -16.135), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Trick or treat smell my feet?"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("if you insist, have a seat."));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-32.905, 3.414, -35.833), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find a wagon"), Null, Left, 12.500, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Purple, Vector(-32.905, 3.414, -35.833), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("all this candy im having trouble dragin'"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("ill give you MORE candy if you find my wagon."));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Big Message(Event Player, Custom String("Find the wagon"));
- Event Player.FunSizedcandy += 1;
- Event Player.Door3fs = True;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(wagon)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-11.868, 4.800, -32.523), Event Player) < 5;
- Event Player.Door3fs == True;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-11.885, 3.800, -32.476), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("my epic wagon it seams youve found"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("i will never crash it in this town"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-27.851, 3.412, -32.267), Event Player) < 2;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("do a squat"), Null, Left, 13, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Purple, Vector(-27.851, 3.412, -32.267), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Neat costume little th0t"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("more candy if you do a big squat"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Big Message(Event Player, Custom String("do a squat for the creep"));
- Event Player.FunSizedcandy += 1;
- Event Player.Door4fs = True;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 4(squat)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.door == True;
- Is Button Held(Event Player, Crouch) == True;
- Event Player.Door4fs == True;
- }
- actions
- {
- Event Player.door = False;
- Small Message(Event Player, Custom String("nice"));
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 5")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(10.488, 2.445, -2.973), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(10.488, 2.445, -2.973), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("if you dressed as someone taller than a mouse"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("you could probably reach my neighbors house"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 6")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(3.682, 6.445, -14.863), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(3.682, 6.445, -14.863), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("i live up here for a reason man i dont have any candy"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("go away"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 doorknob"));
- Event Player.door = True;
- Event Player.FunSizedcandy += 1;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 7")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-4.758, 8, -20.836), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-3.300, 7, -20.836), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("hello?... "));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("You gotta help me my house collapsed in on itself please get help"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+2 Candy"));
- Event Player.FunSizedcandy += 2;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 8")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-0.923, 3.350, -41.461), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("knock on both upstairs neighbors"), Null, Left, 15, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, Purple, Vector(-0.923, 3.350, -41.461), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("if you reach both my upstairs neighbors"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("ill give you more candy for your labors"));
- Wait(2, Ignore Condition);
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Big Message(Event Player, Custom String("trick or treat on both upstairs neighbors"));
- Event Player.Door8fs = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 8(neighbors1)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.Door8fs == True;
- Distance Between(Vector(-3.436, 8, -38.448), Event Player) < 3;
- }
- actions
- {
- Create Effect(Event Player, Good Aura, Purple, Vector(-3.436, 8, -38.448), 1, Visible To Position and Radius);
- Event Player.door = False;
- Small Message(Event Player, Custom String("ello mate"));
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 8(neighbors2)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.Door8fs == True;
- Distance Between(Vector(-3.436, 12, -38.448), Event Player) < 3;
- }
- actions
- {
- Create Effect(Event Player, Good Aura, Purple, Vector(-3.436, 12, -38.448), 1, Visible To Position and Radius);
- Event Player.door = False;
- Small Message(Event Player, Custom String("howdy"));
- Big Message(Event Player, Custom String("+2 Candy"));
- Event Player.FunSizedcandy += 2;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 9")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-14.885, 3.808, -35.812), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find a piano"), Null, Left, 14, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Purple, Vector(-14.885, 3.808, -35.812), 1, Visible To Position and Radius);
Small Message(Event Player, Custom String("all i want is to sing in saprano"));
- Small Message(Event Player, Custom String("all i want is to sing in soprano"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("ill find some candy if you find my piano"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 candy"));
- Big Message(Event Player, Custom String("Find a piano"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Event Player.Door9fs = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 9(piano)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.Door9fs == True;
- Distance Between(Vector(28.901, 5.846, -32.190), Event Player) < 4;
- }
- actions
- {
- Create Effect(Event Player, Good Aura, Purple, Vector(28.869, 5.846, -33.237), 1, Visible To Position and Radius);
- Event Player.door = False;
- Small Message(Event Player, Custom String("the second pianos not mine but im going to steal it"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+2 Candy"));
- Event Player.FunSizedcandy += 2;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 10")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-19.492, 3.166, -27.524), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find 3 candy"), Null, Left, 16, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Purple, Vector(-19.492, 3.166, -27.524), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("thank you for coming to my door"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("it seams ive dropped 3 candies on the floor"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("collect all the candies"));
- Event Player.door = True;
- Create Effect(Event Player, Sphere, Purple, Vector(-5.687, 3, -40.535), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sphere, Purple, Vector(-1.051, 2, -6.283), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sphere, Purple, Vector(-13.144, 2.500, -19.245), 0.500, Visible To Position and Radius);
- Event Player.Door10fs = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 10(candy1)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-12.990, 3.272, -19.237), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door10fs == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-12.990, 3, -19.237), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("thats one!"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 10(candy2)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-1.023, 2.940, -6.303), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door10fs == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-1.023, 2.500, -6.303), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("there it is!"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 10(candy3)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-5.675, 3.831, -40.579), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door10fs == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Purple, Vector(-5.675, 3.500, -40.579), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("thats a candy!"));
- Event Player.FunSizedcandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("__________________________________Original Candies_____________________________(ong)")
- {
- event
- {
- Ongoing - Global;
- }
- }
- rule("door 1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(2.745, 7.542, -70.830), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find 5 candies"), Null, Left, 22.500, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, Orange, Vector(2.745, 7.542, -70.830), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("you sit up here atop my stoop"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("but 5 candies down there are needing recoup"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("collect all the candies"));
- Event Player.door = True;
- Create Effect(Event Player, Sphere, Orange, Vector(6.845, 6.400, -61.604), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sphere, Orange, Vector(13.876, 6.700, -61.690), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sphere, Orange, Vector(8.837, 6.400, -67.776), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sphere, Orange, Vector(26.221, 5.500, -62.698), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sphere, Orange, Vector(6.670, 5.700, -49.319), 0.500, Visible To Position and Radius);
- Event Player.Door1O = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(candy1)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(26.201, 6.671, -62.671), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(26.201, 5.500, -62.671), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("thats my candy!"));
- Event Player.OriginalCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(candy2)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(6.924, 7.623, -61.387), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(6.924, 6.400, -61.387), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("another candy!?!"));
- Event Player.OriginalCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(candy3)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(6.865, 6.919, -49.274), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(6.865, 5.700, -49.274), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Oh my god!!! more candy"));
- Event Player.OriginalCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(candy4)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(13.898, 7.830, -61.420), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(13.898, 6.700, -61.420), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("HOLY SH|T MORE CANDY"));
- Event Player.OriginalCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(candy5)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(9.056, 6.400, -67.620), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(9.056, 6.400, -67.620), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("according to my calculations thats a candy"));
- Event Player.OriginalCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(16.575, 7.842, -88.704), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(16.575, 7.842, -88.704), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Trick or treat!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("huh?"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("who trick or treats inside"));
- Wait(3.500, Ignore Condition);
- Small Message(Event Player, Custom String("alone"));
- Wait(4.500, Ignore Condition);
- Event Player.OriginalCandy += 1;
- Big Message(Event Player, Custom String("+1 Candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(20.030, 10.842, -97.646), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find the clock"), Null, Left, 24, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Orange, Vector(20.030, 10.842, -97.646), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("id love to give you candy"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("but this door has a lock"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("i keep the key"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("in the grandfather clock"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("Find the grandfather clock"));
- Event Player.door = True;
- Event Player.Door3O = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(clock)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(13.468, 7.840, -97.074), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door3O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(13.468, 7.840, -97.074), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Ive been in here for years"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("Im finally Free!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("time to get back to"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("My child murder spree"));
- Wait(2, Ignore Condition);
- Event Player.OriginalCandy += 2;
- Big Message(Event Player, Custom String("+2 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-8.393, 5.682, -86.191), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find the graveyard"), Null, Left, 25, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, Orange, Vector(-8.393, 5.682, -86.191), 1, Visible To Position and Radius);
Small Message(Event Player, Custom String("halloweens making my schedual complex"));
- Small Message(Event Player, Custom String("halloweens making my schedule complex"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("can you go to the graveyard and pay some respects"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("pay respects at the grave yard"));
- Event Player.door = True;
- Event Player.Door4O = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 4(graveyard)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Melee) == True;
- Distance Between(Vector(0.632, 6.509, -97.977), Event Player) < 6;
- Event Player.door == True;
- Event Player.Door4O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(1.081, 6.546, -98.127), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("I barely knew ye"));
- Wait(2, Ignore Condition);
- Event Player.OriginalCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 5")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(17.944, 11.649, -40.372), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("say a voiceline"), Null, Left, 26, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Orange, Vector(17.944, 11.649, -40.372), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("you want more candy?"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("well, thats your choice"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("I'll give you more candy"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("if i hear a line of your voice"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 candy"));
- Big Message(Event Player, Custom String("Say something"));
- Event Player.door = True;
- Event Player.OriginalCandy += 1;
- Event Player.Door5O = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 5(voiceline)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Communicating Any Voice line(Event Player) == True;
- Event Player.door == True;
- Event Player.Door5O == True;
- }
- actions
- {
- Wait(2, Ignore Condition);
- Event Player.door = False;
- Small Message(Event Player, Custom String("damn you sound like that?"));
- Wait(2, Ignore Condition);
- Event Player.OriginalCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 6")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(20.297, 8.343, -82.666), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find find 3 lamp posts"), Null, Left, 23, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, Orange, Vector(20.297, 8.343, -82.666), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("Im a lamp post repair man"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("who's to tired tonight"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("please slap all 3 lamp posts"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("to make sure they light"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 candy"));
- Big Message(Event Player, Custom String("slap 3 lamp posts"));
- Event Player.door = True;
- Event Player.OriginalCandy += 1;
- Event Player.Door6O = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 6(lamp post 1)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-1, 5, -60), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door6O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(-0.830, 10.370, -60.020), 0.500, Visible To Position and Radius);
- Small Message(Event Player, Custom String("hey your pretty good at this!"));
- Wait(2, Ignore Condition);
- Event Player.OriginalCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 6(lamp post 2)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(22.590, 4, -52.920), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door6O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(22.590, 9.600, -52.920), 0.500, Visible To Position and Radius);
- Small Message(Event Player, Custom String("nice slap ;)"));
- Wait(2, Ignore Condition);
- Event Player.OriginalCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 6(lamp post 3)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-15.869, 1.847, -13.572), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door6O == True;
- }
- actions
- {
- Event Player.door = False;
- Wait(1.800, Ignore Condition);
- Small Message(Event Player, Custom String("..."));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("you broke it"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("I trusted you and you broke it"));
- Wait(5, Ignore Condition);
- Event Player.OriginalCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 7")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-3.182, 8.330, -73.826), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("knock on the roof"), Null, Left, 27, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, Orange, Vector(-3.182, 8.330, -73.826), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("my upstairs neighbor is always clanging"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("go on the roof and give 'em some banging"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 candy"));
- Big Message(Event Player, Custom String("bang on the roof"));
- Event Player.door = True;
- Event Player.OriginalCandy += 1;
- Event Player.Door7O = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 7(roof)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(-1.287, 20, -72.330), Event Player) < 10;
- Event Player.door == True;
- Event Player.Door7O == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(-1.287, 20, -72.330), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("was something onto my roof swung"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("i couldnt quite hear it over my iron lung"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Event Player.OriginalCandy += 1;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 8")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(34.479, 6.411, -63.165), Event Player) < 5;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Orange, Vector(34.479, 6.411, -63.165), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("..."));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("no ones home..."));
- Wait(2, Ignore Condition);
- Event Player.OriginalCandy += 3;
- Big Message(Event Player, Custom String("+3 Candy"));
- Big Message(Event Player, Custom String("+1 bowl"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("=========================King Sized Candies===============================(wht)")
- {
- event
- {
- Ongoing - Global;
- }
- }
- rule("door 1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(56.595, 8.553, -65.051), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find 4 wagon wheels"), Null, Left, 32.500, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, White, Vector(56.595, 8.553, -65.051), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("i was on my wagon taking a ride"));
- Wait(2.500, Ignore Condition);
- Small Message(Event Player, Custom String("when i crashed my poor wagon right outside"));
- Wait(2.500, Ignore Condition);
- Small Message(Event Player, Custom String("but you dont want my sorry speil"));
- Wait(2.500, Ignore Condition);
- Small Message(Event Player, Custom String("ill give you some candy for 4 wagon wheel"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("Find all 4 wagon wheels"));
- Event Player.door = True;
- Event Player.Door1KS = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(wheel1)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(41.789, 9, -92.877), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1KS == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(41.789, 9, -92.877), 0.500, Visible To Position and Radius);
- Small Message(Event Player, Custom String("mama mia a wheel"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(wheel2)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(72.298, 15.343, -92.772), Event Player) < 4;
- Event Player.door == True;
- Event Player.Door1KS == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(72.186, 13.500, -92.891), 0.500, Visible To Position and Radius);
- Small Message(Event Player, Custom String("this will fit on the wagon"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(wheel3)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(72.283, 13.910, -68.630), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1KS == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(72.283, 13.500, -68.630), 0.500, Visible To Position and Radius);
- Small Message(Event Player, Custom String("wheely cool ;|"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 1(wheel4)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(97.784, 14.568, -74.830), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door1KS == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(97.784, 13.400, -74.830), 0.500, Visible To Position and Radius);
Small Message(Event Player, Custom String("jeez wagon mutch?"));
- Small Message(Event Player, Custom String("jeez wagon much?"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(54.500, 12.529, -99.938), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door6KS != True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("regain your health"), Null, Left, 33, Green, White, White,
- Visible To and String, Default Visibility);
- Create Effect(Event Player, Good Aura, White, Vector(54.500, 12.529, -99.938), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("WELCO..."));
- Wait(0.500, Ignore Condition);
- Set Player Health(Event Player, 1);
- Small Message(Event Player, Custom String("OH NO!"));
- Wait(1, Ignore Condition);
- Small Message(Event Player, Custom String("Ive hit you with my door"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("youll only get your candy once your health is more"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("regain your health"));
- Event Player.door = True;
- Event Player.Door2KS = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 2(health)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Health(Event Player) == Max Health(Event Player);
- Event Player.door == True;
- Event Player.Door2KS == True;
- Event Player.Door6KS != True;
- }
- actions
- {
- Event Player.door = False;
- Small Message(Event Player, Custom String("thank god your healthy"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("dont tell youre parents!"));
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(candy)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(36.533, 14.555, -106.547), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("find 5 candies"), Null, Left, 34, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, White, Vector(36.533, 14.555, -106.547), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("To my house youve come to trick or treat"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("but ive dropped 5 candies before my feet"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("collect all the candies"));
- Event Player.door = True;
- "close hallway"
- Create Effect(Event Player, Sphere, White, Vector(43.777, 15, -107.383), 0.500, Visible To Position and Radius);
- "tower corner"
- Create Effect(Event Player, Sphere, White, Vector(50.217, 18.300, -83.539), 0.500, Visible To Position and Radius);
- "look out corner"
- Create Effect(Event Player, Sphere, White, Vector(35.016, 14.300, -77.701), 0.500, Visible To Position and Radius);
- "Downstairs hallway"
- Create Effect(Event Player, Sphere, White, Vector(54.938, 8, -101.811), 0.500, Visible To Position and Radius);
- "inside nook"
- Create Effect(Event Player, Sphere, White, Vector(58.039, 12, -83.567), 0.500, Visible To Position and Radius);
- Event Player.Door3KS = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(candy1)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(43.777, 15, -107.383), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door3KS == True;
- }
- actions
- {
- Event Player.door = False;
- "close hallway"
- Create Effect(Event Player, Good Aura, White, Vector(43.777, 15, -107.383), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("theres the candy"));
- Event Player.KingSizedCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(candy2)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(50.217, 18.300, -83.539), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door3KS == True;
- }
- actions
- {
- Event Player.door = False;
- "tower corner"
- Create Effect(Event Player, Good Aura, White, Vector(50.217, 18.300, -83.539), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("another candy on da floor"));
- Event Player.KingSizedCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(candy3)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(35.016, 14.300, -77.701), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door3KS == True;
- }
- actions
- {
- Event Player.door = False;
- "look out corner"
- Create Effect(Event Player, Good Aura, White, Vector(35.016, 14.300, -77.701), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("this ones a snickers bar"));
- Event Player.KingSizedCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(candy4)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(54.938, 8, -101.811), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door3KS == True;
- }
- actions
- {
- Event Player.door = False;
- "Downstairs hallway"
- Create Effect(Event Player, Good Aura, White, Vector(54.938, 8, -101.811), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("my teeth hurt"));
- Event Player.KingSizedCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 3(candy5)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(58.039, 12, -83.567), Event Player) < 3;
- Event Player.door == True;
- Event Player.Door3KS == True;
- }
- actions
- {
- Event Player.door = False;
- "inside nook"
- Create Effect(Event Player, Good Aura, White, Vector(58.039, 12, -83.567), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("yeah I guess thats candy"));
- Event Player.KingSizedCandy += 1;
- Event Player.door = True;
- Big Message(Event Player, Custom String("+1 Candy"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(57.906, 13.553, -78.943), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create HUD Text(Event Player, Null, Custom String("say hello"), Null, Left, 35, Green, White, White, Visible To and String,
- Default Visibility);
- Create Effect(Event Player, Good Aura, White, Vector(57.906, 13.553, -78.943), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("HELLO!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("..."));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("Say it back"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("SAY HELLO"));
- Event Player.door = True;
- Event Player.Door4KS = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 4 (hello!)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Communicating(Event Player, Hello) == True;
- Event Player.door == True;
- Event Player.Door4KS == True;
- }
- actions
- {
- Event Player.door = False;
- Small Message(Event Player, Custom String("hi"));
- Wait(0.500, Ignore Condition);
- Small Message(Event Player, Custom String(":)"));
- Wait(0.500, Ignore Condition);
- Small Message(Event Player, Custom String(":P"));
- Wait(0.500, Ignore Condition);
- Small Message(Event Player, Custom String(":*"));
- Wait(0.500, Ignore Condition);
- Small Message(Event Player, Custom String(";)"));
- Wait(0.500, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 5")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(61.238, 8.553, -75.419), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(61.238, 8.553, -75.419), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("with all that candy your teeth will be wrotting!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("for you a toothbrush ill be allotting"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 toothebrush"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("and a singular raisin"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 1;
- Big Message(Event Player, Custom String("+1 raisin"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 6")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(74.349, 12.527, -111.195), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(74.349, 12.527, -111.195), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("all night the streets you have roam"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("but the candy is here, inside my home"));
- Wait(3, Ignore Condition);
- Teleport(Event Player, Vector(74.349, 12.527, -116.195));
- Small Message(Event Player, Custom String("now youre stuck in here with me "));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("the only way out is to find the key"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("Find the key"));
- Event Player.door = True;
- Event Player.Door6KS = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("Door 6 (key spawn)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.Door6KS == True;
- Horizontal Facing Angle Of(Event Player) > 0;
- Horizontal Facing Angle Of(Event Player) < 10;
- }
- actions
- {
- Create Effect(Event Player, Sphere, Red, Vector(52.339, 12.554, -122.074), 1.200, Visible To Position and Radius);
- Create Beam Effect(All Players(All Teams), Good Beam, Vector(53.509, 12.553, -122.501), Vector(57.006, 12.553, -124.051), Red,
- Visible To Position and Radius);
- Create Beam Effect(All Players(All Teams), Good Beam, Vector(57.006, 10, -124.051), Vector(57.006, 12.553, -124.051), Red,
- Visible To Position and Radius);
- Create Beam Effect(All Players(All Teams), Good Beam, Vector(55.990, 12.553, -123.540), Vector(55.990, 10, -123.540), Red,
- Visible To Position and Radius);
- }
- }
- rule("door 6 (key)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.Door6KS == True;
- Distance Between(Vector(55.031, 12.553, -122.971), Event Player) < 5;
- }
- actions
- {
- Event Player.door = False;
- Teleport(Event Player, Vector(74.349, 12.527, -111.195));
- Small Message(Event Player, Custom String("how can it be true, you got yourself free??"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("i suppose you deserve a little candy"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 3;
- Big Message(Event Player, Custom String("+3 candy"));
- Event Player.door = True;
- Event Player.Door6KS = False;
- Wait(10000, Ignore Condition);
- }
- }
- rule("door 7")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(101.249, 11.442, -93.793), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, White, Vector(101.249, 11.442, -93.793), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("i suppose you want some fruits for your labor"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("but all you get is the claustrophobia chamber!"));
- Wait(2, Ignore Condition);
- Teleport(Event Player, Vector(101.249, 11.442, -95.793));
- Wait(10, Ignore Condition);
- Small Message(Event Player, Custom String("I cant beleive youve been in here for 4 hours"));
- Wait(2, Ignore Condition);
- Teleport(Event Player, Vector(101.249, 11.442, -93.793));
- Small Message(Event Player, Custom String("have some candy and take a shower"));
- Wait(2, Ignore Condition);
- Event Player.KingSizedCandy += 4;
- Big Message(Event Player, Custom String("+4 candy"));
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("=-=-=-=-=-=-=-=-=-=-=-=-=-Mansion-=-=--=-=-==-=-=-=-=--=-==-=-(trqs)")
- {
- event
- {
- Ongoing - Global;
- }
- }
- rule("Mansion door")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(88.896, 14.648, -63.713), Event Player) < 3;
- Event Player.door == True;
- disabled Event Player.KingSizedCandy <= 20;
- }
- actions
- {
- Event Player.door = False;
Create Effect(Event Player, Good Aura, Green, Vector(88.896, 17, -63.713), 1, Visible To Position and Radius);
Create Effect(Event Player, Good Aura, Orange, Vector(88.896, 17, -63.713), 2, Visible To Position and Radius);
Create Effect(Event Player, Good Aura, Purple, Vector(88.896, 17, -63.713), 3, Visible To Position and Radius);
Create Effect(Event Player, Good Aura, White, Vector(88.896, 17, -63.713), 4, Visible To Position and Radius);
- disabled Create Effect(Event Player, Good Aura, Green, Vector(88.896, 17, -63.713), 1, Visible To Position and Radius);
- disabled Create Effect(Event Player, Good Aura, Orange, Vector(88.896, 17, -63.713), 2, Visible To Position and Radius);
- disabled Create Effect(Event Player, Good Aura, Purple, Vector(88.896, 17, -63.713), 3, Visible To Position and Radius);
- Create Effect(Event Player, Good Aura, Turquoise, Vector(88.896, 17, -63.713), 4, Visible To Position and Radius);
- Small Message(Event Player, Custom String("ive had my eye on you through out the night"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("as youve collected candy"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("come in and have a bite"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("i think it would be dandy"));
- Wait(2, Ignore Condition);
- Disallow Button(Event Player, Ability 1);
- Disallow Button(Event Player, Ability 2);
- Disallow Button(Event Player, Secondary Fire);
- Set Move Speed(Event Player, 0);
- Teleport(Event Player, Vector(123.334, 10.552, -27.175));
- Wait(3, Ignore Condition);
- Create In-World Text(Event Player, Event Player.Roadhogtext, Vector(124.211, 12, -21.197), 2, Do Not Clip,
- Visible To Position and String, White, Default Visibility);
- Event Player.Roadhogtext = Custom String("hi");
- Wait(2, Ignore Condition);
- Event Player.Roadhogtext = Custom String("how are you");
- Wait(2, Ignore Condition);
- Event Player.Roadhogtext = Custom String("sooooo...");
- Wait(1, Ignore Condition);
- Event Player.Roadhogtext = Custom String("Dont be mad");
- Wait(2, Ignore Condition);
- Event Player.Roadhogtext = Custom String("but");
- Wait(1, Ignore Condition);
- Event Player.Roadhogtext = Custom String("I dont have any candy");
- Wait(2, Ignore Condition);
- Event Player.Roadhogtext = Custom String("what i do have");
- Wait(2, Ignore Condition);
- Event Player.Roadhogtext = Custom String("is someone who rents out a room");
- Wait(2, Ignore Condition);
Event Player.Roadhogtext = Custom String("if you find there door in my mansion");
- Event Player.Roadhogtext = Custom String("if you find their door in my mansion");
- Wait(2, Ignore Condition);
Event Player.Roadhogtext = Custom String("theyll might give you candy maybe");
- Event Player.Roadhogtext = Custom String("they might give you candy maybe");
- Set Move Speed(Event Player, 100);
- Wait(4, Ignore Condition);
Big Message(All Players(All Teams), Custom String("Find the renters door"));
- Big Message(All Players(All Teams), Custom String("Find the tenant's door"));
- Event Player.Roadhogtext = Custom String(" ");
- Event Player.mansiondoor2 = True;
- Event Player.door = True;
- Allow Button(Event Player, Secondary Fire);
- Allow Button(Event Player, Ability 1);
- Allow Button(Event Player, Ability 2);
- Create HUD Text(Event Player, Null, Custom String("find the tenant's door"), Null, Left, 43, Green, White, White,
- Visible To and String, Default Visibility);
- Wait(10000, Ignore Condition);
- }
- }
- rule("Mansion door2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.mansiondoor2 == True;
- Distance Between(Vector(82.075, 17.554, -30.903), Event Player) < 3;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(82.075, 17.554, -30.903), 1, Visible To Position and Radius);
- Small Message(Event Player, Custom String("hello?"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("candy? oh... ummm here you go "));
- Wait(2, Ignore Condition);
- Big Message(Event Player, Custom String("+1 table mint"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("hey, while youre up my landord wanted this"));
- Wait(2, Ignore Condition);
- Big Message(Event Player, String("{0} {1} {2}", Custom String("+1"), Hero Of(Event Player), Custom String("sized trap")));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("can you take it to him"));
- Event Player.door = True;
- Create HUD Text(Event Player, Null, Custom String("give the thing to the heavy breathing man"), Null, Left, 44, Green, White,
- White, Visible To and String, Default Visibility);
- Wait(10000, Ignore Condition);
- }
- }
- rule("roadhog trap")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.mansiondoor2 == True;
- Distance Between(Vector(124.347, 11, -21.412), Event Player) < 4;
- }
- actions
- {
- Event Player.door = False;
- Small Message(Event Player, Custom String("whats that you got?"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("oh thank you"));
- Create Effect(Event Player, Sphere, Turquoise, Vector(118.745, 9.200, -44.780), 0.500, Visible To Position and Radius);
- Create Effect(Event Player, Sparkles, Yellow, Vector(118.745, 8.700, -44.780), 5, Visible To Position and Radius);
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("well would you look at that!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("a piece of candy was right behind you all along"));
- Wait(4, Ignore Condition);
- Small Message(Event Player, Custom String("go pick it up :)"));
- Event Player.door = True;
- Event Player.candytrap = True;
- Create HUD Text(Event Player, Null, Custom String("pick up the candy"), Null, Left, 46, Green, White, White, Visible To and String,
- Default Visibility);
- Wait(10000, Ignore Condition);
- }
- }
- rule("candy trap")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.TrickOrTreat == True;
- Event Player.door == True;
- Event Player.mansiondoor2 == True;
- Distance Between(Vector(118.745, 10.550, -44.780), Event Player) < 2;
- }
- actions
- {
- Event Player.door = False;
- Teleport(Event Player, Vector(118.745, 10.550, -44.780));
- Start Accelerating(Event Player, Vector(0, 1, 0), 100, 20, To World, Direction Rate and Max Speed);
- Disallow Button(Event Player, Ability 1);
- Disallow Button(Event Player, Ability 2);
- Disallow Button(Event Player, Secondary Fire);
- Set Move Speed(Event Player, 0);
- Disable Movement Collision With Environment(Event Player, True);
- Wait(0.500, Ignore Condition);
- Enable Movement Collision With Environment(Event Player);
- Stop Accelerating(Event Player);
- Event Player.door = True;
- Event Player.candytrap = True;
- Wait(1, Ignore Condition);
- Teleport(Event Player, Vector(118.745, 18.500, -44.780));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("FOOL"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("youve fallen right into my trap"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("now i just gotta wait for the candy stealing ray to power up"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("i hope it doesnt get broken"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("i worked really hard on it :)"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("so dont break it"));
- disabled Loop If Condition Is True;
- Event Player.destroymachine = True;
- Create HUD Text(Event Player, Null, Custom String("destroy the machine and the 4 nodes"), Null, Left, 47, Green, White, White,
- Visible To and String, Default Visibility);
- Wait(10000, Ignore Condition);
- }
- }
- rule("node locations")
- {
- event
- {
- Ongoing - Global;
- }
- actions
- {
- Global.A = Vector(129.270, 19, -22.363);
- Global.B = Vector(128.531, 19, -29.179);
- Global.C = Vector(117.820, 19, -26.411);
- Global.D = Vector(120.177, 19, -20.443);
- Global.E = Vector(123.382, 20, -27.262);
- }
- }
- rule("node a")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.destroymachine == True;
- Is Button Held(Event Player, Primary Fire) == True;
- Distance Between(Global.A, Ray Cast Hit Position(Eye Position(Event Player), Facing Direction Of(Event Player) * Distance Between(
Event Player, Global.A) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 1;
- Event Player, Global.A) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 2;
- }
- actions
- {
- disabled Wait(1, Abort When False);
- Play Effect(Event Player, Good Explosion, Turquoise, Global.A, 7);
- Play Effect(All Players(All Teams), Explosion Sound, White, Vector(118.934, 20.687, -44.461), 30);
- Event Player.NodeNum += 1;
- Small Message(Event Player, Custom String("HEY!"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("node b")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.destroymachine == True;
- Is Button Held(Event Player, Primary Fire) == True;
- Distance Between(Global.B, Ray Cast Hit Position(Eye Position(Event Player), Facing Direction Of(Event Player) * Distance Between(
Event Player, Global.B) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 1;
- Event Player, Global.B) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 2;
- }
- actions
- {
- disabled Wait(1, Abort When False);
- Play Effect(Event Player, Good Explosion, Turquoise, Global.B, 7);
- Play Effect(All Players(All Teams), Explosion Sound, White, Vector(118.934, 20.687, -44.461), 30);
- Event Player.NodeNum += 1;
- Small Message(Event Player, Custom String("stop that"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("node c")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.destroymachine == True;
- Is Button Held(Event Player, Primary Fire) == True;
- Distance Between(Global.C, Ray Cast Hit Position(Eye Position(Event Player), Facing Direction Of(Event Player) * Distance Between(
Event Player, Global.C) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 1;
- Event Player, Global.C) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 2;
- }
- actions
- {
- disabled Wait(1, Abort When False);
- Play Effect(Event Player, Good Explosion, Turquoise, Global.C, 7);
- Play Effect(All Players(All Teams), Explosion Sound, White, Vector(118.934, 20.687, -44.461), 30);
- Event Player.NodeNum += 1;
- Small Message(Event Player, Custom String("Cmon man please :("));
- Wait(10000, Ignore Condition);
- }
- }
- rule("node d")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.destroymachine == True;
- Is Button Held(Event Player, Primary Fire) == True;
- Distance Between(Global.D, Ray Cast Hit Position(Eye Position(Event Player), Facing Direction Of(Event Player) * Distance Between(
Event Player, Global.D) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 1;
- Event Player, Global.D) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 2;
- }
- actions
- {
- disabled Wait(1, Abort When False);
- Play Effect(Event Player, Good Explosion, Turquoise, Global.D, 7);
- Play Effect(All Players(All Teams), Explosion Sound, White, Vector(118.934, 20.687, -44.461), 30);
- Event Player.NodeNum += 1;
- Small Message(Event Player, Custom String("STOP!"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("node e")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.destroymachine == True;
- Is Button Held(Event Player, Primary Fire) == True;
- Distance Between(Global.E, Ray Cast Hit Position(Eye Position(Event Player), Facing Direction Of(Event Player) * Distance Between(
- Event Player, Global.E) + Eye Position(Event Player), Null, All Players(All Teams), False)) <= 2;
- }
- actions
- {
- disabled Wait(1, Abort When False);
- Play Effect(Event Player, Good Explosion, Turquoise, Global.E, 15);
- Play Effect(All Players(All Teams), Explosion Sound, White, Vector(118.934, 20.687, -44.461), 30);
- Event Player.NodeNum += 1;
- Small Message(Event Player, Custom String("THAT COSTS OVER 15,000$ >:()"));
- Wait(10000, Ignore Condition);
- }
- }
- rule("post trap")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.NodeNum == 5;
- }
- actions
- {
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("well..."));
- Wait(3, Ignore Condition);
Small Message(Event Player, Custom String("I hope your happy"));
- Small Message(Event Player, Custom String("I hope youre happy"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("you destroyed my expensive machine "));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("get out of my house"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("at least I have all 8 of my candy machines :)"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("like the two behind you"));
- Wait(3, Ignore Condition);
- Set Move Speed(Event Player, 100);
- Small Message(Event Player, Custom String("I dont know what i'd do without them"));
- Event Player.candymachine = True;
- Allow Button(Event Player, Secondary Fire);
- Allow Button(Event Player, Ability 1);
- Allow Button(Event Player, Ability 2);
- Create HUD Text(Event Player, Null, Custom String("destroy 8 candy machines"), Null, Left, 49, Green, White, White,
- Visible To and String, Default Visibility);
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(111.914, 10.542, -49.461), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(111.914, 10.542, -49.461), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM2")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(123.593, 10.542, -52.682), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(123.593, 10.542, -52.682), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM3")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(130.936, 10.543, -38.466), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(130.936, 10.543, -38.466), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(135.390, 16.556, -34.153), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(135.390, 16.556, -34.153), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM5")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(140.187, 12.543, -26.002), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(140.187, 12.543, -26.002), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM6")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(125.962, 12.545, -17.386), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(125.962, 12.545, -17.386), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM7")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(96.107, 13.543, -50.854), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(96.107, 13.543, -50.854), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("CM8")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.candymachine == True;
- Event Player.TrickOrTreat == True;
- Distance Between(Vector(88.305, 14.543, -41.168), Event Player) < 3;
- Event Player.door == True;
- }
- actions
- {
- Event Player.door = False;
- Create Effect(Event Player, Good Aura, Turquoise, Vector(88.305, 14.543, -41.168), 1, Visible To Position and Radius);
- Event Player.CandyMachNum += 1;
- Event Player.door = True;
- Wait(10000, Ignore Condition);
- }
- }
- rule(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;END;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;")
- {
- event
- {
- Ongoing - Global;
- }
- }
- rule("get out")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.CandyMachNum >= 8;
- }
- actions
- {
- disabled Create Effect(All Players(All Teams), Light Shaft, White, Vector(80.574, 14, -96.583), 6, Visible To Position and Radius);
- Small Message(Event Player, Custom String("What have you done!"));
- Wait(2, Ignore Condition);
- Small Message(Event Player, Custom String("if you hit all of my candy machines the whole mansion will explode!"));
- Wait(3, Ignore Condition);
- Small Message(Event Player, Custom String("WE gotta get out of here"));
- Create In-World Text(All Players(All Teams), Custom String("Reach safety!"), Vector(80.574, 14.513, -96.583), 1, Do Not Clip,
- Visible To Position and String, White, Default Visibility);
- Create HUD Text(Event Player, Null, Custom String("reach safty"), Null, Left, 51, Green, White, White, Visible To and String,
- Default Visibility);
- Wait(100000000, Ignore Condition);
- }
- }
- rule("ESCAPE(explosions)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.CandyMachNum >= 8;
- Z Component Of(Position Of(Event Player)) <= -77;
- }
- actions
- {
- Play Effect(Event Player, Bad Explosion, Green, Vector(Random Integer(70, 100), Random Integer(14, 40), Random Integer(-72, -62)),
- Random Integer(5, 10));
- Wait(Random Integer(0.250, 1.500), Ignore Condition);
- Play Effect(Event Player, Bad Explosion, Purple, Vector(Random Integer(70, 100), Random Integer(14, 40), Random Integer(-72, -62)),
- Random Integer(5, 10));
- Wait(Random Integer(0.250, 1.500), Ignore Condition);
- Play Effect(Event Player, Bad Explosion, Orange, Vector(Random Integer(70, 100), Random Integer(14, 40), Random Integer(-72, -62)),
- Random Integer(5, 10));
- Wait(Random Integer(0.250, 1.500), Ignore Condition);
- Play Effect(Event Player, Bad Explosion, White, Vector(Random Integer(70, 100), Random Integer(14, 40), Random Integer(-72, -62)),
- Random Integer(5, 10));
- Wait(Random Integer(0.250, 1.500), Ignore Condition);
- Loop If Condition Is True;
- Wait(10000, Ignore Condition);
- }
- }
- rule("ESCAPE(cam)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.CandyMachNum >= 8;
- Z Component Of(Position Of(Event Player)) <= -77;
- }
- actions
- {
- Disallow Button(Event Player, Ability 1);
- Disallow Button(Event Player, Ability 2);
- Disallow Button(Event Player, Secondary Fire);
- Start Camera(Event Player, Vector(80.316, 13.683, -96.703), Vector(0.110, 0.830, 0.540), 1);
- Teleport(Event Player, Vector(85.836, 14.512, -77.178));
- Set Move Speed(Event Player, 7);
- Start Throttle In Direction(Event Player, Vector(-0.260, 0, -0.970), 1, To World, Replace existing throttle,
- Direction and Magnitude);
- Wait(0.250, Ignore Condition);
- Start Camera(Event Player, Vector(80.316, 13.683, -96.703), Position Of(Event Player) + Vector(0, 5, 0), 1);
- Wait(10000, Ignore Condition);
- }
- }
- rule("ESCAPE(text)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.CandyMachNum >= 8;
- Z Component Of(Position Of(Event Player)) <= -77;
- }
- actions
- {
- Big Message(All Players(All Teams), Custom String("and so youve tricked and you treated"));
- Wait(3.500, Ignore Condition);
- Big Message(All Players(All Teams), Custom String("your foe has been defeated"));
- Wait(3.500, Ignore Condition);
- Big Message(All Players(All Teams), Custom String("and though the candy is sweet"));
- Wait(3.500, Ignore Condition);
- Big Message(All Players(All Teams), Custom String("whats important is the people you greeted"));
- Wait(3.500, Ignore Condition);
- Big Message(All Players(All Teams), Custom String("and now that your wrappers are licked clean"));
- Wait(3.500, Ignore Condition);
- Big Message(All Players(All Teams), Custom String("id like to say..."));
- Wait(10000, Ignore Condition);
- }
- }
- rule("happy holloween")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.CandyMachNum >= 8;
- Z Component Of(Position Of(Event Player)) <= -90;
- Is In Spawn Room(Event Player) == False;
- }
- actions
- {
- Stop Throttle In Direction(Event Player);
- Wait(1, Abort When False);
- Set Move Speed(Event Player, 0);
- Wait(1, Ignore Condition);
- Play Effect(All Players(All Teams), Bad Explosion, Turquoise, Vector(88.646, 30, -67.362), 100);
- Wait(0.300, Ignore Condition);
- Create In-World Text(Event Player, Custom String("Happy"), Vector(88.645, 30, -67.362), 4, Do Not Clip,
- Visible To Position and String, White, Default Visibility);
- Create In-World Text(Event Player, Custom String("Halloween"), Vector(88.644, 27, -67.363), 4, Do Not Clip,
- Visible To Position and String, White, Default Visibility);
- Create In-World Text(Event Player, String("{0}!", Event Player, Custom String(",")), Vector(88.644, 33, -67.363), 4, Do Not Clip,
- Visible To Position and String, White, Default Visibility);
- Wait(15, Ignore Condition);
- Event Player.CandyMachNum = -1;
- Set Move Speed(Event Player, 100);
- Stop Camera(Event Player);
- Allow Button(Event Player, Secondary Fire);
- Allow Button(Event Player, Ability 1);
- Allow Button(Event Player, Ability 2);
- Wait(10000, Ignore Condition);
- }
- }
- disabled rule("Rule 106")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Interact) == True;
- }
- actions
- {
- Teleport(Event Player, Vector(86.440, 14.509, -67.850));
- Wait(2, Ignore Condition);
- Event Player.CandyMachNum = 8;
- }
- }
- rule("respawn finale")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Event Player.CandyMachNum >= 8;
- Is Dead(Event Player) == True;
- }
- actions
- {
- Respawn(Event Player);
- Wait(1.500, Ignore Condition);
- Teleport(Event Player, Vector(86.093, 13.883, -77.277));
- Loop If Condition Is True;
- }
- }