Making actions result from using dialog lines [SOLVED]

Started by Plankton, Fri 31/12/2004 04:14:16

Previous topic - Next topic

Plankton

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?

Gilbert

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;
  }
}

Barbarian

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
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

Plankton

Thanks guys - this has been a great help.

TerranRich

Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk