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
wsccorp
Newbie


Joined: 12 Mar 2007
Posts: 1

PostPosted: Mon Mar 12, 2007 12:24 am   

script help please
 
*editing so it would be less spammy*


in this trigger-
#TRIGGER {^{( )|~(%s(%d)~) |~((%d)~) |~((%d)~)}(*) {~(%d/*~(%d|~(}} {this_inv_item = {%replace(%replace(%trim(%remove((B),%remove((M),%remove((G),%remove((H),%remove((I),%literal(%4)))))))," ","|"),")(",")|(")};this_item_amount = %concat(%1,%2,%3);#IF (@this_item_amount = "") {this_item_amount = 1};#IF %ismember("K",@this_inv_item) {} {#IF (@sell_list = "nothing") {sell_list = ""};#ADDITEM sell_list (@this_item_amount|@this_inv_item);sellable_items = yes}}

it says there is a problem unmatched braces. and it is pointing to the

TRIGGER {^{( )|~(%s(%d)~)
...............................^ here

thank you in advance for the help
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Mon Mar 12, 2007 4:51 am   
 
Here is your issue. This is right from the help files.

{val1|val2|val3|...} match any of the specified strings can not use other wildcard inside this

Note that in Zmud this Trigger still might have worked if you ticked the option use wildcards within {} in preferences. This option does NOT exist within Cmud. Or if it does I was unable to find it. Frankly I keep forgetting that it exists in Zmud anyway.

Note to Zugg

I understand if you don't want to port this option over to Cmud, it does need to go into the changes from Zmud articles provided I am correct and that it isn't already in Cmud.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
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