[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  varible

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

varible

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Zendu   (66 posts)  [Biography] bio
Date Fri 06 Feb 2004 07:01 AM (UTC)  quote  ]
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]
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Fri 06 Feb 2004 07:58 AM (UTC)  quote  ]
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.
[Go to top] 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.


1,106 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]