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


Joined: 25 Apr 2003
Posts: 5
Location: USA

PostPosted: Fri Apr 25, 2003 9:40 am   

Trying to use eval... unsucessful.
 
I am not even sure if I should be using eval... but here is what I want...

I have mobs in a list, and I want to lets say kill the first one... so I tried...

#EVAL kill %list(@moblist, 1)

Didn't work, i also tried...

kill %eval(%list(@moblist, 1)

I am probably going about it all the wrong way... Any help would be greatly appreciated... thanks.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Apr 25, 2003 11:01 am   
 
You dont even need %eval of #EVAL there. What you do need is to use the correcy function to get the item from the list.

Use:
kill %item(moblist,1)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Apr 25, 2003 4:17 pm   
 
In case you had difficulty understanding Vijilante's point:

There is no %list() function. It's %item().

LightBulb
Advanced Member
Reply with quote
WinterDragon
Newbie


Joined: 25 Apr 2003
Posts: 5
Location: USA

PostPosted: Fri Apr 25, 2003 6:11 pm   
 
Thanks, got it to work with your help, didn't do it exactly like that, but that set me on the right track, thanks again :)
Reply with quote
WinterDragon
Newbie


Joined: 25 Apr 2003
Posts: 5
Location: USA

PostPosted: Fri Apr 25, 2003 7:02 pm   
 
lol lightbulb, I realized my stupidity after a few moments... I felt really stupid. *sniffs sadly*
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Apr 25, 2003 10:33 pm   
 
Wow, lot of typos in my post this morning. Guess that is what happens when I try to answer questions while drinking my first cup of coffee. Glad you were able to read it.
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