|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Tue Jun 07, 2016 4:38 pm |
"a metal armor|a metal sword"
maybe |
|
_________________ Discord: Shalimarwildcat |
|
|
|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
MyMiasma Wanderer
Joined: 26 Oct 2012 Posts: 56
|
Posted: 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. |
|
|
|
|
|