Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Genoc
Newbie


Joined: 11 Aug 2005
Posts: 1

PostPosted: Thu Aug 11, 2005 4:28 am   

A spellcaster, need help
 
Patterns:
Alucard tells the group 'sanc'
Alucard tells you 'fly'
Jenzo chats 'armor'

These are just some examples of what I need a fully variable pattern to be set from. This is where it gets complex and i got completely lost.
What I need this trigger to do is...:
1) Let me set a primary tank allowed to use ALL spells **I manually set tank
2) Let group members access a set of secondary spells (This is to just prevent abuse on mana heavy spells only the tank needs to tell to cast)
3) I also manually need to be able to set the channel

Ok... what i've got so far for the trigger action...:

#IF (^@tank @varchannel @spelltocast'=~ "^@tank @varchannel @spelltocast'") {@spelltocast @tank}

To be honest... by this point i'm completely lost as on how to continue, its the first thing i've ever tried to write. I would like to be told whats wrong with this, but if there is an easier way to do this PLEASE put it up ^_^
I appredciate any hints or tips you might have.
Thanks!
(Side question)
If i set the pattern as: %1 @varchannel '%2' It doesn't recodnize the variable as what it's filled with, it interpets it exactly as it looks. So when seeing: Jaren tells the group 'armor'
It's looking for @variable instead of 'tells the group', what its filled with
If that made no sense to you whatsoever, just ignore it ^.^ I couldn't word it right.
Thanks!(x2)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Aug 11, 2005 8:45 am   
 
I would use a fixed channel, let them ask the right way if they want spells cast.

#VARIABLE SpellList {sanc|armor|fly}
#VARIABLE SpellSubset {armor|fly}
#TRIGGER {^({@Group}) ({@VarChannel}) '({@SpellList})'} {#IF ("%1"!=@Tank) {#IF (%ismember("%3",@SpellSubset)) {cast '%3' %1} {tell %1 Sorry that spell is tank only.}} {cast '%3' %1}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net