In the following script I am making a guild maker. The set command works but it is overwritten by the next tokenize. When I say '/set something' it says
'set to something'. But when I say '/add JohnGames' it says
'You have been added to Johns Free home system! Your house number is 'JohnGames'. I want it to keep the tokens seperate.
NPC Code:
if(startswith(/Set,#c)){
tokenize #c;
say2 set to #t(1);
}
if(startswith(/add,#c)){
tokenize #c;
addguildmember House #t(1),#t(2);
with (getplayer(#t(2))){
say2 You have been added to#b
Johns Free home system!#b
Your house number is #t(1);
}
}