Advertisement
GrandBulwark

Untitled

Feb 15th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. Scriptname IA_Bulwark_ArmorSwap extends ObjectReference
  2.  
  3. GlobalVariable Property IAApotheusMaster Auto ;Our master toggle which is set in the preceding McM script Global = 1(On/Default) Global = 0(Off)
  4. GlobalVariable Property IAApotheusModded Auto ;Our modded set of armor's variable. In this instance it should Global = 0(On/Default), but should be global = 100(Off) when the Master Master Gvar = 0
  5. GlobalVariable Property IAApotheusVanilla Auto ;Our vanilla set of armor's variable. In this instance it should Global = 1(Off/Default), but should be global = 0(On) when the Master Master Gvar = 0
  6.  
  7. State IAArmorSwap ;State and Gval IAApotheusMaster set in McM
  8. Event OnBeginState()
  9. If GetState() == "IAArmorSwap"
  10. ;here starts our catch for idiots who mess with Gvars in the console. Our values must be preserved or weird things will happen.
  11. If IAApotheusModded.GetValueInt() > 100 || IAApotheusModded.GetValueInt() < 0 || If IAApotheusVanilla.GetValueInt() > 100 || IAApotheusVanilla.GetValueInt() < 0
  12. IAApotheusModded.SetValue(0); Turns ON the modded sets again
  13. IAApotheusVanilla.SetValue(100); Turns OFF the Vanilla sets again
  14. Debug.MessageBox("Dude, leave my damned Gvars alone. Do you like breaking things? APOTHEUS armor is Distributed... Stop messing with stuff... Please!?")
  15. Debug.Trace("IA-UTILITY: Eckss, Hoth this guy has been screwing with the globals... Disregard his damned bug reports")
  16. Elseif IAApotheusMaster.GetValueInt() == 0 ;If they turned off the armor in the McM
  17. IAApotheusModded.SetValue(100); OFF
  18. IAApotheusVanilla.SetValue(0); ON
  19. Debug.MessageBox("Apotheus armor removed from distribution!")
  20. ElseIf IAApotheusMaster.GetValueInt() == 1 ;1 is the armory ON
  21. IAApotheusModded.SetValue(0); ON
  22. IAApotheusVanilla.SetValue(100); OFF
  23. Debug.MessageBox("Apotheus armor is distributed!")
  24. Else
  25. Endif
  26. Else
  27. Endif
  28. EndEvent
  29. EndState
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement