Monday, 5 May 2008

Last try

I asked about it a several of months ago, without any luck. Now I try again one last time before giving up.

Has anyone got the SetAreaTransitionBMP Function working in NWN2?
I want to control which load screen my OnAreaTransitionClick script throws (different load screens in different situations.

This should work but doesn't. Any clue?

Code
// Name:     z_tr_area_transition_ls

#include "ginc_transition"
void main()
{
object oEnter = GetEnteringObject();
object oTarget = GetTransitionTarget(OBJECT_SELF);
SetAreaTransitionBMP(AREA_TRANSITION_CRYPT);
AttemptAreaTransition(oEnter, oTarget);
}


/A

5 comments:

Jazhara7 said...

Hmm...I'm not sure. But I think Adam Miller had specific load screens for each area in "Dark Waters" and "Dark Waters 2". Not just custom, but really specific ones. You might want to ask him.

And if it's wrong and feel the need to wring somebody's neck for the disturbance, just tell him I sent you - he'll know who I am. Though really, I think that would be quite out of character for him... ;) :P *grins*

And woo! FIRST POST! ^_^


- :) :) :) :) :) :) :)

Ernie Noa said...

I've used custom load screens but haven't used that function call. I do remember reading on the forums that there was a bug related to the function and it wasn't working.

Amraphael said...

@jazhara7 @ Ernie N
Putting a custom, specific image for the load screen is no problem. What I really want to do is have one ls when entering an area from west and another when entering the same area from east, one at night and another at daytime. It was easy to script in NWN1 but it seems to work different in NWN2. The documentation describes the process though and I have some indication that other people had some success in doing it... The one that said it was bugged in the forums was probably my alter ego Nihlar.

Wyrin said...

yeah i was 80% sure reading that this function was bugged. But it's another of those extra touches you seem to be making that will set this module off.

Out of interest, I noticed in dgraf's test module, he fires a movie that starts in the area on enter - and the movie actually runs whils the load screen is still up - so you get to watch the movie instead of the second half of the loadscreen. I don't think it was intended, but an interesting side effect

dirtywick said...

Dang, lost this post. I'll try again.

Trying using the 2da line number instead of the defined constant in the function that changes the load screen. It wouldn't surprise me if the constants are broken for the load screens.