Trigger of the Day Beginner - Memory and Mhunt

Login to reply  Page: « < 1 of 1 > »
16 Jan 2008 - 20:45164
Trigger of the Day Beginner - Memory and Mhunt
Use any type of trigger you want to make the mob remember the player.
Name: 'Mob Memory Example Part 1',  VNum: [   74], RNum: [   74]
Trigger Intended Assignment: Mobiles
Trigger Type: Greet , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy    tbamud.com 9091
* mremember must be used before you can use the trigger type memory.
mremember %actor.name%
say I'll remember you now, %actor.name%
Then use a memory trigger to fire the next time the mob sees the player.
Name: 'Mob Memory Example Part 2',  VNum: [   75], RNum: [   75]
Trigger Intended Assignment: Mobiles
Trigger Type: Memory , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy    tbamud.com 9091
* Fires if player is in mobs memory via mremember and the mob sees the actor.
wait 4 s
poke %actor.name%
say i've seen you before, %actor.name%.
mforget %actor.name%
Or a better example:
Name: 'Memory and Mhunt Example',  VNum: [   41], RNum: [   41]
Trigger Intended Assignment: Mobiles
Trigger Type: Memory , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy    tbamud.com 9091
* Fires if player is in mobs memory via mremember and the mob sees the actor.
%echo% Sleeping for 10 secs, give %actor.name% a head start.
sleep
%echo% Targetting %actor.name%
wait 10 s
wake
stand
%random.dir%
%random.dir%
%random.dir%
%echo% Hunting...%actor.name%
mhunt %actor%
If this was helpful please vote for TBA.


__________________
Rumble
The Builder Academy
tbamud.com 9091

Last edited by Rumble (19 Jan 2008 - 03:07)
17 Feb 2010 - 10:042348
Is there a way for the mob to NOT perform an action on a PC if they're in memory? Say a healer with the PC's name in memory should only heal the player once on a Greet trigger. I want the healer to remember the person so they don't get healed again.


17 Feb 2010 - 21:032354
Quote Axanon:
Is there a way for the mob to NOT perform an action on a PC if they're in memory? Say a healer with the PC's name in memory should only heal the player once on a Greet trigger. I want the healer to remember the person so they don't get healed again.

Well, yes, but then it should no longer be done using mob memory. Instead do one of these:
- set the script context to the id of the player (context %actor.id%), and set/check on a variable, or
- set a variable on the player, and check on that before healing the second time.

The first option is the simplest:
context %actor.id%
if (%has_cast%) 
* or just don't say anything
  say you already have recieved healing.
  halt
end
set has_cast 1
... script to cast healing ...


__________________
You know who I am.
Login to reply  Page: « < 1 of 1 > »