- Posts: 217
- Thank you received: 22
Please Log in or Create an account to join the conversation.
Papaya Pete wrote: So I'm trying to have a guard keep goblins within a forest, and it works well on them... and everyone else as well. Am I using %actor.vnum% correctly?
Code:1) Name : Keep Goblins In Forest 2) Intended for : Mobiles 3) Trigger types: Greet 4) Numeric Arg : 100 5) Arguments : 6) Commands: emote keeps an eye to the south, his hand on the hilt of his blade. if %actor.vnum(1015)% %force% %actor% emote starts to emerge from the forest, but sees the lone guardsman and quickly darts back in. %force% %actor% south else end
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Vatiken wrote:
Should be...Code:if %actor.vnum(1015)%You don't need the "else" either.Code:if %actor.vnum% == 1015
I'd recommend doing it your original way too as "findmob" is far more intensive (and unneccessary) then just checking the actor's vnum. There is really no reason to ever use "findmob" or "findobj" for any room in which you already have the rnum of.
Please Log in or Create an account to join the conversation.
tbaMUD © 2024