Calculate script

Posted by Jcet on Fri 19 Apr 2002 07:17 PM — 2 posts, 13,921 views.

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