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
OR-G
Newbie


Joined: 30 Oct 2002
Posts: 4

PostPosted: Wed Sep 17, 2003 10:49 pm   

Collecting certain items after a creature dies?
 
I would like to create a script that'll collect certain items then put them in my basket. I was looking at the within trigger but I wasn't sure if it only does one command. Here's what it'll look like

Something dies!
The corpse of a something holds:
a branch
a coffin
a potion

[123/123hp 123/123m]


I'd want it to keep doing the lines after the corpse holds till it gets to the next prompt. The problem is that if I look at my inventory and it is setup the same way

You are holding:
a coffin
a potion
a branch

[123/123hp 123/123m]

So I could not just trigger off matching items.
Reply with quote
Brujah
Wanderer


Joined: 13 Nov 2002
Posts: 88
Location: USA

PostPosted: Wed Sep 17, 2003 10:59 pm   
 
Try this out

#VAR Lootcorpse 0
#TR {The corpse of a something holds} {#VAR Lootcorpse 1}
#TR {a branch} {%if (@lootcorpse=1) get branch corpse}
#TR {a coffin} {%if (@lootcorpse=1) get coffin corpse}
#TR {a potion} {%if (@lootcorpse=1) get potion corpse}
#TR {You hold} {#VAR Lootcorpse 0}
Reply with quote
OR-G
Newbie


Joined: 30 Oct 2002
Posts: 4

PostPosted: Wed Sep 17, 2003 11:03 pm   
 
cool thanks, that looks like it should work out =D
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