Quest help, loading new areas.

Post » Tue Jun 19, 2012 7:12 am

Hey guys, what would I have to do to activate the next quest objective when the player enters a new area? Any help would be much appreciated, thank you :)
User avatar
Veronica Martinez
 
Posts: 3498
Joined: Tue Jun 20, 2006 9:43 am

Post » Tue Jun 19, 2012 8:38 am

Have you tried : OnLocationChange ? http://www.creationkit.com/OnLocationChange_-_Actor
User avatar
Blackdrak
 
Posts: 3451
Joined: Thu May 17, 2007 11:40 pm

Post » Tue Jun 19, 2012 2:04 pm

Have you tried : OnLocationChange ?

Keep getting :
Starting 1 compile threads for 1 files...
Compiling "QF_vodnquest_0100B28B"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_vodnquest_0100B28B.psc(48,0): missing EOF at 'EndFunction'
No output generated for QF_vodnquest_0100B28B, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on QF_vodnquest_0100B28B
User avatar
James Hate
 
Posts: 3531
Joined: Sun Jun 24, 2007 5:55 am

Post » Tue Jun 19, 2012 3:17 am

Please post your script, it's difficult to debug otherwise ;) (see some guidelines http://www.gamesas.com/topic/1347469-how-to-ask-for-scripting-help/ )
User avatar
Charles Weber
 
Posts: 3447
Joined: Wed Aug 08, 2007 5:14 pm

Post » Tue Jun 19, 2012 11:47 am

if (!GetStageDone(20))
SetObjectiveDisplayed(10, False)
endif

SetObjectiveCompleted(20)
SetObjectiveDisplayed(30)

Event OnLocationChange(Location akOldLoc, Location ValleyOfDeadNature)
if (Game.GetPlayer().GetCurrentLocation() == ValleyOfDeadNature)
SetObjectiveCompleted(20)
SetObjectiveDisplayed(30)
endIf
endEvent

I'm new to this sorta thing...
User avatar
ILy- Forver
 
Posts: 3459
Joined: Sun Feb 04, 2007 3:18 am

Post » Tue Jun 19, 2012 2:34 am

I assume you posted 3 fragments, right ?

From the copile error, it seems that QF_vodnquest_0100B28B.psc contains a Function declaration and somehow is not complete or something. But I can't see any function in what you posted.

Which part of what you posted above is QF_vodnquest_0100B28B.psc ?
User avatar
Baylea Isaacs
 
Posts: 3436
Joined: Mon Dec 25, 2006 11:58 am

Post » Tue Jun 19, 2012 12:53 am

Hmm you hooked up your quest as a Change Location Quest and hooked it up in the Story Manager right?
User avatar
Philip Rua
 
Posts: 3348
Joined: Sun May 06, 2007 11:53 am

Post » Tue Jun 19, 2012 1:20 am

I was browsing the creation kit wiki when I found this page

http://www.creationkit.com/Papyrus_Compiler_Errors


"Missing X at 'Y'"

The compiler expected X, but found Y instead. This can usually be the result of a misspelled keyword, or malformed line.


your message being : missing EOF at 'EndFunction' it would maybe indicate that you have a EndFunction line all by itself (I mean not linked to any Function line).

Indenting your code like this
Function xyz		 blah-blah		 blah-blah2		 blah-blah3EndFunction

will help you spot any problem.


Hmm you hooked up your quest as a Change Location Quest and hooked it up in the Story Manager right?

I think this is necessary only when you want to start your quest with a particular event not for a particular script inside this quest.


also I think your test is not valid. You should get something

Location property ValleyOfDeadNature autoEvent OnLocationChange(Location akOldLoc, Location akNewLoc)  if (Game.GetPlayer().GetCurrentLocation() == ValleyOfDeadNature)    Debug.Trace("The Player has entered Valley of Dead Nature !")    ;put your code here  endIfendEvent

and set the value for ValleyOfDeadNature in the editor (see tutorials in the CK wiki).
User avatar
C.L.U.T.C.H
 
Posts: 3385
Joined: Tue Aug 14, 2007 6:23 pm


Return to V - Skyrim