Searching i found this script, but i dont understand a lot of things (is changed by me, puting my properties names):
Scriptname ScvmagaenapurosTiempoScript extends Quest GlobalVariable Property GlobalDays auto ;initial days to completeGlobalVariable Property GlobalTime auto ;counter for hours leftQuest Property SCVC1magaenapuros auto ; questint Property FailObjective auto ;int Property FailStage auto ;Int property myStageValue auto; Stage Float endTime Event OnInit()if (TGRDays.GetValue() > 0);Debug.Notification("Starting countdown")GlobalTime.SetValue(GlobalDays.GetValue() * 24)endTime = Utility.GetCurrentGameTime()+GlobalDays.GetValue()SCVC1magaenapuros.UpdateCurrentInstanceGlobal(GlobalTime)RegisterForUpdateGameTime(0.10)EndIfEndEvent Event OnUpdateGameTime()if (!SCVC1magaenapuros.GetCurrentStageID() == myStageValue)UnregisterForUpdateGameTime()EndIffloat step = Math.Ceiling((endTime - Utility.GetCurrentGameTime()) * 24) - GlobalTime.GetValue()if (step != 0)if (0-step > GlobalTime.GetValue()) ;avoid displaying less then 0step = 0 - GlobalTime.GetValue()EndIfif SCVC1magaenapuros.ModObjectiveGlobal(step, GlobalTime, FailObjective, 0, false, false)GlobalTime.SetValue(0.0)SCVC1magaenapuros.UpdateCurrentInstanceGlobal(GlobalTime)SCVC1magaenapuros.SetStage(FailStage)UnregisterForUpdateGameTime()EndIfEndIfEndEvent
And this is what compile error says:
Starting 1 compile threads for 1 files...Compiling "SCVmagaenapurosTiempoScript"...C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\SCVmagaenapurosTiempoScript.psc(13,5): variable TGRDays is undefinedC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\SCVmagaenapurosTiempoScript.psc(13,13): none is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\SCVmagaenapurosTiempoScript.psc(13,24): cannot compare a none to a int (cast missing or types unrelated)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\SCVmagaenapurosTiempoScript.psc(13,24): cannot relatively compare variables to NoneNo output generated for SCVmagaenapurosTiempoScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on SCVmagaenapurosTiempoScriptWhat am i doing wrong?