Two questions about Dialogs

Started by Gribbler, Wed 14/01/2009 13:37:57

Previous topic - Next topic

Gribbler

How to script within a dialog? For example: change character speech animation (view) during a dialog. Or how to get an item by chosing specific dialog topic? I know the commands for that actions (ChangeView, AddInventory) but just don't know how to incorporate them into dialog itself. Please do not write RTFM cause I already did...:-)

Dualnames

well, imagine the dialog is like this:

if you want to out functions in dialogs in the same way you do in every normal script:

http://guidetoags.blogspot.com/2009/01/dialog-request.html

if you don't want to add normal script functions:

Check manual for add-inv X//this shouldn't be idented.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Gribbler

I even did't realized its that easy:-) Thanks a lot!

Shane 'ProgZmax' Stevens

Just remember, if you want to use regular scripting inside the built in dialog editor, you need at least one space before each script so it is not recognized as regular dialog code, like:

Code: ags

@1

narrator:  Hello!

//now let's have the narrator say hello through a regular Display() call
//note the space in front of the call

 Display("Hello!");

stop



SMF spam blocked by CleanTalk