Here's a script I've been doing; a kobold who is attacked yelps and alerts his allies, who lie to the south. When they hear him yelling, they stand up and rush to his aid.
First script: the kobold who will cry for help.
Code:
Name: 'Alert Guards to South', VNum: [ 604], RNum: [ 4]
Trigger Intended Assignment: Mobiles
Trigger Type: HitPrcnt , Numeric Arg: 99, Arg list: None
Commands:
emote lets out a shrill bark, looking alarmed!
%at% 618 %echo% A shrill bark is heard coming from the north.
detach all %self.id%
Second script: kobold guards sitting in the next room.
Code:
Name: 'Guards Come to Rescue', VNum: [ 605], RNum: [ 5]
Trigger Intended Assignment: Mobiles
Trigger Type: Act , Numeric Arg: 0, Arg list: A shrill bark is heard coming from the north.
Commands:
emote scrambles to his feet and runs to the north!
st
north
I'm probably doing something wrong here, but the first script that uses %at% doesn't send it to the right room. It sends it to the room the kobold being attacked is located. I changed it to a %zoneecho%, which is... Ok... but the guards don't react to it at all. Any ideas on what I'm doing wrong?