Hi to all again. Now i'm trying to get things more confusion :).
Starting from this MUD output:
Sievel Nec
Berleg Ran
Nyslion Thi
Reorx Bla
Right now there are only 4 players, but it could be more or less. What i want to do is:
- Create a table wich collects this information;
- With that table, i need to assign a command that has if's on it. For example:
if class = Nec then
Send("give pill Sievel")
else
return
end -- if
These if's i'm gonna make one if for every class, so i can give a diferent item to the player, depending on the class.
My question, is how to save a table with that info, and use the values on the table, so i can make those if's.
I know this might be confusing, but please, try to help me and make questions. I really want to get into the next level of this programming stuff ;).
Thank you.
Starting from this MUD output:
Sievel Nec
Berleg Ran
Nyslion Thi
Reorx Bla
Right now there are only 4 players, but it could be more or less. What i want to do is:
- Create a table wich collects this information;
- With that table, i need to assign a command that has if's on it. For example:
if class = Nec then
Send("give pill Sievel")
else
return
end -- if
These if's i'm gonna make one if for every class, so i can give a diferent item to the player, depending on the class.
My question, is how to save a table with that info, and use the values on the table, so i can make those if's.
I know this might be confusing, but please, try to help me and make questions. I really want to get into the next level of this programming stuff ;).
Thank you.