Customized wear/remove message

  • Nero
  • Nero's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 2 weeks ago #8654 by Nero
Customized wear/remove message was created 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:
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
1 year 2 weeks ago #8655 by Rumble
Replied by Rumble on topic Customized wear/remove message
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
This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Nero
  • Nero's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 2 weeks ago #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
1 year 2 weeks ago #8657 by Rumble
Replied by Rumble on topic Customized wear/remove message
Every if should have an end. Using /fi should warn you if you miss one.

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Nero
  • Nero's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 2 weeks ago #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.093 seconds