mob/admin/verb
Create()
switch(input(usr,"Choose a category") in list ("Equipment","Resources","Natural Resources","Food","Animals","Anvils/Forge/Well","Tools","Extra"))
if("Equipment")
usr.Create_equipment()
if("Resources")
usr.Create_resources()
if("Natural Resources")
usr.Create_natural_resources()
if("Food")
usr.Create_food()
if("Animals")
usr.Create_animals()
if("Anvils/Forge/Well")
usr.Create_smith()
if("Tools")
usr.Create_tool()
if("Extra")
usr.Create_extra()
mob/proc
Create_equipment(O in typesof(/obj/equipment)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_resources(O in typesof(/obj/b/groupable/resources)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_natural_resources(O in typesof(/obj/resources/naturalresources/)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_food(O in typesof(/obj/food&&/obj/Fish/Fish_)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_animals(O in typesof(/obj/animals)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_smith(O in typesof(/obj/b/smithing)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_tool(O in typesof(/obj/b/tool&&/obj/Fish/Fishingpole)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
Create_extra(O in typesof(/obj/addons&&/obj/Barricade)){set category = "GM";
set desc="Create an Object, Mob, or Turf.";
if(!O)return;var/obj/T = new O(usr.loc);
if(ispath(T,/obj/))
T.owner=usr
if(T.wall||T.floor)
T.saveable=1
world.log<<"<font color=#607B8B>[usr] created a [T:name].";
view() << "Using their Godly powers, [usr] summons a [T:name] appeared."}
////////////////////////////////END OF CREATE VERB//////////////////////////////////////////////////////////////
Problem description:
When I choose an option it doesn't seem to launch the proc!!
Basically you're calling:
Your proc says:
Create_equipment(O in typesof(/obj/equipment))
What you should have is something like this: