I was maing some new verbs for my GMs, and as I worked on rename() it messes up. I dont have any errors or anything, but when you rename a person and type in what u want to rename them, it renemaes them to "T" instead of the actualy text the person typed. I know one other way to accomplish what I want but it involves everything being switched. This means, the user types a namein first and then selects which character to change the name into. Ive supplied both versions of the code. The first is the no-errored, "T" code, and the second is the backwards code that works. Thanks for any help in advance.
mob/GM/verb/Rename()
set category = "Game Options"
var/list/players=list()
for(var/mob/M in world)
players += M
players += "Cancel"
var/mob/A = input("Who's name would you like to change?")in players
input("What would you like to change there name to?",text)
A.name = "[text]"
mob/GM/verb/Rename(t as text)
set category = "Game Options"
var/list/players=list()
for(var/mob/M in world)
players += M
players += "Cancel"
var/mob/A = input("Who's name would you like to change?")in players
if(ismob(A))
A.name = "[t]"
else
..()
ID:261842
![]() Sep 12 2003, 2:19 am
|
|
hmm, lol, once again lummox jr spots the gramatical errors, lol. Well, I think I've got it bugged out, some of the stuff you explained I admit was a little confusing to me, a moderate coder with a minimum vocablulary for a 13 year old, but you did succeed to help none the less. Thanks, and by the way, the grammer didnt really matter as the verb was only for me. But thanks lummox.
|
You didn't have any compiler errors, you mean. Anything that functions incorrectly is still an error.
Problems:
Problems:
Lummox JR