I want an NPC to walk to another room if a certain dialog line is used.
I've read the manual but can't find anything about it.
I assume that in the room script I need something that says "if dialog line x is used the NPCA moves to Room0,X,Y).
Can anyone help?
In the dialog where you want to move the character, use:
run-script 1
Open the global script and add a function called dialog_request():
function dialog_request(int para) {
if (para==1) {
character(NPCA).room=12;
character(NPCA).x=150;
character(NPCA).y=100;
}
}
A while back, someone else had a similar question in which I posted a sample script that might work for them. See this link:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=16305.0
Thanks guys - this has been a great help.
Ahem: http://bfaq.terran-x.com/#coding02 ;)