Screen Background

Post » Mon May 02, 2011 1:59 am

Hi. I'm using some script that calls SetPCSleepHours so that some time passes. The player is not in control of anything at this time.

The problem is not really a problem as such, just a matter of aesthetics - The player and another NPC are moved to another location a short distance away, and the SetPCSleepHours is called at 1,2 or 4 hours, depending on various circumstances. Everything works just fine, however the NPC and the surroundings are visible throughout the whole thing, which is not very nice, and Id rather a blank screen.

It is possible to set the screen to be blank, then perform the move etc, and then show the screen once more, this time with the player and the NPC in the new location?

cheers

MVK
User avatar
Lil Miss
 
Posts: 3373
Joined: Thu Nov 23, 2006 12:57 pm

Post » Sun May 01, 2011 5:00 pm

Your options:
. Write a fullscreen shader to do the job and use OBGEv2 to apply it in game.
. Move the player to a remote cell with no ambient lighting - That should result in a completely dark room. Then call setPCSleepHours and move them back.
User avatar
Lauren Denman
 
Posts: 3382
Joined: Fri Jun 16, 2006 10:29 am

Post » Sun May 01, 2011 2:45 pm

Your options:
. Write a fullscreen shader to do the job and use OBGEv2 to apply it in game.
. Move the player to a remote cell with no ambient lighting - That should result in a completely dark room. Then call setPCSleepHours and move them back.


Thanks shadeMe. I'm not even sure what 'OBGEv2' is, so I guess I'm not using it! ^_^

Anyway, the move to another cell hadn't occurred to me, so Ill give that a go and see how things work out.

cheers

MVK
User avatar
Tracey Duncan
 
Posts: 3299
Joined: Wed Apr 18, 2007 9:32 am

Post » Sun May 01, 2011 6:43 pm

Unfortunately that doesn't seem to work.

If I move the player to a cell with no light, it certainly blanks the screen, but that's all it does! The player is then stuck in that location and the rest of the script does not seem to run.

I have
MessageBox "A brief description of whats gone one"Player.RemoveItem Gold001 16SetPCSleepHours 1NPCPodTrader.MoveTo PodTradedMarker01Player.MoveTo PCPodTradedMarker01


If I place the move to the dark cell before the sleep call that's the end, and nothing else happens after the cell loading screen, and if I place it afterward there is little point in placing it at all.

I tried moving the temporary dark marker to the same cell (an interior) as the player, although 'outside' the interior if you get what I mean, and while the was no freezing of the script, the move was over so quickly that it wasn't actually worth it.

Any other alternatives?

MVK
User avatar
Harry-James Payne
 
Posts: 3464
Joined: Wed May 09, 2007 6:58 am

Post » Sun May 01, 2011 8:03 pm

A player.moveTo XXX call will act as a return statement. You'll need to add a catch for that and do your work in the subsequent frame.
User avatar
Tyler F
 
Posts: 3420
Joined: Mon Aug 27, 2007 8:07 pm

Post » Sun May 01, 2011 6:14 pm

Um.. thanks. Er, what does that mean exactly? The script is running as the result script of a choice topic. Is there a way to call another script from within that results box?

cheers

MVK
User avatar
Beat freak
 
Posts: 3403
Joined: Thu Dec 14, 2006 6:04 am


Return to IV - Oblivion