|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Thu May 15, 2008 5:10 pm
trigger - fired but won't compile |
This used to work in zmud... Not sure why it won't work. =[ Any help is greatly appreciated, as its prolly an easy fix... (What is ![CDATA] mean?)
<trigger priority="430" case="true" newline="false" prompt="true" id="43">
<pattern><![CDATA[^~[H:&%dhit_cur/&%dhit_max] ~[M:&%dman_cur/&%dman_max] ~[S:&%dspi_cur/&%dspi_max] ~[E:&%dend_cur/&%dend_max]]]></pattern>
<value>#if (@bkill) {#if (@bdetect) {#var bdetect 0;act}</value>
</trigger> |
|
|
|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Thu May 15, 2008 5:16 pm |
Compiled Code
Error compiling script:
illegal token:
Compiled Pattern
0000 STR '^~[H:&%dhit_cur/&%dhit_max] ~[M:&%dman_cur/&%dman_max] ~[S:&%dspi_cur/&%dspi_max] ~[E:&%dend_cur/&%dend_max]' |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Thu May 15, 2008 5:22 pm |
You're missing a }
change value to
Code: |
#if (@bkill) {#if (@bdetect) {#var bdetect 0;act} } |
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Thu May 15, 2008 5:27 pm |
oh... my... god.... =[
\wrist
hahahahah! ok... so what does the !CDATA mean? just outta curiosity now... lol |
|
|
|
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Thu May 15, 2008 5:43 pm |
It is an XML tag (opening <![CDATA[ and closing ]]> ). All between these two tags is considered as text, and special XML symbols are ignored.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu May 15, 2008 9:16 pm |
CMUD automatically puts <![CDATA[ ]]> around the relevant part of the script if using that tag would be shorter than using the proper entities for the special characters, like & for &. Doesn't take many of them to make it shorter, as you can imagine.
|
|
|
|
|
|