Advertisement
SebaSophia

Arvendon Castle [logic]

Feb 4th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. OnRoundStart()
  2. {
  3. \\The last number in this line is how many kills are needed for the boss to spawn.
  4. VariableInt.Set("killsForBoss", 20);
  5.  
  6. \\The numbers in these three lines control where the boss will spawn.
  7. \\-51.0,448.0,2522.0
  8. \\3835.0,352.0,2839.0
  9. VariableFloat.Set("bossX", -51.0);
  10. VariableFloat.Set("bossY", 448.0);
  11. VariableFloat.Set("bossZ", 2522.0);
  12.  
  13. \\The number in this sets what type of titan the boss is.
  14. \\0=Normal, 1=Abberant, 2=Jumper, 3=Crawler, 4=Punk
  15. VariableInt.Set("bossType", 4);
  16.  
  17. \\The number in this sets the size of the boss.
  18. VariableFloat.Set("bossSize", 5.0);
  19.  
  20. \\The number in this sets the boss's HP.
  21. VariableInt.Set("bossHP", 5000);
  22.  
  23. VariableInt.Set("titansDead", 0);
  24. }
  25.  
  26. OnTitanDie("t","p")
  27. {
  28. VariableInt.Add("titansDead", 1);
  29. If(Int.Equals(VariableInt("titansDead"),20))
  30. {
  31. Titan.SpawnTitanAt(2, VariableFloat("bossSize"), 10000, 1, VariableFloat("bossX"), VariableFloat("bossY"), VariableFloat("bossZ"));
  32. Game.PrintMessage("<size=18><color=#ff3333>The_City_Boss_has_spawned!</color></size>");
  33. }
  34. If(Int.Equals(VariableInt("titansDead"),80))
  35. {
  36. Titan.SpawnTitanAt(VariableInt("bossType"), VariableFloat("bossSize"), VariableInt("bossHP"), 1, 3835.0, 352.0, 2839.0);
  37. Game.PrintMessage("<size=18><color=#ff3333>The_Arvendon_Boss_has_spawned!</color></size>");
  38. }
  39. }
  40.  
  41. OnChatInput("input")
  42. {
  43. If(String.Equals(VariableString("input"),"/med"))
  44. {
  45. Game.PrintMessage("<size=16><color=#ffaaaa>ATTENTION!</color> There's_a_medbay_around! Look_for_the_red_cross_and <color=#aaffaa>touch_a_bed</color> <color=#ffffaa>Shout_MEDIC_for_a_revive!</color></size>");
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement