|
OR-G Newbie
Joined: 30 Oct 2002 Posts: 4
|
Posted: 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. |
|
|
|
Brujah Wanderer
Joined: 13 Nov 2002 Posts: 88 Location: USA
|
Posted: 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} |
|
|
|
OR-G Newbie
Joined: 30 Oct 2002 Posts: 4
|
Posted: Wed Sep 17, 2003 11:03 pm |
cool thanks, that looks like it should work out =D
|
|
|
|
|
|