|
Changin the content of a variable
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
AquaBrother
Brazil (16 posts) 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
| top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) 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 | top |
|
| Posted by |
AquaBrother
Brazil (16 posts) 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! | 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.
872 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )