Customized Entry/Leave Message?

  • Nero
  • Nero's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 3 weeks ago #8641 by Nero
Customized Entry/Leave Message? was created by Nero
I would like to create a customized message for when a mob enters/leaves a room.
I created an entry mob trigger and gave the mob sneak to cover up the original enter/leave messages.
That part works fine
But I can't seem to figure out an easy way to do a leave trigger
The leave trigger only seems to fire off for when players or other mobs leave the room and not for the actual mob itself.

How should I solve this?
Name: 'Crow Leave',  VNum: [23238], RNum: [ 1655]
Trigger Intended Assignment: Mobiles
Trigger Type: Leave , Numeric Arg: 100, Arg list: None
Commands:
if !%self.vnum(23216)
return 1
else
%echoaround% %self% %self.name% flaps its wings and disappears to the %direction%.
end

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

More
1 year 3 weeks ago #8649 by Parnassus
Replied by Parnassus on topic Customized Entry/Leave Message?
Have you seen the zoo triggers in Valen's Park? I think the zone number is 560 on the building port. If you've checked it and it doesn't work, please let me know. If you haven't checked it and want to check it, it's best to make sure your triggers are on and to start at 56001 or odd things will happen.

I see that I used room triggers which makes me think that I couldn't get mobile triggers to work for some reason but it was a long time ago so I don't remember.

You can see from the help file that the leave trigger is not for the mob leaving but for whoever the mob SEES leaving:
help trigedit mob leave
TRIGEDIT-MOB-LEAVE TRIG-MOB-LEAVE TRIGEDIT-MOB-EXIT TRIG-MOB-EXIT

Activated when someone leaves the room the mob is in if the mob can see the person.

Numeric Arg : percent chance this trigger will be activated.
Argument : not used.

I think the purpose is to let the mob say goodbye to the person leaving.
The following user(s) said Thank You: Nero

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 #8653 by Nero
Replied by Nero on topic Customized Entry/Leave Message?
Thanks

I resolved this in a roundabout way, the entry works well I gave the mob sneak to cover up the default entry message, the leave trigger I just created a customized leave trigger in code for the specific mob(s).

You are right, the leave trigger is designed for saying goodbye to the person leaving the room.

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

Time to create page: 0.081 seconds