|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sat Feb 28, 2009 12:45 am
Issue With A Trigger Variable System.... |
Here is My Current Script...
Code: |
#CLASS {TEST2}
#VAR MobTarget {} {}
#VAR MOB1 {mist} {mist}
#VAR MOB2 {assassin} {assassin}
#VAR MOB3 {dust} {dust}
#VAR MOB4 {gust} {gust}
#VAR MOB5 {shade} {shade}
#VAR MOB6 {newbie} {newbie}
#TRIGGER {They are not here.} {
#var MobTarget @mob1
#trigger {They are not here.} {#var mobtarget @mob2}
#trigger {They are not here.} {#var mobtarget @mob3}
#trigger {They are not here.} {#var mobtarget @mob4}
#trigger {They are not here.} {#var mobtarget @mob5}
#trigger {They are not here.} {#var mobtarget @mob6}
#trigger %if {They are not here.} {#reset TEST2} <------- NOTE This Is The Part Iam Not Sure About.... This Would Be Where The Reseter Would Be....
}
#STAT {Target : @target MobTarget: @mobtarget}
#CLASS 0
|
I was just wanting to make something rotate thru my target list when ever it says They are not here and then reset at the begining of the list......
If you could please help would be apprciated
With explaination Too Please....
I dunno was hoping maybe someone could help me if this is all wrong, which it prolly is..... dunno
Thanks
DV |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sat Feb 28, 2009 3:56 am |
Just To add If it would be easier to just do something like
#var mobtarget %if {They are not here.} {%random(mob1, Mob2, Mob3)} {NONE}
or something like that I could deal with random...... |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Mon Mar 02, 2009 1:49 am |
You don't need all that clunk, nor does it never need reset if you want it randomized. Enjoy.
Randomized Version
Code: |
#CLASS {MobTargs}
#VAR moblist {mist|assassin|dust|gust|shade|newbie}
#TRIGGER {They are not here.} {#VAR mobtarget %item(@moblist, %random(1,%numitems(@moblist)))}
#CLASS 0 |
NonRandomized Version
Code: |
#CLASS {MobTargs}
#VAR moblist {mist|assassin|dust|gust|shade|newbie}
#VAR position {1}
#TRIGGER {They are not here.} {#ADD position 1;#IF (@position > %numitems(@moblist) {#VAR position {1}};#VAR mobtarget %item(@moblist, @position)}
#CLASS 0 |
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sun Mar 22, 2009 10:28 pm Bleh |
Ive added that in, but it does not seem to be catching any typos or what not?
its not inputing it into my c portal @mobtarget
???? reason?
TY |
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
|
|
|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Tue Mar 24, 2009 6:40 pm Scratch The Last Minor Typo... |
fixed
|
|
|
|
|
|