I’m looking for a script that would trigger an area transition only if the PC has an item equipped. I’m absolutely no scripter although I’m starting to recognise the odd phrase !
Anyway, I’ve been looking for scripts to do this and came across this one. I could be completely wrong but I reckon its close to what I want but needs some changes. If I’ve learned anything about scripting its that there’ll probably be another 5 or 6 steps I need to add !
void main()
{
// Assign the variables.
object oPC = GetEnteringObject();
object oWP = GetWaypointByTag("dt_cliffstoice");
object oWP1 = GetWaypointByTag("dt_icetocliffs");
int iVar1 = GetLocalInt(GetModule(), "iVar");
// Now we test to make sure at iVar1 is what you need to
// go into the new area. If it isn't, you go to the old.
if (iVar1 != number)
{
AssignCommand(oPC, JumpToObject(oWP1));
}
else
{
AssignCommand(oPC, JumpToObject(oWP));
}
}
I reckon the script goes into the OnEnter box in the trigger and I think the line I need help on is this -
int iVar1 = GetLocalInt(GetModule(), “iVar”);
However, I’m stumped with what to do next. I know I need it to check for an item in the inventory. Had a look at the Script Generator but couldn’t figure out how to work it. Any help with getting this script done there would probably save me coming back for more help later
My other quick questions aren’t worth starting new posts on as they’re specific to working with a class. Apologies if I need to start new posts for both. I wasn’t sure. I’ve had a look round and there doesn’t seem to be an answer for either and maybe not a solution either.
-
When demoing a module on a projector for kids any tiles comes across as very dark. Even at the risk of ruining the atmosphere what is the best way of boosting area lighting? I’ve tried rural which seems to be the brightest but once in the game even that goes darker. Clear day in area lighting doesn’t hack it and I’m not sure where to go with customising environment.
-
Is there a (very) easy way to just end a module by fading to black? I want to create a teaser for the kids where they get a drawbridge down then hear an evil voice ( well, see it spoken above their head !) and it just fades to black.
Thanks for any help offered. Edit: Sorry, forgot to credit the script I used. It was NWN wiki and I think the author was Trinity.