stars2heaven Posted October 7, 2009 Share Posted October 7, 2009 Ive been trying to figure this out for hours. All I want to do is to get a goblin to spawn at a particular time at night for a quest. Ive tried using something in the script like If (GetCurrentTime)==23goblinref.enableendif or If (GameHour) == 23blah, blahend if Game hour and Current time seem to be exactly the same things, and they refer to real time and not the actual game time. Very frustrating. Ive tried looking at the BlackBrugo quest since it mentions he only shows up there during certain times. I couldnt find any evidence of that being true anywhere though in the actual quest scripts/conditions. Is there a way I could get it to spawn at a particular hour in the game that Im not thinking of? Link to comment Share on other sites More sharing options...
jefe323 Posted October 7, 2009 Share Posted October 7, 2009 have you tried putting 23.00? Not sure if that will help, but you never know... :confused: Link to comment Share on other sites More sharing options...
stars2heaven Posted October 7, 2009 Author Share Posted October 7, 2009 have you tried putting 23.00? Not sure if that will help, but you never know... :confused:Yeah I have no idea why it wasnt working. I tried this line If (GameHour >= 23) || (GameHour < 2) That made it work. I have no idea why that extra bit was necessary Link to comment Share on other sites More sharing options...
paladicprince Posted October 7, 2009 Share Posted October 7, 2009 Ive been trying to figure this out for hours. All I want to do is to get a goblin to spawn at a particular time at night for a quest. Ive tried using something in the script like If (GetCurrentTime)==23goblinref.enableendifOn first glance it looks like your syntax is a bit off. Try this: Begin GameMode If (GetCurrentTime == 23) goblinref.enable endif End On second glance it should be noted that this will cause the goblin to enable only at exactly 2300 (Or 11 PM) gametime, not 2315 (or 11:15 PM). and he will only spawn if he's in the cell that the character is in. That is why using the extra stuff is necessary, it means that as long as you arrive in the cell anywhere exactly at or after 11PM as long as it is before 2AM the goblin will spawn. Of course if you wanted him to only spawn during the 2300 hour (I.E. not after midnight) it would look like this: Begin Gamemode If (GameHour >= 23) && (GameHour < 24) goblinref.enable EndIf End In this particular instance the "(GameHour < 24)" is a bit unecessary as it can't ever go higher, it gives a good reference if you only wanted something to spawn during the 1300 (or 1 PM) hour instead. Link to comment Share on other sites More sharing options...
stars2heaven Posted October 7, 2009 Author Share Posted October 7, 2009 Thanks, I did not know that bit about it only spawning while I am in the same cell. I thought that it would spawn regardles of where I was. Ah well, I did get it working. Thanks for the help! Link to comment Share on other sites More sharing options...
paladicprince Posted October 7, 2009 Share Posted October 7, 2009 Scripts could be finicky, but at any rate glad you got t working. Link to comment Share on other sites More sharing options...
Recommended Posts