The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> MoveToSavedLocationn(S:GLOBAL*,S:Area*), Moving between areas
jastey
post May 22 2005, 10:22 AM
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.
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
jastey
post Jul 24 2005, 08:16 PM
Post #2





Forum Member
Posts: 1366
Joined: 22-August 04
From: Germany




QUOTE(Avenger_teambg @ Jul 24 2005, 01:41 PM)
Check: 277 EscapeAreaObjectMove

Would I use this instead of " LeaveAreaLUA()"? What would be the advantage?
Go to the top of the page
 
Quote Post

Posts in this topic
jastey   MoveToSavedLocationn(S:GLOBAL*,S:Area*)   May 22 2005, 10:22 AM
dragon_lord   NULL   May 22 2005, 10:30 AM
jastey   NULL   May 22 2005, 10:54 AM
dragon_lord   NULL   May 22 2005, 11:19 AM
jastey   NULL   May 22 2005, 02:55 PM
Galactygon   NULL   May 22 2005, 03:21 PM
jastey   NULL   May 22 2005, 06:26 PM
Avenger_teambg   NULL   Jul 24 2005, 11:41 AM
jastey   NULL   Jul 24 2005, 08:16 PM
devSin   NULL   Jul 24 2005, 09:00 PM
jastey   NULL   Jul 25 2005, 08:35 AM
Avenger_teambg   NULL   Jul 25 2005, 09:42 AM
devSin   NULL   Jul 25 2005, 06:48 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 29th August 2025 - 08:45 AM