Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ Triggers, Variables and tables
Triggers, Variables and tables
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Halig
Portugal (123 posts) Bio
|
Date
| Fri 27 Feb 2015 01:04 PM (UTC) |
Message
| 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. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
6,714 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top