I am struggling to get my script to force an emotion from an NPC from another script.
Bit of info:
- Both NPCs are on the same map.
- Player cannot see both NPCs at the same time on their screen (too far apart).
- NPC 1 (who you are talking to) warps you in front of NPC 2, who talks a bit then responds with emotions.
What is wrong with this? Thank you in advance for any help.
prontera,100,100,5 script NPC1 53,{
mes "[NPC1]";
mes "I am now warping you to NPC2";
next;
warp "prontera",150,150,0;
mes "[NPC1];
mes "This is NPC2. Say hello to the player, NPC2.";
set .@emote, e_paper;
next;
donpcevent "NPC2::OnEmote";
//Conversation 'mes' continues from here
//At the bottom of NPC1's script (but still inside it)
OnEmote:
emotion .@emote;
end;
}
Hi,
I am struggling to get my script to force an emotion from an NPC from another script.
Bit of info:
- Both NPCs are on the same map.
- Player cannot see both NPCs at the same time on their screen (too far apart).
- NPC 1 (who you are talking to) warps you in front of NPC 2, who talks a bit then responds with emotions.
What is wrong with this? Thank you in advance for any help.
Share this post
Link to post
Share on other sites