[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]  Tips and tricks
. . -> [Subject]  Changin the content of a variable

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

Changin the content of a variable

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


Posted by AquaBrother   Brazil  (18 posts)  [Biography] bio
Date Tue 10 Jan 2012 11:59 AM (UTC)  quote  ]
Message
Hi, is there a way to change the content of a variable?

I mean, lets suppose i have a variable like that:

Variable MOB: "A BIG WOLF"

Now lets say that i want to make a search in this variable and change the word "big" for "small", is it possible? or even changing the word "big" for %1 to make it work with a trigger.

hehe, if there's any other way to work with it i'd accept any suggestions...

Thx for your time





[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 10 Jan 2012 07:22 PM (UTC)  quote  ]
Message
A Lua variable or a MUSHclient variable? Can you show example code / trigger?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by AquaBrother   Brazil  (18 posts)  [Biography] bio
Date Reply #2 on Tue 10 Jan 2012 10:17 PM (UTC)  quote  ]
Message
Nevermind Nick, thx for your time, i just had found the string.gsub i needed, hehe, thank you anyway...

Peace!
[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.


904 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]