Dialog options and Objects

Started by , Fri 04/03/2005 19:05:38

Previous topic - Next topic

Guest

i have a problem im my game with something i want to do but don't know how

first a dialog starts, the player talks with another guy till he says "ok i will show you the door" i want to make the door apears only when the characters reaches that part of the dialog

and also wanna know how to make the player gets an item when he reaches an specific part of a dialog

Guest

sorry if my english isn't good, i'm not a native speaker :)

Goot

Your English is fine. There doesn't seem to be a single mistake in your post.Ã,  :)

For your first question, you'll have to use the dialog request function. Go to your global script (Ctrl+G) and type this script outside all the other functions:

function dialog_request(int parameter){
if(parameter==1){
ObjectOn(OBJECTNUMBER);
}
}

then in your dialog script, when you want the object to turn on, type:

run-script 1

For you second question you can use "add inv x" in the dialog script, or do that with dialog request too. To have more than one dialog request, put a different number with "run script x" and have that corresponding number in the function. (if parameter==x) You can look up dialog request in the manual if that didn't make sence.

SMF spam blocked by CleanTalk