Account
News
Downloads
Community
Wiki
Walkthrough

ArcaneUScholarScript

Editor ID:
ArcaneUScholarScript


Form ID:
00071930


Typ:
Objekt


Script:
ScriptName ArcaneUScholarScript

ref self

short doonce

float timer

Begin Gamemode

;Initialize reference variable

if ( doonce == 0 )
set self to GetSelf
set doonce to 1
endif


;When NPC is at the mark, pick a lecture based on lecturevar in quest script, and start him talking to himself

if ( GetDistance ICArcaneULectureMark < 50 )
if ( doonce == 1 )
look ArcaneULectern
if ( timer < 3 )
set timer to ( timer + GetSecondsPassed )
else
; stoplook
if ( MageConvSystem.lecturevar == 1 )
StartConversation Self ArcaneULecture1
elseif ( MageConvSystem.lecturevar == 2 )
StartConversation Self ArcaneULecture2
elseif ( MageConvSystem.lecturevar == 3 )
StartConversation Self ArcaneULecture3
elseif ( MageConvSystem.lecturevar == 4 )
StartConversation Self ArcaneULecture4
elseif ( MageConvSystem.lecturevar == 5 )
StartConversation Self ArcaneULecture5
endif
set doonce to 2
stoplook
endif
endif
endif


;between lectures, set doonce to 1 so it'll run through conversation block again at next lecture
;reset conv variable in quest script so the conversation will update it

if ( GameHour > 12 )
if ( GameHour < 15 )
set doonce to 1
set MageConvSystem.conv to 0
set timer to 0
endif
endif

End

Begin OnDeath Player
If GetStage TG05Misdirection >= 15 && GetStage TG05Misdirection < 60
Set TG05Misdirection.TotalDead to TG05Misdirection.TotalDead + 1
SetStage TG05BloodPrice 50
EndIf
End


Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden. Weitere Informationen hierzu finden Sie in unserer Datenschutzerklärung.
OK