Help - Search - Members - Calendar
Full Version: Need Help With Rebounding
Achaea's Forums > Off-Topic > Tech Support > Curing Systems and Scripts
Demfrax
So I have triggers to track shielding and rebounding, but when trying to use #if commands in my dsl alias, it does not want to work

I am trying to set it up sort of like:

if '<target has shield> and <target has rebounding> <raze>' but if '<target does not have shield> and <target has rebounding> <raze>' but if '<target has shield> and <target does not have rebounding> <raze>' but if '<target does not have shield> and <target does not have rebounding> then <dsl>'

I have tried to play around with the multiple #if commands, but I can't seem to understand it. I know #if (statment is true) {do this} and #if (statment is true) { #if (statment is true) {do this}} works but I dont get what I want done above.

Llyth
QUOTE (Demfrax @ Oct 26 2009, 12:43 AM) *
So I have triggers to track shielding and rebounding, but when trying to use #if commands in my dsl alias, it does not want to work

I am trying to set it up sort of like:

if '<target has shield> and <target has rebounding> <raze>' but if '<target does not have shield> and <target has rebounding> <raze>' but if '<target has shield> and <target does not have rebounding> <raze>' but if '<target does not have shield> and <target does not have rebounding> then <dsl>'

I have tried to play around with the multiple #if commands, but I can't seem to understand it. I know #if (statment is true) {do this} and #if (statment is true) { #if (statment is true) {do this}} works but I dont get what I want done above.



#elseif is your friend. Post what you have for sufficient help.
Jaybles
#if target_rebounding = 1 or target_shield = 1 {
rsl target_enemy
} else {
dsl target_enemy
}

Thats assuming you have all the tracking triggers and 1 is on, 0 is off.
Demfrax
it was something to the extent of


QUOTE
#if (@target_shield = 1) {#if (@reb_defence = 1) {rsl @target} {rsl @target}} {#if (@reb_defence = 1) {rsl} {dsl @target}}
Sena
#IF (@Target_Shield=1 OR @Reb_Defence=1) {rsl @Target} {dsl @Target}
Demfrax
QUOTE (Sena @ Oct 26 2009, 09:20 AM) *
#IF (@Target_Shield=1 OR @Reb_Defence=1) {rsl @Target} {dsl @Target}



I was just actually reading the zmud forums and saw the above and was gonna ask if it was good to use! Haha, thanks again Sena wub.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.