DayNight
#1
Posted 02 February 2006 - 03:41 AM
I know that one can set the time of day with the command DayNight()
But what I wanted to do is to just add 2 or 3 hours to the actual time (which can be any time) - during which CHARNAME and company are busy doing something.
I know, I could use something like
IF
Time(1)
THEN
RESPONSE #100
DayNight(4)
END
But that would mean I would have to write 24 of these scripts! (or less if I would use the TimeOfDay() trigger, but still more work than it's worth, IMO.)
So is there a command like AddTime(2) or somesuch - I couldn't find any through IESDP - or is there another economic way to try to achieve this?
Thanx
#2
Posted 02 February 2006 - 08:41 AM
Kummalliset kalat liukuvat syvyydessä,
tuntemattomat kukat loistavat rannalla;
olen nähnyt punaista ja keltaista ja kaikki toiset värit -
mutta ihana meri on vaarallista nähdä,
se herättää tulevien seikkailujen janon:
mitä on tapahtunut sadussa, on tapahtuva minullekin.
- Edith Södergran
Amber - The BG2 NPC Mod Project Now released!
Amber's discussion forum at Gibberlings 3
#3
Posted 02 February 2006 - 08:50 AM
So, if even Bioware fakes it, I will have to do that too, I suppose. It wasn't that important anyway, as you probably already guessed.
#4
Posted 02 February 2006 - 11:58 AM
#5
Posted 02 February 2006 - 12:32 PM
Does that make sense?
#6
Posted 02 February 2006 - 01:20 PM
I was just thinking that you could probably create a clock using the game time and globaltimer. You create a script that tracks when it is a certain time and matches this time with a global value. Then when you need to increase the time you increment the global value by the number of hours you need and use another script to set the time to match the global value.
Does that make sense?
Actually, it does - after I reread for the third time, that is. But I am wondering if it would help me and if it's doable. It's whole lot of work to set the global though (well 24 IFs only to set the global). Would it not be as much work as when you just do IF Time(X) THEN DayNight(X+3)? - and since it is a part of a cutscene or area script that would mean I have to multiply this script 24 times too. Or am I missing something?
The same thought crossed my mind too, Stone Wolf. But for some dark reason I rejected it, though I can't really remember why .
#7
Posted 02 February 2006 - 03:07 PM
Still modding the Mod for the Wicked... It is a big project you know... And I got sidetracked (several times) a bit... sorry.
However, as we all know, Evil never really sleeps.
Sentences marking (my) life:
Winds of change... Endure them, and in Enduring grow Stronger
It takes a fool to look for logic in a man's heart
Never question the sanity of the insane
The Harmony of Life is Chaos
Living on Wings of Dreams
(1st march 2009) SHS women over me:
Kat: if there were more guys that looked like you out here, people's offspring wouldnt be so damn ugly
Noctalys: you are adorable
~~ I love it, and I am humbled! Yay! ~~