Welcome to the Builder Academy

Question Customized wear/remove message

More
25 Apr 2020 23:16 #8654 by Nero
Trying to create customized messages for when a user wears an object
It works for single wears but I have an object that can be worn on different parts of the body and display a different message for each. Is that possible with triggers?

example:
Code:
Name: 'Nethermancer Blood Wear', VNum: [23266], RNum: [ 1703] Trigger Intended Assignment: Objects Trigger Type: Wear , Numeric Arg: 100, Arg list: None Commands: %send% %actor% You shudder with revulsion as you spread the vile black liquid across your arms. %echoaround% %actor% You feel a strange chilling sensation as %actor.name% spreads the blood of the Netherbeast across %actor.hisher% arms.

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

More
26 Apr 2020 23:43 #8655 by Rumble
You should be able to use: if %actor.eq(wield).vnum(123)%
Check out the examples from the help file below for more ideas.

TRIG-EQUIPMENT ACTOR.EQUIPMENT %ACTOR.EQ% %EQ% TRIG_EQUIPMENT

%actor.eq(wield)%
%actor.eq(wield).vnum%
if %actor.eq(wield).vnum(6719)%

Returns the identifier for the object equipped in the subfield position, if
if any. The specified position may be either a position number (0-18) or the
name of the location. HELP POSITIONS. * checks all positions.

Examples: TSTAT 94, 2700

See also: TRIG-INV, %PURGE%, %LOAD%, POSITIONS, CHAR-VAR

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

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

More
28 Apr 2020 23:20 #8656 by Nero
Replied by Nero on topic Customized wear/remove message
Do I need to have any halt/end or something?

I have:

if %actor.eq(body).vnum(23218)%
%send% %actor% You streak bright red ceremonial paint across your body.
%echoaround% %actor% %actor.name% streaks bright red ceremonial paint across %actor.hisher% body.

But when the player tries to wear the paint, nothing is being displayed.

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

More
29 Apr 2020 20:30 #8657 by Rumble
Every if should have an end. Using /fi should warn you if you miss one.

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

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

More
30 Apr 2020 15:36 #8661 by Nero
Replied by Nero on topic Customized wear/remove message
Unfortunately even with the end statement, nothing seems to happen when I wear the item

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

Time to create page: 0.616 seconds