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
➜ Suggestions
➜ Multiple names of same variable
|
Multiple names of same variable
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Lisev
Poland (8 posts) Bio
|
| Date
| Tue 05 Jul 2005 08:29 AM (UTC) |
| Message
| It would be nice if I could set multiple names that would refer to the same variable value.
For example:
i create variable with names herb, potato, onion.
world.createvariable "herb|potato|onion"
then, if I:
setvariable "herb", "big herb"
setvariable "potato", "big potato"
and
getvariable "onion" would return "big potato"
Reason for this is some output from the mud can have a few different names, and it would be much faster to refer to proper mushclient variables.
Right now I could do it with:
setvariable "potato", "herb"
world.getvariable(world.getvariable("potato")) to access variable named "herb"
but it is somehow ugly looking code ;) | | 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.
8,021 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top