obj
SpeedBag
icon = 'weight-objs1.dmi'
icon_state = "speed"
density = 1
verb
SpeedBag()
set name = "Speed-Bag"
set category = "Training"
set src in oview(1)
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel>=20000)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speedhit",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=2
usr.icon_state = ""
usr.maxpowerlevel += 1
usr.exp += 1/5
usr.meditate = 0
usr.levelcheck()
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 3)
usr.move = 1
usr.stamina-=3
usr.icon_state = ""
usr.maxpowerlevel += 5
usr.lvlcheck()
usr.exp+=rand(1,2)
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Punchingbag
icon = 'pbags.dmi'
icon_state = "speed bag 1"
density = 1
verb
Punchingbag()
set name = "Punching Bag"
set category = "Training"
set src in oview(1)
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 1",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=rand(4,6)
usr.icon_state = ""
usr.maxpowerlevel += 25
usr.exp += 1/2
usr.meditate = 0
usr.levelcheck()
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 3)
usr.move = 1
usr.stamina-=rand(5,7)
usr.icon_state = ""
usr.maxpowerlevel += 50
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Punchingbag2
icon = 'pbags.dmi'
icon_state = "speed bag 2"
density = 1
verb
Punchingbag2()
set name = "Punching Bag 2"
set category = "Training"
set src in oview(1)
if(usr.maxpowerlevel <= 499999)
usr << "You are not at 500,000"
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel>=500000)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 2",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=rand(7,10)
usr.icon_state = ""
usr.maxpowerlevel += 75
usr.exp += 1/5
usr.meditate = 0
usr.levelcheck()
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 3)
usr.move = 1
usr.stamina-=rand(6,9)
usr.icon_state = ""
usr.maxpowerlevel += 200
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Punchingbag3
icon = 'pbags.dmi'
icon_state = "speed bag 3"
density = 1
verb
Punchingbag3()
set name = "Punching Bag 3"
set category = "Training"
set src in oview(1)
if(usr.maxpowerlevel <= 4999999)
usr << "You are not at 5,000,000"
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel >= 5000000)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 3",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 2000
usr.exp += 1/5
usr.meditate = 0
usr.levelcheck()
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 3)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 1000
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Punchingbag4
icon = 'pbags.dmi'
icon_state = "speed bag 4"
density = 1
verb
Punchingbag4()
set name = "Punching Bag 4"
set category = "Training"
set src in oview(1)
if(usr.maxpowerlevel <= 49999999)
usr << "You are not at 50 Million Power Level!"
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel >= 50000000)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 4",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 3000
usr.exp += 1/5
usr.meditate = 0
usr.levelcheck()
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 13)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 2500
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Punchingbag5
icon = 'pbags.dmi'
icon_state = "speed bag 5"
density = 1
verb
Punchingbag5()
set name = "Punching Bag 5"
set category = "Training"
set src in oview(1)
if(usr.maxpowerlevel <= 299999999)
usr << "You are not at 300 Million power level!"
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel >= 300000000)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 5",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 5000
usr.exp += 1/5
usr.meditate = 0
usr.levelcheck()
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 3)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 7500
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Punchingbag6
icon = 'pbags.dmi'
icon_state = "speed bag 5"
density = 1
verb
Punchingbag6()
set name = "Punching Bag 6"
set category = "Training"
set src in oview(1)
if(usr.maxpowerlevel <= 499999999)
usr << "You are not at 500 Million power level!"
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel >= 300000000)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 5",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 5000
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
if(usr.random == 3)
usr.move = 1
usr.stamina-=rand(1,5)
usr.icon_state = ""
usr.maxpowerlevel += 7500
usr.meditate = 0
usr.FlightLearn()
usr.KiTechLearn()
usr.AuraTechLearn()
usr.FocusLearn()
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
obj
Strengthbag
icon = 'pbags.dmi'
icon_state = "speed bag 5"
density = 1
verb
AttackMob()
set name = "Strengthbag"
set category = "Training"
set src in oview(1)
if(usr.maxpowerlevel <= 5)
usr << "You are not at 5 power level!"
if(usr.flight == 1)
usr << "Not while flying."
if (usr.resting==1)
usr<<"Not while resting"
if(usr.flight == 0 && usr.resting==0 && usr.maxpowerlevel >= 5)
if(usr.stamina >= 5)
if(usr.dir == 4)
flick("speed hit 5",src)
flick("weight-training-right", usr)
usr.random = rand(1,3)
if(usr.random == 1)
usr << "<b><font size = 4>You feel more skillful in your fighting techinques"
usr.Strength += 1
else
usr.maxpowerlevel += 0
else
usr << "You are too weak to continue!."
Here is my edit coding
Edit(obj/O as obj|mob|turf|area in view())
set category = "Police"
set desc="(target) Edit a target item's variables"
var/variable = input("Which var?","Var") in O.vars
var/default
var/typeof = O.vars[variable]
var/dir
if(variable == "gmlevel")
usr << "The Master GMs have disabled the var GMLEVEL from changing. This is a GM variable."
return
if(isnull(typeof))
usr << "Unable to determine variable type."
else if(isnum(typeof))
usr << "Variable appears to be <b>NUM</b>."
default = "num"
dir = 1
else if(istext(typeof))
usr << "Variable appears to be <b>TEXT</b>."
default = "text"
else if(isloc(typeof))
usr << "Variable appears to be <b>REFERENCE</b>."
default = "reference"
else if(isicon(typeof))
usr << "Variable appears to be <b>ICON</b>."
typeof = "\icon[typeof]"
default = "icon"
else if(istype(typeof,/atom) || istype(typeof,/datum))
usr << "Variable appears to be <b>TYPE</b>."
default = "type"
else if(istype(typeof,/list))
usr << "Variable appears to be <b>LIST</b>."
default = "cancel"
else if(istype(typeof,/client))
usr << "Variable appears to be <b>CLIENT</b>."
default = "cancel"
else
usr << "Variable appears to be <b>FILE</b>."
default = "file"
usr << "Variable contains: [typeof]"
if(dir)
switch(typeof)
if(1)
dir = "NORTH"
if(2)
dir = "SOUTH"
if(4)
dir = "EAST"
if(8)
dir = "WEST"
if(5)
dir = "NORTHEAST"
if(6)
dir = "SOUTHEAST"
if(9)
dir = "NORTHWEST"
if(10)
dir = "SOUTHWEST"
else
dir = null
if(dir)
usr << "If a direction, direction is: [dir]"
var/class = input("What kind of variable?","Variable Type",default) in list("text",
"num","type","reference","icon","file","restore to default","cancel")
switch(class)
if("cancel")
return
if("restore to default")
O.vars[variable] = initial(O.vars[variable])
if("text")
O.vars[variable] = input("Enter new text:","Text",\
O.vars[variable]) as text
if("num")
O.vars[variable] = input("Enter new number:","Num",\
O.vars[variable]) as num
if("type")
O.vars[variable] = input("Enter type:","Type",O.vars[variable]) \
in typesof(/obj,/mob,/area,/turf)
if("reference")
O.vars[variable] = input("Select reference:","Reference",\
O.vars[variable]) as mob|obj|turf|area in world
if("file")
O.vars[variable] = input("Pick file:","File",O.vars[variable]) \
as file
if("icon")
O.vars[variable] = input("Pick icon:","Icon",O.vars[variable]) \
as icon
I get no errors or anything