Welcome to the Builder Academy

Question Question on trigger

More
05 Apr 2026 04:20 #11011 by gbcs
Question on trigger was created by gbcs
In world 28, in one of the rooms there is a piglet. If you kill the piglet and then examine the corpse, it tells you that there are three porkchops and some gold. I am trying to create a trigger so that when someone enters that room and there is no piglet, the trigger loads a piglet. I have the trigger working, however I cannot see how to "load" the porkchops INTO the piglet. If I do a load of a porkchop, then when someone enters the room, it shows the piglet and this message "A side of pork has been cut into a pork chop here". if they kill the piglet and it examine the corpse, it only shows the gold.

Is there a way to "link" the porkchop and the piglet? I want the same result as the initial load and the zone reset has on the piglet.

The zone file has these lines in it:
M 0 2801 1 2806    (the piglet)
G 1 2806 100 -1    (a pork chop)
G 1 2806 100 -1    (a pork chop)
G 1 2806 100 -1    (a pork chop)

Graham

Please Log in or Create an account to join the conversation.

More
07 Apr 2026 16:17 #11015 by WhiskyTest
Replied by WhiskyTest on topic Question on trigger
I am not great with triggers, so there may be a better way to do this. Parnassus usually nails the triggers..
But....

Make a new trigger, eg: 2801 and attach it to the Piglet mob.

Name: 'PorkChop Loader Supreme', VNum: [ 2801], RNum: [ 744]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None
Commands:
%load% obj 2806 %self% inventory
%load% obj 2806 %self% inventory
%load% obj 2806 %self% inventory

Please Log in or Create an account to join the conversation.

More
09 Apr 2026 05:18 #11016 by gbcs
Replied by gbcs on topic Question on trigger
WhiskyTest,

Thanks for the reply. I will try your idea.

Graham

Please Log in or Create an account to join the conversation.

More
12 Apr 2026 19:20 #11017 by gbcs
Replied by gbcs on topic Question on trigger
First, thank you again.

The trigger does work great. However, on the initial load and I suspect on a zone reset, the piglet ends up with 6 pork chops. Not a real issue, as it just means the first player that kills the piglet gets the 6 chops. And I actually have the reset off for that zone.

Graham

Please Log in or Create an account to join the conversation.

More
13 Apr 2026 09:57 #11018 by WhiskyTest
Replied by WhiskyTest on topic Question on trigger
Glad it worked!
You're probably right about the zone reset fattening the piggy too much.

If you zedit that room and delete any commands that load more chops onto the mob that should sort it.

With zone reset turned off it would only ever happen when the MUD boots up (or an imm zresets the zone) but its nice to tidy things up.

Please Log in or Create an account to join the conversation.

Time to create page: 0.213 seconds