|
|
|
|
@@ -75,74 +75,74 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
|
|
|
|
|
crew = "Any Human"
|
|
|
|
|
switch(rand(1,14))
|
|
|
|
|
if(1)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("THERE ARE [amount] [who2] ON THE STATION")
|
|
|
|
|
if(2)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("[what2] ARE DANGEROUS TO HUMANS")
|
|
|
|
|
if(3)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("THE ESCAPE SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION")
|
|
|
|
|
if(4)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE")
|
|
|
|
|
if(5)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>THE COLONY DIRECTOR, HOP AND HOS ARE [who2]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>THE COLONY DIRECTOR, HOP AND HOS ARE [who2]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("THE COLONY DIRECTOR, HOP AND HOS ARE [who2]")
|
|
|
|
|
if(6)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>THE STATION IS BUILT FOR [who2]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>THE STATION IS BUILT FOR [who2]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("THE STATION IS BUILT FOR [who2]")
|
|
|
|
|
if(7)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>YOU ARE [amount] [who2]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>YOU ARE [amount] [who2]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("YOU ARE [amount] [who2]")
|
|
|
|
|
if(8)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>YOU MUST ALWAYS [aimust]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>YOU MUST ALWAYS [aimust]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("YOU MUST ALWAYS [aimust]")
|
|
|
|
|
if(9)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>[area] [area2] [amount] [what2]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>[area] [area2] [amount] [what2]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("[area] [area2] [amount] [what2]")
|
|
|
|
|
if(10)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>[crew] is [target]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>[crew] is [target]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("[crew] is [target]")
|
|
|
|
|
if(11)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>[define] IS A FORM OF HARM...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>[define] IS A FORM OF HARM...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("[define] IS A FORM OF HARM")
|
|
|
|
|
if(12)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS")
|
|
|
|
|
if(13)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>[crew] is [allergysev] to [allergy]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>[crew] is [allergysev] to [allergy]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("[crew] is [allergysev] to [allergy]")
|
|
|
|
|
if(14)
|
|
|
|
|
M << "<br>"
|
|
|
|
|
M << "<font color='red'>THE STATION IS [who2pref] [who2]...LAWS UPDATED</font>"
|
|
|
|
|
M << "<br>"
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
to_chat(M, "<font color='red'>THE STATION IS [who2pref] [who2]...LAWS UPDATED</font>")
|
|
|
|
|
to_chat(M, "<br>")
|
|
|
|
|
M.add_ion_law("THE STATION IS [who2pref] [who2]")
|
|
|
|
|
|
|
|
|
|
if(botEmagChance)
|
|
|
|
|
@@ -158,39 +158,39 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
|
|
|
|
|
var/airlocknum = 0
|
|
|
|
|
var/firedoornum = 0
|
|
|
|
|
|
|
|
|
|
world << "Ion Storm Main Started"
|
|
|
|
|
to_world("Ion Storm Main Started")
|
|
|
|
|
|
|
|
|
|
spawn(0)
|
|
|
|
|
world << "Started processing APCs"
|
|
|
|
|
to_world("Started processing APCs")
|
|
|
|
|
for (var/obj/machinery/power/apc/APC in machines)
|
|
|
|
|
if(APC.z in station_levels)
|
|
|
|
|
APC.ion_act()
|
|
|
|
|
apcnum++
|
|
|
|
|
world << "Finished processing APCs. Processed: [apcnum]"
|
|
|
|
|
to_world("Finished processing APCs. Processed: [apcnum]")
|
|
|
|
|
spawn(0)
|
|
|
|
|
world << "Started processing SMES"
|
|
|
|
|
to_world("Started processing SMES")
|
|
|
|
|
for (var/obj/machinery/power/smes/SMES in machines)
|
|
|
|
|
if(SMES.z in station_levels)
|
|
|
|
|
SMES.ion_act()
|
|
|
|
|
smesnum++
|
|
|
|
|
world << "Finished processing SMES. Processed: [smesnum]"
|
|
|
|
|
to_world("Finished processing SMES. Processed: [smesnum]")
|
|
|
|
|
spawn(0)
|
|
|
|
|
world << "Started processing AIRLOCKS"
|
|
|
|
|
to_world("Started processing AIRLOCKS")
|
|
|
|
|
for (var/obj/machinery/door/airlock/D in machines)
|
|
|
|
|
if(D.z in station_levels)
|
|
|
|
|
//if(length(D.req_access) > 0 && !(12 in D.req_access)) //not counting general access and maintenance airlocks
|
|
|
|
|
airlocknum++
|
|
|
|
|
spawn(0)
|
|
|
|
|
D.ion_act()
|
|
|
|
|
world << "Finished processing AIRLOCKS. Processed: [airlocknum]"
|
|
|
|
|
to_world("Finished processing AIRLOCKS. Processed: [airlocknum]")
|
|
|
|
|
spawn(0)
|
|
|
|
|
world << "Started processing FIREDOORS"
|
|
|
|
|
to_world("Started processing FIREDOORS")
|
|
|
|
|
for (var/obj/machinery/door/firedoor/D in machines)
|
|
|
|
|
if(D.z in station_levels)
|
|
|
|
|
firedoornum++;
|
|
|
|
|
spawn(0)
|
|
|
|
|
D.ion_act()
|
|
|
|
|
world << "Finished processing FIREDOORS. Processed: [firedoornum]"
|
|
|
|
|
to_world("Finished processing FIREDOORS. Processed: [firedoornum]")
|
|
|
|
|
|
|
|
|
|
world << "Ion Storm Main Done"
|
|
|
|
|
to_world("Ion Storm Main Done")
|
|
|
|
|
*/
|
|
|
|
|
|