![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
Forum Member Posts: 1366 Joined: 22-August 04 From: Germany ![]() |
Hi,
what I want to do is: -teleport the PC and one NPC into another area -play a cutscene and some dialogue -move PC and NPC back to where they were Problem: I do not know in which area they were when the teleporting took place. I guess the actions "SaveObjectLocation" and "MoveToSavedLocationn(S:GLOBAL*,S:Area*)" are the ones to use here? My code for the teleporting is CODE IF True() THEN RESPONSE #100 CutSceneId("ajantis") ClearAllActions() SaveObjectLocation("GLOBAL","LOCX#AjRomAjantis","ajantis") SaveObjectLocation("GLOBAL","LOCX#AjRomPlayer1",Player1) FadeToColor([20.0],0) Wait(1) LeaveAreaLUA("AR1402","",[900.700],0) ActionOverride(Player1,LeaveAreaLUA("AR1402","",[1024.1072],9)) MoveViewPoint([1070.905],INSTANT) Wait(1) FadeFromColor([20.0],0) EndCutSceneMode() Dialog(Myself) END And for moving back I used CODE IF True() THEN RESPONSE #100 CutSceneId("ajantis") ClearAllActions() FadeToColor([20.0],0) Wait(1) ActionOverride(Player1,MoveToSavedLocationn("LOCX#AjRomPlayer1","GLOBAL") MoveToSavedLocationn("LOCX#AjRomAjantis","GLOBAL") Wait(1) FadeFromColor([20.0],0) EndCutSceneMode() END but it is not working, PC and NPC remain in the other area and do *not* move back to the starting area. The variables "LOCX#AjRomPlayer1" and "LOCX#AjRomAjantis" are set (checked with Shadowkeeper). I'm not sure whether it is a syntax error (WeiDU installer does not complain) or whether I am using the wrong action codes for this purpose. Thank you for any help. |
|
|
![]() |
![]()
Post
#2
|
|
Forum Member Posts: 1366 Joined: 22-August 04 From: Germany ![]() |
That did it!! Thank you, dragon lord!
![]() Just in case someone is interested in the correct code, this is the one that worked (EDIT: Yes, it is for Ajantis in the party): CODE IF True() THEN RESPONSE #100 CutSceneId("ajantis") ClearAllActions() StorePartyLocations() FadeToColor([20.0],0) Wait(1) LeaveAreaLUA("AR1402","",[900.700],0) ActionOverride(Player1,LeaveAreaLUA("AR1402","",[1024.1072],9)) MoveViewPoint([1070.905],INSTANT) Wait(1) FadeFromColor([20.0],0) EndCutSceneMode() Dialog(Myself) END CODE IF True() THEN RESPONSE #100 CutSceneId("ajantis") ClearAllActions() FadeToColor([20.0],0) Wait(1) RestorePartyLocations() Wait(1) FadeFromColor([20.0],0) EndCutSceneMode() END IESDP: Either I'm blind, or "StorePartyLocations()" and "RestorePartyLocations()" are not listed in BGII:ToB Action triggers in the IESDP online version. ![]() This post has been edited by jastey: May 22 2005, 10:55 AM |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 29th August 2025 - 08:41 AM |