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
➜ VBscript
➜ Calculate script
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jcet
USA (25 posts) Bio
|
Date
| Fri 19 Apr 2002 07:17 PM (UTC) |
Message
| Ok, I'm trying to make a script that when it reads the line (Already have the trigger) "* tells you 'Calculate *'"
So when someone tells you "Calculate 1600"...
Sub Calculate (TriggerName, TriggerLine, arrWildcard)
world.send "tell " & arrWildcard (1) & " from " & arrWildcard (2) & " you;" (this tells them from %2 you;)
world.send "tell " & arrWildcard (1) & " Gain: " & arrWildcard (2) * 0.05 (gain 60)
world.send "tell " & arrWildcard (1) & " Have to power down to: " & arrWildcard (2) * 0.25 + the arrWildcard (2) (power down to 1500"
world.send "tell " & arrWildcard (1) & " Stop gaining at: " & arrWildcard (2) * 2 (Stop gaining at:2400)
end sub
see what im getting at? or do i need to explain it to you more?(it confuses me) |
-Jcet
See no good, hear no good, be no good, kill all good! | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 20 Apr 2002 01:16 AM (UTC) |
Message
| I don't see what the problem is. It works, pretty-well as you had it ...
Sub Calculate (TriggerName, TriggerLine, arrWildcard)
world.send "tell " & arrWildcard (1) & " from " & arrWildcard (2) & " you:"
world.send "tell " & arrWildcard (1) & " Gain: " & arrWildcard (2) * 0.05
world.send "tell " & arrWildcard (1) & " Have to power down to: " & arrWildcard (2) * 0.25 + arrWildcard (2)
world.send "tell " & arrWildcard (1) & " Stop gaining at: " & arrWildcard (2) * 2
end sub
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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,240 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top