Best way to change a scene depending on variables?

Post » Wed Jun 20, 2012 7:25 am

I have a scene where I want the player and an NPC to walk to a different location depending on variables assigned during a previous quest stage.

What I tried to do was have blank object reference aliases which were then assigned during the quest before the scene, but this causes the quest not to start at all. Even if the aliases are initialised you can't seem to change them via script even though it compiles without error.

Do I need to create a completely new scene for each option? Or just have one scene with a massive amount of conditions? Is there an efficient standard for this sort of scene I should stick to? There's surely a better way to do it.
User avatar
Heather Dawson
 
Posts: 3348
Joined: Sun Oct 15, 2006 4:14 pm

Post » Wed Jun 20, 2012 3:06 pm

Hard to say exactly without knowing the specifics, but I think you could do this by applying an AI package to each actor at the point in the scene where the travel begins, where that package has multiple conditionalized travel procedures within it, one for each possible destination. (Or do it that way for one actor, and apply a follow package to the other.)
User avatar
Andrew
 
Posts: 3521
Joined: Tue May 08, 2007 1:44 am

Post » Wed Jun 20, 2012 10:21 am

I didn't think you could asign a condition to part of an AI package, only the whole thing. It would be easy enough to have multiple conditionalized packages though, I assume that's what you ment. That would be a much much better way of doing it than the other methods I was thinking of. Thanks!
User avatar
barbara belmonte
 
Posts: 3528
Joined: Fri Apr 06, 2007 6:12 pm

Post » Wed Jun 20, 2012 1:27 pm

You can add conditions to individual procedures within a single package, too. Either way should work.
User avatar
GLOW...
 
Posts: 3472
Joined: Thu Aug 03, 2006 10:40 am


Return to V - Skyrim