Evangelist Adept
Joined: 10 Oct 2000 Posts: 224 Location: USA
|
Posted: Mon Aug 26, 2002 2:26 am
Gold Counter |
There are two things I am interested in...gold in vault and gold in bank vault. I want a trigger to locate coins, and tally up how much is in each, then echo xxxxx coins in vault...xxxxcoins in bank vault
and then clear itself. Here is output.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
100 gold coins in Vault.
10000 gold coins carried by Arnoff's helper mob.
A pile of coins in A small treasure trove.
100 gold coins in Vault.
1000 gold coins in Bank Vault.
1000 gold coins in Bank Vault.
The treasury in Bank Vault.
1000 gold coins in Vault.
1000 gold coins in Vault.
To capture I had %d gold coins in Vault. and %d coins in Bank Vault.
I am guessing I need to make it add to say vcoins and bvcoins...vault coins and bank vault coins respectevely, and then use something like #SAY There are currently @vcoins coins in The Vault.
My problem is I am not sure how to make it add to the variable and then clear it. Could I have an alias make two blank variable of vcoins and bvoins, then had the locate output add to it?
Evangelist
www.phidar.com |
|