Moving character after dialog. help. (SOLVED)

Started by armiin, Fri 30/04/2010 01:13:15

Previous topic - Next topic

armiin

Firstly, hi everybody and sorry about my english (in doesn't study that necessary language)

I explain my problem:

When I make a dialog, the after actions starts before the dialog finished.

I looking for in the "help", but i don't see anything about this (maybe my bad english don't found it).

Example:

function oSombrillaCerrada_Interact()
{
Display("Me llevo la sombrilla, Tom.");
cTom.Say("Para que la quieres, Rich?");
dTomBarSombrilla.Start();
cRich.Walk(87,  390,  eBlock);
oSombrillaCerrada.Visible = false;
cRich.AddInventory(iSombrilla);
cTom.Animate(0,  10, eRepeat, eNoBlock);
}

When dTomBarSombrilla start, inmediatly, oSombrillaCerrada is no visible and iSombrilla ads to my inventory.
I need to wait at the end of the dialog to make this two things.

Thanks!!

Khris

Dialog.Start(); isn't executed until the end of the function (it says so in the manual, btw ;))

In recent versions of AGS, you can use standard code within dialog scripts, not just dialog commands.
Just open the dialog script, then put the commands in there, right above the final stop command.
Note that you need to put a blank/space/" " before the script commands so AGS recognizes them.

armiin

Quote from: Khris on Fri 30/04/2010 07:50:06
Dialog.Start(); isn't executed until the end of the function (it says so in the manual, btw ;))

In recent versions of AGS, you can use standard code within dialog scripts, not just dialog commands.
Just open the dialog script, then put the commands in there, right above the final stop command.
Note that you need to put a blank/space/" " before the script commands so AGS recognizes them.

THANKSS!!!

SMF spam blocked by CleanTalk