Making, basicly a calculator

Posted by Jcet on Fri 14 Dec 2001 03:44 AM — 2 posts, 13,510 views.

USA #0
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

Australia Forum Administrator #1
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