Welcome to the Builder Academy

Question Customized Entry/Leave Message?

More
18 Apr 2020 02:36 #8641 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?
Code:
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
22 Apr 2020 15:58 #8649 by Parnassus
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.

More
25 Apr 2020 22:32 #8653 by Nero
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.171 seconds