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
➜ Making, basicly a calculator
Making, basicly a calculator
|
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 14 Dec 2001 03:44 AM (UTC) |
Message
| First, I Cannot figure this out...out...
I want to use an alias... like
Calcpl *
And it executes a script that...
First, Finds 5% of the WildCard.
Second, Multiplys the wildcard by 2.
Third, Adds 50% of the WildCard to the WildCard
Gain: (5% of the wildcard)
What you have to power down to: (Adds 50% of the wildcard to the wildcard)
When you stop Gaining: (The product of the wildcards multiplied by 2)
And sends all that in a world note
Example:
Calcpl 1000000
Gain: 50000
What you have to power down to: 1250000
When you stop gaining: 2000000
|
-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 Fri 14 Dec 2001 04:31 AM (UTC) |
Message
| That is pretty straightforward ...
Make the alias call a script, like this:
Sub OnCalc (thename, theoutput, thewildcards)
world.note "Gain: " & thewildcards (1) * 0.05
world.note "What you have to power down to: " & thewildcards (1) * 1.5
world.note "When you stop gaining: " & thewildcards (1) * 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.
10,719 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top