PDA

View Full Version : Mana



StrayRogue
08-25-2004, 01:20 PM
Any easier way of having a script check for mana other than having a match for every single mana point?

Jonty
08-25-2004, 01:36 PM
mana:
match noMana You don't have that many points to transfer!
match cast I could not find what you were referring to.
match injured You are in no condition to be performing this ritual!
put send %c dkjfjgshkfgds
matchWait

StrayRogue
08-25-2004, 01:38 PM
Sorry, I don't understand how that works. Basically, I'm wanting this script to continue hunting if he has X amount of mana remaining, or go rest if he has only Y amount reaming.

Jonty
08-25-2004, 01:49 PM
It's just a mana checking section. Basically it'd work like this:

Your script see's a critter is supposed to cast, say, 906. The script will then to to teh section I posted and try to send 6 mana to "dkjfjgshkfgds". The messaging determines if the script will cast the spell or not.

StrayRogue
08-25-2004, 01:50 PM
Ah I see. Thanks a bunch. Seems quite simple now I think about it, heh.

Insodus
11-01-2004, 09:52 PM
not with the SF/Wizard language, but the send method is really nice. good one.

[Edited on 11-2-2004 by Insodus]