Thanks for pointing that one out...
I think I'm gonna do the manual thing... thanks again...
I think I'm gonna do the manual thing... thanks again...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
function hGoLivingRoom_Interact()
{
player.ChangeRoom(2, 615, 640);
}
function hGoLivingRoom_Interact()
{
StartCutscene(eSkipMouseClick);
player.Move(hGoLivingRoom.WalkToX, hGoLivingRoom.WalkToY, eNoBlock);
EndCutscene();
player.ChangeRoom(2, 615, 640);
}
function hUnderBed_Look()
{
player.Say("Let me look under mah bed there");
player.Walk(hUnderBed.WalkToX, hUnderBed.WalkToY, eBlock);
}
function hGoLivingRoom_Interact()
{
player.Say("yeah");
player.ChangeRoom(2, 615, 640);
}
function createTextBox(function confirmCallback, function cancelCallback)
{
// When I do something like this:
confirmCallback();
// I get an error: GlobalScript.asc(561): Error (line 561): PE04: parse error at 'confirmCallback'
// When I do it like this:
confirmCallback;
// I still get the error: GlobalScript.asc(561): Error (line 561): PE04: parse error at 'confirmCallback'
}
// This should be the function that will be called in the GlobalScript.asc
function generic()
{
Display("Yeah");
}
/* I just realized while writing this post that GlobalScripts.asc could not call scripts from local scripts hehe, does this fact affect my question? I hope not ^_^,*/
/*If GlobalScripts cannot access/call functions from local scripts, then passing a function from a local script to the globalscript is impossible? does that make sense at all?"*/
function room_AfterFadeIn()
{
// I tried doing something like this:
createTextBox(generic(), generic());
// and something like this
createTextBox(generic, generic);
}
function btnConfirmTxtBox_OnClick(GUIControl *control, MouseButton button)
{
valueOfContent = txtContent.Text;
// Where String valueOfContent as Global Variable
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.027 seconds with 13 queries.