ID:139799
 
Code:
mob/Owner3
verb
Make_Player()
set name = "Make Kage/Leader/Org"
set category = "Ranks"
var/varMakings = list()
for(var/mob/M in world)
if(!M.key) continue
varMakings += M
var/E = input("Who would you like to give Rank to?","Ranks") in varMakings + list("Cancel")
if(E == "Cancel")
return
if(E:client)
if(E != null)
var/list/Make_Player = list()
if(usr.key == "NarutoBleach"||usr.key == "Blaise12"||usr.key == "Supemage"||usr.key == "Captain kioto")
Make_Player += "Kage"
Make_Player += "Akatsuki"
Make_Player += "Organization XIII"
Make_Player += "Captain"
Make_Player += "Vongola"
Make_Player += "Sound"
Make_Player += "Medic"
Make_Player += "Hawk"
Make_Player += "Seven Swordsmen"
if(usr.Kage||usr.key in Makings)
Make_Player += "Genin"
Make_Player += "Chuunin"
Make_Player += "Jounin"
Make_Player += "Hunter-nin"
Make_Player += "Anbu"
Make_Player += "Anbu Captain"
Make_Player += "Sannin"
if(usr.AkatsukiLeader||usr.key in Makings)
Make_Player += "Akatsuki Member"
if(usr.Organization13Leader||usr.key in Makings)
Make_Player += "Organization XIII Member"
Make_Player += "Organization XIII Apperentice"
if(usr.Organization13Member||usr.key in Makings)
Make_Player += "Organization XIII Apperentice"
if(usr.Captain||usr.key in Makings)
Make_Player += "Lieutenant"
if(usr.Lieutenant||usr.key in Makings)
Make_Player += "Squad invite"
if(usr.SevenLeader||usr.key in Makings)
Make_Player += "Seven Swordsmen Member"
var/T = input("What rank do you want to give [E]?","Make Player", text) in Make_Player + list("Cancel")
switch(T)
if("Cancel")
return
if("Kage")
switch(input("What Kage would you like to give?", text) in list ("Leaf","Dark","Cloud","Grass","Rain","Mist","Rock","Sand","Snow","Star","Water","Sound"))
if("Leaf")
if(E:Village == "Leaf")
E <<"You have been made Hokage!"
world<<"[E] is now Hokage!"
E:rank = "Kage"
E:cap = Mcap
E:squads=1
E:Kage = 1
if(E:GM > 1)
return
else
E:GM = 1
E:squad="Hokage"
var/obj/HokageHat/B = new/obj/HokageHat
B.loc = E
var/obj/HokageSuit/C = new/obj/HokageSuit
C.loc = E
E:verbs += typesof(/mob/Kage/verb)
E:verbs += typesof(/mob/Host/verb)
else
usr<<"Their not from the village of Leaf."





mob/NarutoBleach
verb
GiveMakePlayer(var/mob/M in world)
set name = "Give verb to kage"
set category = "Owner"
M.verbs += typesof(/mob/Owner3/verb)


Problem description:

Right here is a verb for make kage/leader/org for an owner.. I made it so w/e ranking you have you get list of w/e like kage you get make Genin and w/e... but when I'm in game, I tried to do it, and game another character the verb, but it don't seem to work...
Is it the codings that wrong?
Is it that this is not a possible coding?
Help please. Thank you.
Coding is wrong.
And is not a plausible code by the looks of things.
In response to Midgetbuster
Bleh.. I don't want to make so many verbs.. it'll just confuse me when I try to find a verb.. :P oh well I guess I have to -.-
In response to NarutoBleach
Try using a typesof to take mass verbs.
In response to Lugia319
or..

http://www.byond.com/members/Jtgibson/forum?id=40#40

pretty usefull

im using it for admins and guilds atm.
In response to Lugia319
I'm just trying to make 1 single verb accessible to everyone who is either a kage, akat leader, GM, Owner, or org leader.. so that I don't have to create like 30 verbs for them...
In response to NarutoBleach
In this case, I think you do, but I'm no expert. Sorry Mate. Of course, if you want everyone of said rank to get this verb, you could do something like universal verbs

mob
proc
Universal
Verb1()
Verb2()

Which you could give to the person you're giving a rank to with typesof.