Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Need to make a variable called spell_level and make a verb
- that changes it. The spell_level should be in effect with
- all spells.
- */
- var/already_clicked
- mob //the useful verbs for the GM have been pretty much checked as of 10/16/06 and look good ;)
- GM
- verb
- announce(msg as text)
- set desc = "Announce something to the world."
- set category = "GM verbs"
- world << "<font color =blue>([usr.name] announces): [msg]"
- verb
- world_inform(msg as text)
- set desc = "Inform the world about something."
- set category = "GM verbs"
- world << "<center><font color =green><b>Game Moderator [usr.name] would like to inform:</b></center>\n\n<center><font color =green><TT>[msg]</TT></center>"
- verb
- change_density()
- set desc = "Change your density."
- set category = "GM verbs"
- if(density == 1)
- density = 0 //doesn't matter, usr.density or density
- usr << "You change your density to 0." //maybe a return statement below this?
- else
- density = 1
- usr << "You change your density to 1." //maybe a return statement below this?
- verb
- change_your_name()
- set desc = "Change your name."
- set category = "GM verbs"
- usr.names = input(usr,"What would you like your name to be changed to?","Name change",usr.names)
- usr.name = usr.names
- usr << "You changed your name to [usr.names]."
- verb
- change_mobs_name()
- set desc = "Change the name of someone."
- set category = "GM verbs"
- set src in view(1)
- if(src == usr)
- return
- else
- var/their_new_name = input(usr,"You are changing [src.name]'s name.",src.name)
- usr << "You changed [src.name]'s name to [their_new_name]."
- src.name = their_new_name
- verb
- who()
- var/tmp/count_mobs = 0 //does this variable have to be temporary?
- set desc = "Who's in world?"
- set category = "GM verbs"
- if(already_clicked)
- return
- else
- usr << "<font color =gray><TT>ƒƒƒƒƒƒ¤People currently in World¤ƒƒƒƒƒƒ</TT></font>"
- var/mob/M
- for(M in world){
- if(!M.key)
- continue
- else
- if(M.GM_powers)
- if(src.key == "DragonMasterGod")
- count_mobs++
- usr << "<font color = orange>(</font><font color =blue><b>MGM</b></font><font color = orange>)</font><font color = blue> [src.name]</font> Level <font color = green>\[</font><font color =gray>[src.level]</font><font color = green>\]</font><font color = purple>{</font>[src.key]<font color = purple>}</font>"
- else
- count_mobs++
- usr << "<font color = orange>(</font><font color =blue><b>GM</b></font><font color = orange>)</font><font color = blue> [src.name]</font> Level <font color = green>\[</font><font color =gray>[src.level]</font><font color = green>\]</font><font color = purple>{</font>[src.key]<font color = purple>}</font>"
- else
- count_mobs++
- usr << "<font color =blue>[src.name]</font> Level <font color =gray>[src.level]</font>"
- usr << "____Player count: [count_mobs]____"
- already_clicked = 1
- sleep(50)
- already_clicked = 0
- return
- //if(usr == src) // may need to be changed
- //return
- //else
- }
- verb
- set_health()
- set desc = "Put your health to a lower state."
- set category = "GM verbs"
- lowering_health:
- var/new_health = input(usr,"Your health?","Set Health",usr.maxHealth) as num
- if(new_health <= 0)
- usr << "Your health can't be a negative integer."
- goto lowering_health
- if(new_health > usr.maxHealth)
- usr << "You're trying to cheat? You're entitled to playing this game legit too."
- goto lowering_health
- else
- new_health = round(new_health)
- usr.health = new_health
- usr << "You set your health to [new_health]."
- return
- verb
- teleport(var/M as mob in world)
- set desc = "Go to the location of someone."
- set category = "GM verbs"
- input(usr,"Who would you like to teleport to?","Teleport",M)
- //M = teleported_to
- usr << "[M]." //debugging code
- if(M == usr)
- usr << "You can not teleport to yourself."
- usr << "[M]."
- return
- else
- if(de_teleportx && de_teleporty && de_teleportz) // may need some testing
- teleported = 1
- usr << "[teleported]"
- usr.loc = get_step(M,SOUTH)
- usr << "You appear infront of [M]."
- M << "[usr.name] teleports infront of you."
- else
- de_teleportx = x
- de_teleporty = y
- de_teleportz = z
- teleported = 1
- usr << "[teleported]"
- usr.loc = get_step(M,SOUTH)
- usr << "You appear infront of [M]."
- M << "[usr.name] teleports infront of you."
- verb
- de_teleport() // may need some more testing
- set desc = "Go back to your original position."
- set category = "GM verbs"
- usr << "[teleported]"
- if(teleported)
- usr.loc = locate(de_teleportx, de_teleporty, de_teleportz)
- usr << "You teleported back to your first location."
- usr.de_teleportx = 0
- usr.de_teleporty = 0
- usr.de_teleportz = 0
- teleported = 0
- else
- return
- verb
- summon(var/M as mob in world) //tested and looks good
- set desc = "Summon someone."
- set category = "GM verbs"
- input(usr,"Who would you like to summon?","Summon",M)
- src = M
- if(src == usr)
- usr << "You can not summon yourself."
- return
- else // might need some more testing
- src.already_summoned++
- usr << "[src.already_summoned]"
- if(src.already_summoned >= 2) // yet to be debugged
- //var/summon_again = input(usr,"This mob has already been summoned!","Again?") in list("Yes","No")
- //if(summon_again == "Yes")
- src.loc = get_step(usr,SOUTH)
- usr << "You summon [src.name]." // was M
- src << "You have been summoned by [usr.name]." // was M
- //if(summon_again == "No")
- //usr << "You choose not to summon mob again."
- //return
- return
- src.de_summonx = x
- src.de_summony = y
- src.de_summonz = z
- usr << "[de_summonx], [de_summony], [de_summonz]"
- src.summoned = 1
- src.loc = get_step(usr,SOUTH)
- usr << "You summon [src.name]." // was M
- src << "You have been summoned by [usr.name]." // was M
- verb //tested and looks good
- de_summon() //might need some more testing // if this stays this way, all mobs infront will be unsummoned
- set desc = "Send them back to their original position."
- for(var/tmp/M as mob in get_step(usr,usr.dir))
- set category = "GM verbs"
- //input(usr,"Who would you like to desummon?","Desummoning",M)
- src = M
- //usr << "[src.summoned]" // debugging code
- if(src.summoned)
- usr << "[de_summonx], [de_summony], [de_summonz]"
- src.loc = locate(src.de_summonx, src.de_summony, src.de_summonz)
- usr << "You desummoned [src.name]."
- src << "You have been placed back to your original location."
- src.summoned = 0
- src.already_summoned = 0
- else
- usr << "This mob has not been summoned."
- return
- verb
- get_location(var/M as mob in world)
- set desc = "Get the location of someone."
- set category = "GM verbs"
- input(usr,"Whos location would you like to get?","Getting location",M)
- src = M
- usr << "[src.x], [src.y], [src.z]"
- verb
- mute_player() //needs work
- set desc = "Mute a player in the world."
- set category = "GM verbs"
- whoToMute = input(usr,"Who you gonna mute?","Muting whom?") in players
- whoToMute.choiceOfMute = input(usr,"How long do you wish to mute this person?","Length of Mute") in list ("Seconds","Minutes","Hours","Days","Permanently","Nevermind")
- if(whoToMute.choiceOfMute == "Seconds")
- whoToMute.durationOfMute = input(usr,"How many seconds do you wish to mute [M]?","Seconds",whoToMute.durationOfMute) as num
- whoToMute.durationOfMute *= 10
- whoToMute << "You have been muted for [whoToMute.durationOfMute / 10] second\s."
- if(whoToMute.choiceOfMute == "Minutes")
- whoToMute.durationOfMute = input(usr,"How many minutes do you wish to mute [M]?","Minutes",whoToMute.durationOfMute) as num
- whoToMute.durationOfMute *= 600
- whoToMute << "You have been muted for [whoToMute.durationOfMute / 600] minute\s."
- if(whoToMute.choiceOfMute == "Hours")
- whoToMute.durationOfMute = input(usr,"How many hours do you wish to mute [M]?","Hours",whoToMute.durationOfMute) as num
- whoToMute.durationOfMute *= 36000
- whoToMute << "You have been muted for [whoToMute.durationOfMute / 36000] hour\s."
- if(whoToMute.choiceOfMute == "Days")
- whoToMute.durationOfMute = input(usr,"How many days do you wish to mute [M]?","Days",whoToMute.durationOfMute) as num
- whoToMute.durationOfMute *= 864000
- whoToMute << "You have been muted for [whoToMute.durationOfMute / 864000] day\s."
- if(whoToMute.choiceOfMute == "Permanently")
- whoToMute.durationOfMute = 1000000000000 * 75
- whoToMute << "You have been muted indefinately."
- whoToMute.verbs -= /mob/verb/say
- whoToMute.muted = 1
- src.overlays += image('overlayicons.dmi',icon_state = "Muted")
- sleep(whoToMute.durationOfMute)
- whoToMute << "Your mute duration is over. You may now speak."
- whoToMute.verbs += /mob/verb/say
- src.overlays -= image('overlayicons.dmi',icon_state = "Muted")
- whoToMute.muted = 0
- verb
- get_health()
- set desc = "Get a mob's health."
- set category = "GM verbs"
- set src in oview(1)
- usr << "[src]'s health is at [src.health]."
- client/var/muted = 0
- client/var/choiceOfMute = 0
- client/var/durationOfMute = 0
- var/client/whoToMute
- var/players = list("Nothing")
- client/New()
- players += src
- return ..()
- /*
- if(M.muted)
- if(M.choiceOfMute == "Seconds")
- Moderator << "[M] is already muted for \a [M.durationOfMute / 10] second\s."
- break
- if(M.choiceOfMute == "Minutes")
- Moderator << "[M] is already muted for \a [M.durationOfMute / 600] minute\s."
- break
- if(M.choiceOfMute == "Hours")
- Moderator << "[M] is already muted for \an [M.durationOfMute / 36000] hour\s."
- break
- if(M.choiceOfMute == "Days")
- Moderator << "[M] is already muted for \a [M.durationOfMute / 864000] day\s."
- break
- */
- mob
- MegaGM
- verb
- make_GM()
- set desc = "Give GM powers."
- set src in world
- if(src == usr && src.GM_powers)
- usr << "You're already a GM."
- return
- if(!src.GM_powers) //might have to make a for loop saying for(M as mob in oview()) and make it so it
- set category = "GM verbs" //checks if they have a key or not to establish if they're able to recieve
- if(src == usr && !src.GM_powers) //the GM powers or not. Same applies for the Take_GM verb except
- usr << "You make yourself a GM." //vice-versa.
- usr.verbs += typesof(/mob/GM/verb)
- usr.GM_powers = 1
- else
- usr = input(usr,"Who would you like to make a GM?","Make GM",src)
- src.verbs += typesof(/mob/GM/verb)
- src.GM_powers = 1
- src << "You have been given GM powers."
- if(src.GM_powers && src != usr)
- usr << "This person already has GM powers."
- return
- verb
- take_GM()
- set desc = "Take the GM powers away."
- if(src.GM_powers) // if this doesn't work, try src.GM_powers == 1
- set category = "GM verbs"
- set src in world
- if(src == usr)
- var/take_away_own = input(usr,"Do you want to take away your own GM power?") in list ("Yes","No")
- if(take_away_own == "Yes")
- usr.verbs -= typesof(/mob/GM/verb)
- usr.GM_powers = 0
- usr << "Your GM powers have been taken away."
- if(take_away_own == "No")
- usr << "You decide not to take away your own GM powers."
- return
- else
- usr = input(usr,"Who would you like to take GM away from?","Take GM",src)
- src.verbs -= typesof(/mob/GM/verb)
- src.GM_powers = 0
- src << "Your GM powers have been taken away."
- else
- usr << "This person does not have GM powers."
- return
- world_blessing()
- set category = "GM verbs"
- set desc = "Bless the people of the world with an aura of healing refreshment."
- var/mob/S
- for(S in world){
- if(!S.key) continue
- else
- S.overlays += image('blessed.dmi')
- S.health = S.maxHealth
- if(S == usr)
- S << "<font color = yellow>You bless yourself.</font>"
- else
- S << "<font color = yellow>A <b>GM</b> has blessed you.</font>"
- sleep(10)
- S.overlays -= image('blessed.dmi')
- S << "<font color = yellow>You are now at full health.</font>"
- }
- create()
- set category = "GM verbs"
- set desc = "Create something that you want."
- var/create = input(usr,"Create something at will.","What to create?") in objects //was commented out
- if(create == "Nothing")
- usr << "You created nothing."
- return
- else
- usr << "You created \an [create]."
- new create:type(usr.loc)
- destroy(var/T as area|turf|obj|mob in oview()) //view() for self and everything, oview() for everything else besides you
- set category = "GM verbs"
- set desc = "Destroy something."
- missile(/obj/trailexplosion, usr, T)
- usr << "You destroyed [T]."
- sleep(10)
- T:overlays += image('explosion.dmi') //look for a better explosion icon
- spawn(10)
- del T
- /*
- amaze_health() //this verb isn't needed, it's only for debugging purposes. Will be deleted.
- set desc = "Amaze your max health."
- set category = "GM verbs"
- amazing_health:
- var/amaze_health = input(usr,"Your health?","Amaze Health",usr.maxHealth) as num
- if(amaze_health <= 0)
- usr << "Your health can't be a negative integer."
- goto amazing_health
- else
- amaze_health = round(amaze_health)
- usr.maxHealth = amaze_health
- usr << "You set your health to [amaze_health]."
- return
- */
- obj
- trailexplosion
- icon = 'trailtoE.dmi'
- explosion
- icon = 'explosion.dmi'
- var/objects[0]
- world/New()
- var/M
- for(M in typesof(/obj, /mob/npc, /area))
- objects += new M
- objects += "Nothing"
Advertisement
Add Comment
Please, Sign In to add comment