Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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......
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: 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
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Mon Mar 23, 2009 5:05 pm   
 
http://en.wikipedia.org/wiki/Who_Are_You_(song)

????curious?
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Tue Mar 24, 2009 6:40 pm   Scratch The Last Minor Typo...
 
fixed
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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