I've got four trigs, when combined, are designed to send a reaper hunting a vis 30lev pc in the zone and then he returns if defeated or kills his target.
- one is a room trig that detects pc entry and reports the target:
Name: 'dont fear the reaper', VNum: [35050], RNum: [ 748]
Trigger Intended Assignment: Rooms
Trigger Type: Enter , Numeric Arg: 100, Arg list: None
Commands:
*
* 061222 Aegon 350 Ice Fortress
*
context 350
*
if %actor.is_pc%
if %actor.canbeseen% && %actor.level% == 30
eval reaper_target %actor%
set reaper_hunting 0
global reaper_target
global reaper_hunting
%zoneecho% %self.vnum% Tsarkaza, Ice Reaper of the Avatar, is hunting %reaper_target.name%!
end
end
I have a mob waiting in a holding room "listening" for a target from the first trig so when his random trigger fires:
Name: 'the grim reaper', VNum: [35134], RNum: [ 763]
Trigger Intended Assignment: Mobiles
Trigger Type: Random , Numeric Arg: 10, Arg list: None
Commands:
*
* 060922 Aegon 350 Ice Fortress
*
context 350
*
set inroom %self.room%
%zoneecho% %inroom.vnum% A soul-piercing wail rises up through the frozen mists and fills you with a shaking fear.
if ! %reaper_hunting%
if %reaper_target%
if %reaper_target.has_item(35104)%
%send% %reaper_target% A faint voice, perhaps just a sursurration of the wind hisses, "%reaper_target.name%, savor your last breath."
else
%send% %reaper_target% A faint voice, perhaps just a sursurration of the wind hisses, "%reaper_target.name%, Ur-ash gha-ool tragh or-tazask dag."
end
wait 60 s
mgoto 35029
set inroom %self.room%
%zoneecho% %inroom.vnum% A darkness, a shadow is moving through the frozen chambers, searching ...
eval reaper_hunting 1
global reaper_hunting
mhunt %reaper_target%
else
%zoneecho% %inroom.vnum% An ancient memory, not your own, of agony and gore overwhelms you and is gone.
end
else
%zoneecho% %inroom.vnum% A chill wind mounts, deep cold swirling through the air about you, as the walls of this room frost suddenly with ice.
end
another is a defeated msg:
Name: 'the room that time forgot', VNum: [35135], RNum: [ 764]
Trigger Intended Assignment: Mobiles
Trigger Type: Death , Numeric Arg: 100, Arg list: None
Commands:
*
* 063022 Aegon 350 Ice Fortress
*
set inroom %self.room%
%zoneecho% %inroom.vnum% A great howling, cold and forlorn, twists and climbs, rising in pitch until it passes beyond hearing ...
%echo% The walls of ice shed a layer of frost, slick cold returning as the shadow passes on.
return 0
and finally, if the reaper kills the pc, he returns to his cubby:
Name: 'you got reaped!', VNum: [35136], RNum: [ 765]
Trigger Intended Assignment: Mobiles
Trigger Type: Act , Numeric Arg: 0, Arg list: Your blood freezes as you hear
Commands:
*
* 063022 Aegon 350 Ice Fortress
*
context 350
*
if %actor.is_pc%
if %actor% == %reaper_target%
set inroom %self.room%
%echoaround% %actor% The Reaper bends over the corpse of %actor.name% and reaches through %actor.hisher% armor and into %actor.hisher% chest
%echoaround% %actor% searches through cracking ribs, and withdraws a still beating heart.
%send% %actor% As you die, and all thought drifts away, your life passing in seconds before you, the limitless void of Death takes you.
%zoneecho% %inroom.vnum% A chilling laugh fills the ice halls, marking the reaping of another soul!
mgoto 35103
else
%echoaround% %actor% The Reaper smirks, uninterested in an unmarked soul.
end
end
Thing is, the global var isn't working. I place debug echoes in the receiver trig on the Reaper mob and the reaper_target shows up null so the Reaper never responds to a valid target.
Would appreciate any advice!
Aegon