Mob Hurls Actor (Check for Closed Doors)

  • Ether
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 weeks 2 days ago - 3 weeks 1 day ago #8615 by Ether
This is one of my first triggers. I thought I'd share it in case anybody could use it. Hope you like it.
*Written by Ether
*This trigger will randomly pick a valid direction and gather door bits and vnums of adjacent rooms.
*It then if checks the exits to make sure there are no closed doors.
*If there is a closed door in the direction chosen it will “hurl” the actor (person mob is fighting) head first into the door, damaging them, and making them sit.
*If there is no closed doors in the direction chosen it will “hurl” the actor into the adjacent room, damaging them, and making them sit.
*This trigger can be used on sentinel or roaming mobs and the beauty of it is you can tailor it to any mob and it’s the same, yet different!
eval direction %random.dir%
eval doorcheck %%self.room.%direction%(bits)%
eval rvnum %%self.room.%direction%(vnum)%
if %doorcheck% == NOBITS || %doorcheck% == DOOR || %doorcheck% == DOOR PICKPROOF || %doorcheck% == DOOR UNDEFINED || %doorcheck% == DOOR PICKPROOF UNDEFINED
  %send% %actor% @+An Avenger of Hatred grabs you by the neck and hurls you out of the area!@n
  %send% %actor% @+An Avenger of Hatred’s hurl @RDEMOLISHES@n@+ you!@n
  %echoaround% %actor% @+An Avenger of Hatred grabs %actor.name% by the neck and hurls %actor.himher% out of the area!@n
  %echoaround% %actor% @+An Avenger of Hatred’s hurl @RDEMOLISHES@n@+ %actor.name%!@n
  %teleport% %actor% %rvnum%
  %force% %actor% look
  %send% %actor% You tumble a few times before landing on your ass!
  %damage% %actor% 100
  %actor.pos(sit)%
  %echoaround% %actor% %actor.name% comes tumbling into the area before landing on %actor.hisher% ass!
elseif
  %send% %actor% @+An Avenger of Hatred grabs you by the neck and hurls you head first into the door to the %direction%!@n
  %send% %actor% @+An Avenger of Hatred’s hurl @RDEMOLISHES@n@+ you!@n
  %actor.pos(sit)%
  %echoaround% %actor% @+An Avenger of Hatred grabs %actor.name% by the neck and hurls %actor.himher% head first into the door to the %direction%!@n
  %echoaround% %actor% @+An Avenger of Hatred’s hurl @RDEMOLISHES@n@+ %actor.name%!@n
  %damage% %actor% 100
end
Last edit: 3 weeks 1 day ago by thomas.

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

Time to create page: 0.182 seconds