Register forum user name Search FAQ

Gammon Forum

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 ➜ General ➜ varible

varible

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zendu   (66 posts)  Bio
Date Fri 06 Feb 2004 07:01 AM (UTC)
Message
quick question is there a command for adding to a varible, and reseting a varible


such as "you pick up a black rat"
rat +1
goldfromrats +40

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Fri 06 Feb 2004 07:58 AM (UTC)
Message
to add to variables, you will use GetVariable (its a MC inbuilt script function) and SetVariable to first get the contents, and then set them (after youve done your math).

Conventions differ between the scripting language youre using, so youll have to look and see for yourself.

To Reset a variable, I assume you mean back to 0, or whatever. Youll just use a straight SetVariable to set the value.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


11,338 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.