Welcome to the Builder Academy

Question trouble with triggers

More
25 Aug 2012 23:06 - 25 Aug 2012 23:07 #742 by bakarus
I made this dgscript to buff the character with stone skin spell if they hold the stone (vnum 2305) and use the command: use stone
its not working and I need some help to find out why :P
Code:
Name: 'test trigger', VNum: [ 2303], RNum: [ 641] Trigger Intended Assignment: Objects Trigger Type: Command , Numeric Arg: 100, Arg list: u Commands: if %cmd.mudcommand% == use && stone /= %arg% if %actor.eq(held).vnum% == 2305 %send% %actor% the striped stone begins to shimmer. %echoaround% %actor% %actor.name%'s form begins to shimmer. dg_cast 'stone skin' %actor% else * If it doesn't match let the command continue. return 0 end end
Last edit: 25 Aug 2012 23:07 by bakarus. Reason: to include full trigger text

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

More
26 Aug 2012 00:19 - 26 Aug 2012 00:20 #743 by Rumble
Replied by Rumble on topic Re: trouble with triggers
You need to fix the numeric arg: 2 for in inventory

TRIGEDIT-OBJ-COMMANDS TRIGEDIT-OBJECT-COMMAND TRIG-OBJ-COMMAND TRIG-OBJ-COMMANDS

Activates when a command is performed near this object.
Command triggers do not work for God and above.

Numeric Arg : a bitfield to indicate where the object must be in order to cause
the trigger to activate.
Bits: 1: In character's worn equipment.
2: In character's carried inventory.
4: In same room with the character.
These bits can be set at once by adding the values.
7= worn, inv, room. 3 = worn, inv. 5 = worn, room.
Argument : A single word which must be typed to activate the trigger. Look at
the examples for how to use multiple word arguments.

If a return 0 is used the character will receive the same message as if the
trigger did not exist, and any other command triggers will be checked.

Variables:
%actor% - the character issuing the command.
%cmd% - the exact command (without arguments) issued.
%arg% - the arguments, if any, following the command.
%self% - the object.

Example: TSTAT 81, 154, 6, 9800, 11859


Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
Last edit: 26 Aug 2012 00:20 by Rumble.

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

Time to create page: 0.159 seconds