Welcome to the Builder Academy

Idea Mob Hurls Actor (Check for Closed Doors)

More
18 Mar 2020 04:08 - 18 Mar 2020 23:32 #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.
Code:
*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: 18 Mar 2020 23:32 by thomas.

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

Time to create page: 0.162 seconds