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


Joined: 31 Mar 2005
Posts: 9

PostPosted: Thu Mar 31, 2005 3:51 am   

Problems expanding vars in a trigger creation line
 
Hi all,
I'm hoping someone knows how to do this. Its really simple and I've tried a lot of things with no luck. It seems creating a trigger within an alias won't expand vars. I've tried [],{},(), '',"",%string(),%expand() etc with no luck.

Here is the alias:

#ALIAS al_add {
#VARIABLE descript %left( %-1, %pos( xxx, %-1)-2);
#VARIABLE keyword %right( %-1, %pos( xxx, %-1)+3);
#ECHO Descript: @descript;
#ECHO Keyword: @keyword;
#TRIGGER {@descript} {@Item_List = %push( @keyword, @Item_List)} {auto_loot|Items}} "Utility Aliases"

Here's the resulting trigger:
#TRIGGER {@descript} {@Item_List = %push( @keyword, @Item_List)} "auto_loot|Items"

Any ideas to get those vars to expand?
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Thu Mar 31, 2005 5:02 am   
 
try <>'s around them? worked for me before when i played a godwars mud and was making transporters and alias'

#BUTTON 3 {Transporter} {
#PR transtype "Transporter to where?"
#PR nowwhat "What do you do once there?"
#PR whatfor "What is the item name?"
c 'continual light'
get ball
claim light
quest light transporter
quest light name @transtype
c spellproof @transtype
c resistance @transtype
put @transtype bag
#AL @transtype {#T- Quests;get <@transtype> bag;wear <@transtype>;activate <@transtype>;wear torch;put <@transtype> bag;<@nowwhat>;complete card <@whatfor>}
#save
} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}

Used Pretty Print
Syntax Colourizer

The #PR would make the variable btw
_________________
Reply with quote
Ayclaes
Newbie


Joined: 31 Mar 2005
Posts: 9

PostPosted: Thu Mar 31, 2005 11:50 am   
 
Syntax error, but it works. Score!

Thanks DeathDealer.
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Thu Mar 31, 2005 1:02 pm   
 
"Syntax error" ?
ah, ya mean how zmud reports errors where there are none?
weird...i don't have that in mine...aw well. wtf, it works :-)
_________________
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