if(usr.AllianceName==null)
usr.AllianceName=input("What is your Alliance Called?","") as text
usr.AllianceLeader = usr
usr.AllianceVotes += usr
usr.AllianceVoting = usr
usr.AllianceSize++
usr.AllianceMembers += usr
else
winset(usr,"AllianceWindow","is-visible=true")
winset(usr,"AllianceWindow.AllianceName","text=\"[usr.AllianceName]\"")
winset(usr,"AlliacneWindow.AllianceList","cells=3x[usr.AllianceMaxSize+1]")
usr<<output("Member","AlliacneWindow.AllianceList:1,1")
usr<<output("Leader","AlliacneWindow.AllianceList:2,1")
usr<<output("Voting For","AlliacneWindow.AllianceList:3,1")
var/mob/P
var/cellplus=2
for(P in AllianceMembers)
usr<<output("[P:name]","AllianceList:1,[cellplus]")
usr<<output("[P:AllianceVoting]","AllianceList:3,[cellplus]")
if(P == AllianceLeader)
usr<<output("Leader","AllianceList:2,[cellplus]")
else
usr<<output(" ","AllianceList:2,[cellplus]")
cellplus ++
Problem description:
I run and i load it up, giving myself a name ofr the alliance then when i load the verb again it doesn't show that i am a member on the grid. like it just have a blank grid. but the name of the Alliance shows up on the label
Just to let you know, the safest way to set the name in that label will either be with output() or by using url_encode() on the name (in case it contains characters that could confuse the skin parser).
Lummox JR