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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: 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>
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: 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]'
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Thu May 15, 2008 5:27 pm   
 
oh... my... god.... =[

\wrist

hahahahah! ok... so what does the !CDATA mean? just outta curiosity now... lol
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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 &amp; for &. Doesn't take many of them to make it shorter, as you can imagine.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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