The script for the globals (mostly comments!):
Spoiler
Scriptname LGBM01Script extends Quest{Mainly holds variables}GlobalVariable Property TourDone Auto{Governs Dialogue and Enable Parents B}; sets to 1 when player starts tour; sets to 2 if tour is past first stage; sets to 3 if tour has been completed once; sets to 4 if tour completed twice (may not be used)GlobalVariable Property TourProgress Auto{Conditions tour stages}; tracks progress through scene stages; so interrupted tours resume correctly; and repeated tours keep trackOkay, so I can get the dialogue fragment to find the LGBM01Script by using
LGBM01Script property TourDone AutoAt least, I think it's finding it, because that's all that compiles. Here's what I am trying:
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname LGBM_TIF__0200B09F Extends TopicInfo Hidden;END FRAGMENT CODE - Do not edit anything between this and the begin commentLGBM01Script property TourDone autoget tourdone if Tourdone > 1 return else Tourdone=1 return endif
I'm getting an EOF error at "if"
Spoiler
, and I think I need some sort of event, but I don't know what to put in. I just want to set Tourdone to 1 if it hasn't been incremented yet. I tried jamming in an OnInit, but no joy (I honestly don't know much about events, but I thought that would tick off ANYthing). I feel like there's a simple step I am skipping, but after hours of looking at the wiki and other posts, I'm still drawing a blank.Starting 1 compile threads for 1 files...
Compiling "LGBM_TIF__0200B09F"...
c:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LGBM_TIF__0200B09F.psc(10,1): missing EOF at 'if'
No output generated for LGBM_TIF__0200B09F, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on LGBM_TIF__0200B09F
Compiling "LGBM_TIF__0200B09F"...
c:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LGBM_TIF__0200B09F.psc(10,1): missing EOF at 'if'
No output generated for LGBM_TIF__0200B09F, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on LGBM_TIF__0200B09F
Note: I've been able to just set the variable in another dialogue fragment with
(getOwningQuest() as LGBM01Script).TourDone.setValue(3)but when I try to use that in the CK editor, I do this:
Spoiler
Starting 1 compile threads for 1 files...
Compiling "LGBM_TIF__0200B09F"...
c:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LGBM_TIF__0200B09F.psc(7,0): missing EOF at '('
No output generated for LGBM_TIF__0200B09F, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on LGBM_TIF__0200B09F
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname LGBM_TIF__0200B09F Extends TopicInfo Hidden;END FRAGMENT CODE - Do not edit anything between this and the begin comment(getOwningQuest() as LGBM01Script).TourDone.getValue() if (Tourdone > 1) return else Tourdone.setValue (1) return endif
Starting 1 compile threads for 1 files...
Compiling "LGBM_TIF__0200B09F"...
c:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LGBM_TIF__0200B09F.psc(7,0): missing EOF at '('
No output generated for LGBM_TIF__0200B09F, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on LGBM_TIF__0200B09F
Confusion reigns.

