Author |
Message |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Mon Jan 03, 2011 1:54 am Subject: Affected By _ checker & caster |
Simply doing #ADDKEY with the new value will replace the existing value for the key.
Yes, but it will also add new entries that aren't currently in there, that's the part that I need to stop... a w ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sun Jan 02, 2011 10:13 pm Subject: Affected By _ checker & caster |
Ok, so I have read and read and read... and read some more... Here's what I got, it works great for adding a 0 if the spell isn't on and 1 if it is...
#loopdb @spells {#if (%trim(%key) = %trim(%1)) ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sun Jan 02, 2011 1:11 am Subject: Affected By _ checker & caster |
To exclude trying to cast spells, that I can't cast, on myself, I tried this bit of code in the trigger...
#if (%trim(%1) != loopdb %trim(@dontcastspells)) {
#addkey spells %trim(%1) 1
}
I add ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sun Jan 02, 2011 12:37 am Subject: Affected By _ checker & caster |
Ok, adding the %trim fixed the whole spacing issue, the only thing that I'm trying to deal with now, is how to make the script keep running until all of the spells are cast, because sometimes I fail a ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sat Jan 01, 2011 11:51 pm Subject: Affected By _ checker & caster |
Its going to have to be the following line that changes... I'm going to have to figure out how to trim off the spaces from the end of the spell name before I cast them in order for this to work... bec ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sat Jan 01, 2011 11:11 pm Subject: Affected By _ checker & caster |
This is a crude example that should give you a starting point.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<class name="SpellupScript" copy= ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sat Jan 01, 2011 6:23 pm Subject: Affected By _ checker & caster |
So I've tried more variations of trying to use the %match than I can even count... Here's some of my latest...
This one always sends a false positive...
#IF (%match("Affected: bless","Affected ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sat Jan 01, 2011 5:33 pm Subject: Affected By _ checker & caster |
This is getting very confusing, there has got to be a way to make this work and I have a feeling that I'm getting way off track...
All I want to do is check my Affected By spells, then recast the ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Sat Jan 01, 2011 1:05 am Subject: Affected By _ checker & caster |
What is this variable "a"? |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Fri Dec 31, 2010 8:53 pm Subject: Affected By _ checker & caster |
I guess I was assuming that the IF statement had a built in CONTAINS for pattern matching, thus giving a true or false... because that is really what I am trying to do, is check a line to see if it co ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Fri Dec 31, 2010 7:38 pm Subject: Affected By _ checker & caster |
Ok, so I read what you said and certainly see how I was not properly assigning variables and I think that I have that understood and properly syntaxed... the problem I'm having now is pattern recognit ... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Fri Dec 31, 2010 7:12 pm Subject: Affected By _ checker & caster |
Thank you, will read the help files and report back my success and/or failure, post trial and error... |
Topic: Affected By _ checker & caster |
webwired
Replies: 23
Views: 21759
|
Forum: CMUD General Discussion Posted: Fri Dec 31, 2010 5:54 pm Subject: Affected By _ checker & caster |
Hi everyone,... I've spent the last couple of days pouring through posts trying to find a workable solution to what I am trying to do, but as of yet, am unable...
What I want to do is check my "Aff ... |
Topic: Realms of Despair roller / reroller |
webwired
Replies: 4
Views: 7566
|
Forum: CMUD General Discussion Posted: Thu Dec 30, 2010 5:48 pm Subject: Realms of Despair roller / reroller |
Sorry so late on response... Thanks, it worked great, much appreciated... |
Topic: Realms of Despair roller / reroller |
webwired
Replies: 4
Views: 7566
|
Forum: CMUD General Discussion Posted: Wed Dec 22, 2010 8:54 pm Subject: Realms of Despair roller / reroller |
I want it to always output those three commands... but I can't figure out the correct syntax... everytime I try to put those in, it breaks the trigger... |
Topic: Realms of Despair roller / reroller |
webwired
Replies: 4
Views: 7566
|
Forum: CMUD General Discussion Posted: Wed Dec 22, 2010 8:09 pm Subject: Realms of Despair roller / reroller |
Hi everyone...
So I found this code in the zmud forum and sure enough it works for cmud as well...
#TRIGGER "reroller" {^Strength %s (%d)} {#NOOP %t1}
#COND {^Dexterity %s (%d)} {#NOOP %t2} {wi ... |
Topic: Healer Trigger |
webwired
Replies: 2
Views: 4075
|
Forum: CMUD General Discussion Posted: Wed Dec 22, 2010 7:54 pm Subject: Healer Trigger |
Hi everyone... I was wondering if I could get a little help with my healer trigger...
Pattern:
(%w) says 'heal'
Script Text:
cast 'cure critical' %1
That all works fine and ... |
Topic: Realms of Despair roller / reroller |
webwired
Replies: 7
Views: 15643
|
Forum: zMUD General Discussion Posted: Wed Dec 22, 2010 4:49 pm Subject: Realms of Despair roller / reroller |
Hi everyone...
I was wondering, how can I change this line
#ECHO good enough? Total %eval( %t1+%t2+%t3+%t4+%t5+%t6+%t7)
To initiate these 3 commands instead "pull cord" "save" "quit" ... |
|