#1
|
|||
|
|||
variables?
I want to be able to do something like this;
#act {You get < salvage >}{#outp {white} SALVAGE};#var salvage 1} #act {You get < salvage >}{#outp {white} SALVAGE};{$if salvage=1}{#var salvage 2}} #act {You get < salvage >}{#outp {white} SALVAGE};{$if salvage=2}{#var salvage 3} #act {$if salvage=3}{recall} Anyone know how I'd go about do that? Making it so every 3x salvage it recalls |
#2
|
||||
|
||||
#act {You get < salvage >}{#outp {white} SALVAGE};{$if salvage=1&&check=false}{#var salvage 2;#var check true};{$if salvage=2&&check=false}{#var salvage 3;#var check true};{$if salvage=3&&check=false}{recall;#var salvage 1;#var check true};#var check false}
You'd want all of em to be in the same trigger. as having the same trigger capture, the latest trigger would overwrite the previous. This way it does a "sort of" if else method. Unless there's an if else method than awesome just use that. ________ Mercedes-benz clc-class history Last edited by grimm; 03-10-2011 at 02:51 AM. |
#3
|
|||
|
|||
Quote:
#act {You get < salvage >}{#outp {white} SALVAGE};#math {salvage} {$salvage+1};checksalvage}} #alias {checksalvage} {#if {$salvage=3} {recall};#var salvage {0}} alternatively you could create another action to reset the salvage var to 0 on an an action line from giving salvage to a gnome |
#4
|
|||
|
|||
#var Dragon Stance/Savage Talons
I want to set up a trigger better than just:
#act {You are no longer affected by: dragon stance.}{dragon stance} I'd like it to be something like. #act {You are no longer affected by: dragon stance.}{aff} if the affect is strength + savage talons, then #alias {kill}{vicious fist} and if the affect is just strength, then #unalias kill if there are no affects at all giving strength or savage talons then I'd like it to reperform dragon stance. I think I understand the #var {savageTalon}{1} #if {$savageTalon == 1}{#alias kill vicious} I just have no idea how to put it all together. |
#5
|
|||
|
|||
what's wrong with these strings?
#var savagetalons {0}
#act {You are no longer affected by: dragon}{#outp {white}SAVAGETALONS}; #math {savagetalons} {$savagetalons+1};checkdragon;checksavage}} #alias {checkdragon} {#if {$savagetalons=2} {dragon stance};#var savagetalons {0};#alias {kill}{vicious}} #alias {checksavage} {#if {$savagetalons=1} {#unalias kill}} |
#6
|
|||
|
|||
nevermind!
I actually figured it out.
#var {savagetalons} {0} #act {You are no longer affected by: dragon}{#math {savagetalons}{$savagetalons+1};checkdragon;checks avage} #alias {checkdragon}{#if {$savagetalons=2}{dragon stance;#var {savagetalons}{0};#alias {kill}{vicious}}} #alias {checksavage}{#if {$savagetalons=1}{#unalias kill}} #act {You lose your focus.}{in;in;in;in;in;in;in;in;in;in;in;in;in;dra gon stance} |
|
|