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
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Mon Jun 06, 2016 10:32 pm   

help with this trigger/alias please
 
Hello. I am hoping to make a trigger for the following lines.

You open your mind and sense the wish of Thor... You see:
A metal armor.

In this case I want to capture "A metal armor." as a variable. But of course sometimes
he will want a different item.

Part 2. I want to make an #if alias for whenever my variable is a metal armor
or a metal sword to sacrifice it, when its not {sacrificedone}.

I thought this would be simpler but i'm having troubles.
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Tue Jun 07, 2016 12:57 am   
 
#TR {You open your mind and sense the wish of Thor... You see:} {}
#COND {*} {wish=%line;#IF (%ismember(@wish, {a metal armor|a metal sword})) {sacrifice @wish} {sacrificedone}} {Within Lines|1}
_________________
Discord: Shalimarwildcat
Reply with quote
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Tue Jun 07, 2016 3:47 pm   
 
For some reason when I copy and paste that it says parsing error unmatched braces...
seems to be equal amount of braces however :(
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Tue Jun 07, 2016 4:38 pm   
 
"a metal armor|a metal sword"
maybe
_________________
Discord: Shalimarwildcat
Reply with quote
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Tue Jun 07, 2016 6:20 pm   
 
Still nothing.

Just for starters I'd like to get the the trigger that what item he wants as a variable
or list of variables to put it on a button, I can work on the IF command later
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Tue Jun 07, 2016 8:46 pm   
 
I'm doing something wrong with the {within lines},
_________________
It is better to die on your feet than to live on your knees.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Tue Jun 07, 2016 10:39 pm   
 
How about this?

#TR {You open your mind and sense the wish of Thor... You see:$(*).$} {wish=%1}
_________________
Discord: Shalimarwildcat
Reply with quote
MyMiasma
Wanderer


Joined: 26 Oct 2012
Posts: 56

PostPosted: Tue Jun 07, 2016 11:00 pm   
 
Thanks that worked :) I'll play with it from there but I might be back.

Thanks again Shalimar, it's usually you who answers my questions,
I really do appreciate it.
_________________
It is better to die on your feet than to live on your knees.
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