Difference between revisions of "Questions"
Jump to navigation
Jump to search
m
no edit summary
imported>Clintonio m (Scripting Question) |
imported>Clintonio m |
||
Line 257: | Line 257: | ||
I need it pretty much to output Daydone == 1 after one day, so my quest works... | I need it pretty much to output Daydone == 1 after one day, so my quest works... | ||
I have little experience in scripting, but I am not too bad, yet this one has just stopped me from continuing... | I have little experience in scripting, but I am not too bad, yet this one has just stopped me from continuing... | ||
Here is my script | |||
'' scriptname CQMeetClintonioScript | |||
short DayDone | |||
float CurrentDay | |||
float CurrentTime | |||
begin gamemode | |||
;Wait a day to talk to Clintonio | |||
if ( GetStage CQMeetClintonio == 30 ) && ( CurrentDay == 0 ) | |||
set CurrentDay to GameDaysPassed | |||
set CurrentTime to GameHour | |||
endif | |||
if ( GetStage CQMeetClintonio == 30 ) && ( DayDone == 0 ) | |||
if GameDaysPassed == ( CurrentDay + 1 ) | |||
if GameHour >= CurrentTime | |||
set DayDone to 1 | |||
endif | |||
elseif GameDaysPassed > ( CurrentDay + 1 ) | |||
set DayDone to 1 | |||
endif | |||
endif | |||
if ( Getstage CQMeetClintonio ==30 ) && (DayDone == 1 ) | |||
clintonioref.additem weapsilvershortsword 1 | |||
clintonioref.additem pickaxe01 5 | |||
clintonioref.additem tg11elvenhelmet 1 | |||
endif | |||
end '' | |||
--[[User:Clintonio|Clintonio]] 4:08, 23 April 2006 (GMT) | --[[User:Clintonio|Clintonio]] 4:08, 23 April 2006 (GMT) |