Welcome to the Builder Academy

Question New Trigger Requests

  • Silvaria
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Writer, Builder, Artist, Newbie!Programmer
More
31 Mar 2013 04:16 #1756 by Silvaria
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 :)

Began building in July, 2012.

Began learning C in July, 2013.

Downloaded ROM and TBAmud in August, 2013.

Conversion nearly complete.

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

More
31 Mar 2013 14:32 #1757 by Rumble
Replied by Rumble on topic New Trigger Requests
Both are possible with trigedit. If no one else tackles them I should be able to get to them in the next few days.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

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

More
01 Apr 2013 12:57 #1758 by Rumble
Replied by Rumble on topic New Trigger Requests
Your first trigger looks good. Though I'd have to test to make sure a whisper works with ACT... it should.

The 2nd could be done numerous ways. Below is my untested version:
Code:
Trigger Intended Assignment: Rooms Trigger Type: Enter , Numeric Arg: 100, Arg list: None Commands: Wait 3 sec If %actor.room.vnum% != <vnum> %load% mob <vnum> %echo% <text> wait 300 sec %purge% <mob unique alias> end

For both make sure to create a unique alias. Otherwise you might purge a player named nymph etc. I usually recommend picking an alias and adding your zone number at the end. Like Nymph_135. Let me know if you have any problems and I can create the trigs on TBA and test them more thoroughly.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
The following user(s) said Thank You: Silvaria

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

  • Silvaria
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Writer, Builder, Artist, Newbie!Programmer
More
01 Apr 2013 14:19 #1759 by Silvaria
Replied by Silvaria on topic New Trigger Requests
Wow, okay. That simplifies it immensely! I was wondering how I'd be able to mask the casting of invis, but not even loading the mob until it is needed makes more sense.

Thank you so much! I will definitely test it once I make my shopkeeper!

Began building in July, 2012.

Began learning C in July, 2013.

Downloaded ROM and TBAmud in August, 2013.

Conversion nearly complete.

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

Time to create page: 0.170 seconds