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
eamonnsoll
Newbie


Joined: 30 May 2020
Posts: 3

PostPosted: Sat May 30, 2020 7:28 pm   

Script Help
 
Good afternoon everyone, I was wondering if there's a way to write a script that will track a mob, kill it and then either track another mob of the same name or switch to a predetermined other mob. I'm looking for a total of 7 different mobs to track and kill. Thank you for any and all help!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Sun May 31, 2020 4:07 am   
 
That is quite possible.
Here is a mock-up:

trackList=this guy|that guy|the other guy
trackNum=1
trackCurrent=%item(@tracklist, @tracknum)

#ALIAS trackNext {#ADD trackNum 1;#IF (@trackNum>%numitems(@tracklist)) {tracknum=1};trackCurrent=%item(@tracklist, @tracknum);track @tarckCurrent}

#TRIGGER {Tracks of {@trackCurrent} lead (%w)} {%1;track @trackCurrent}
#TRIGGER {{@trackCurrent} is right here!} {kill @trackCurrent}
#TRIGGER {You killed {@trackCurrent}} {track @trackCurrent}
#TRIGGER {You can't find the tracks of {@trackCurrent}} {trackNext}
_________________
Discord: Shalimarwildcat
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