So I'm rather new to a lot of aspects of building. Therefore, please do not hesitate to point me towards any obvious places of assistance that are already present within the TBA Mud and/or other documentation.
I am quite interested in two specific triggers, and I was hoping to get some feedback or advice for writing them.
The first is a guard mobile who stands in front of a locked door. The door can only be unlocked with a key that this mob spawns when she is whispered something. For example:
Whisper Iryli 'The Cycle balances all life and death.'
Iryli creates key
Iryli gives key to player character (%actor%?)
Iryli says 'Of course. Good day to you, (character name).'
Iryli bows.
Is this possible? Would it be something to the effect of:
Trigger Type: Act , Numeric Arg: 0, Arg list: The Cycle balances all life and death.
%load% obj (key)
%give% (key) %actor%
say Of course. Good day to you, %actor.name%.
bow %actor%
Another trigger I am interested in implementing is one that allows a shopkeeper to stay invis for about 3 seconds when a person enters the room she is in. Example:
(Player) enters empty room.
3 seconds pass
If (player) is still present:
(Shopkeeper) goes visible, but the text that is displayed is "(Shopkeeper) steps out from within a tree." She's a nymph, you see...
(Shopkeeper) giggles and waves at (player).
(Shopkeeper) says You look famished! Have a look at my fruit!
Invis after 5 minutes
If (player) leaves the room before the 3 seconds have passed, no action is taken.
Please let me know if this is possible! Thank you so much for your help