Follow

Login to reply  Page: « < 1 of 1 > »
20 Aug 2010 - 04:232947
Follow
I'm having an issue. I can't get my guard mobs to follow my commander mob upon loading.

Here's what I have.

5000H 100M 82V > tstat 62203
Name: 'Thieves Commander Follow Order', VNum: [62203], RNum: [ 1477]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None
Commands:
wait 2 sec
say Insisto!

AND

Name: 'Guard Follow Commander', VNum: [62204], RNum: [ 1478]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech , Numeric Arg: 100, Arg list: Insisto!
Commands:
follow %actor.name

Mobs don't follow the commander. I've changed if from

follow %actor.name% to
follow %actor% to
follow commander

Nothing seems to work... What am I missing... It has to be something stupid..


20 Aug 2010 - 16:042948
You need to set numeric arg to 0.
Quote:

TRIGEDIT-MOB-SPEECH TRIG-MOB-SPEECH TRIGEDIT-SPEECH TRIG-SPEECH

Activates when matching text is spoken by a character in the same room as the
mobile. This does not work for tells, gossip, etc.

Numeric Arg : 0: argument is a substring that must be found in the speech to cause a
match.
1: argument is a list of words, any of which found in the speech will
activate the trigger.
Argument : a phrase or wordlist to be matched.

Variables:
%actor% - the character whose speech activated the trigger.
%speech% - the entire phrase spoken.
%self% - the mobile.

Example: TSTAT 53, 2776, 63, 153, 1354, 139

See also: TRIGEDIT-ROOM-SPEECH



__________________
Rumble
The Builder Academy
tbamud.com 9091
25 Aug 2010 - 05:452952
See knew it was something stupid like that.


25 Aug 2010 - 16:402953
This doesn't work all of the time...

Example 1 - It works.

5000H 100M 82V AFK > zreset
Reset zone #622: The City Of Thieves.

5000H 100M 82V AFK >
Lieutenant Commander Coldar says, 'Insisto!'
A guard starts to follow Lieutenant Commander Coldar.
A guard starts to follow Lieutenant Commander Coldar.
A guard starts to follow Lieutenant Commander Coldar.

Example 2 - It Works Again

5000H 100M 82V AFK > zreset
Reset zone #612: Cleric City.

5000H 100M 82V AFK >
The High Priest says, 'Insisto!'
A temple guard starts to follow the High Priest.
A temple guard starts to follow the High Priest.
A temple guard starts to follow the High Priest.

Example 3 - Nothing.

Reset zone #611: City of Magis.

5000H 100M 82V AFK >
An old blind mage says, 'Insisto!'


-------------------------------------------------------------------------------------------------------------------------

It's all the same set of trigger. I don't see why it works once place and not another. Unless having another trigger set to the leading mobs throws off the follow, which i don't see why it would...

Here are the triggers.

5000H 100M 82V AFK > tstat 62204
Name: 'Guard Follow Commander', VNum: [62204], RNum: [ 1478]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech , Numeric Arg: 0, Arg list: Insisto!
Commands:
follow %actor.name%
end

5000H 100M 82V AFK > tstat 62203
Name: 'Thieves Commander Follow Order', VNum: [62203], RNum: [ 1477]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None
Commands:
wait 2 sec
say Insisto!


25 Aug 2010 - 18:592954
First off - mfollow is what you're after.

mfollow %actor%

Your issue probably stems from the use of %actor.name% - .name is "alias list".

Also, you might want to first check if the leader is a mobile (or players can draw away all the followers by saying insisto themselves):

if (%actor.is_npc%)
  mfollow %actor%
end


__________________
You know who I am.
25 Aug 2010 - 19:452955
I'll give it a try to see if that helps.

Had it as follow and not mfollow just so that I could make sure that they were in fact following the mob.


25 Aug 2010 - 19:502956
Still doesn't work on the same set of mobs.

I honestly just think this set of mobs don't like me.

EDIT:

Got it to work... changed the mobs name from A blind man, to The blind man and it worked...



Last edited by dare (25 Aug 2010 - 20:21)
25 Aug 2010 - 22:192957
This happens often when a keyword matches an object in inventory, a different mob, or something like that. Echo your variables to see what they really contain and switch into the mob to test it manually.


__________________
Rumble
The Builder Academy
tbamud.com 9091
03 Sep 2010 - 14:182962
A useful technique in trying to figure out why a mob script isn't working would be to switch into the mob.

This then means that you will see any messages, maybe like:
Quote:

>
Someone says 'Insisto!'
That person is not here.
>

which would indicate that the target of the follow command is invisible, or the mob you are in is blind. Of course, it may be a different reason, but switching into the mob might reveal the reason.


__________________
Login to reply  Page: « < 1 of 1 > »