linking modules script problem

Go down

linking modules script problem Empty linking modules script problem

Post by margolloxx on Mon Aug 04, 2014 5:17 am

Greetings,

I have a minor problem with some selfmade modules that are not linked to Aenea at all. Let me explain, what i want to do and what my problem is.

I am building multiple different modules. One Module is supposed to be a big hub to enter into different modules. In this hub you can get a quest to go clean op a goblininfested cave. That cave is another module. So far so good. Now in that cave i have to aquire an item that i have to bring to the questgiver in the hub to get my reward. When i got it, i can go back to the hub.

Now the problem: If i reenter the hubmodule, the questitem i aquired before simply vanishes from my inventory making it impossible to complete the quest. Can you tell me what might cause the item to vanish? I know i can simply make one module for this but i want it to be different modules.

best wishes,
margolloxx
margolloxx
margolloxx
Commoner
Commoner

Number of posts : 8
Registration date : 2014-07-31

View user profile

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by MannyJabrielle on Mon Aug 04, 2014 10:57 am

At what point specifically is the item being removed?  As you exit the goblin cave module, or as you are re-entering the hub module?

Are you using any haks?  If so, do both the goblin cave module AND the hub have the same haks instaled?
MannyJabrielle
MannyJabrielle
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 5927
Main Character : See the "A-Team" thread in the Biographies forum.
DM Name : Dungeon-Master Gaelen
Time Zone : GMT -5:00(EST)
Registration date : 2008-07-05

View user profile

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by margolloxx on Mon Aug 04, 2014 11:49 am

no haks and its removed on entering the hubmodule
margolloxx
margolloxx
Commoner
Commoner

Number of posts : 8
Registration date : 2014-07-31

View user profile

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by MannyJabrielle on Mon Aug 04, 2014 12:13 pm

Check your module events to make sure none of them are set accidentally to your script for removing that item (oncliententer, onmoduleload, onacquiereitem), and do the same check for the start area's onenter event.  Beyond your item removal script being called outside of the quest-giver's converation, I can't think of any reason why the item would get removed from your inventory on entering the hub module.
MannyJabrielle
MannyJabrielle
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 5927
Main Character : See the "A-Team" thread in the Biographies forum.
DM Name : Dungeon-Master Gaelen
Time Zone : GMT -5:00(EST)
Registration date : 2008-07-05

View user profile

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by The Amethyst Dragon on Mon Aug 04, 2014 2:42 pm

Moved to appropriate sub-forum.

_________________
.
------------------------------------- The Amethyst Dragon -------------------------------------
Creator of Aenea | Custom Content Maker | Dungeon Master | Builder | Scripter | Writer | Player | Sleepless
The Amethyst Dragon
The Amethyst Dragon
Ludicrous Level
Ludicrous Level

. : Creator of Aenea / Dungeon Master
Male Number of posts : 7839
Age : 43
Location : probably on the computer or wrangling his offspring
NWN Username : amethystdragon
DM Name : The Amethyst Dragon
Time Zone : GMT - 6:00 (Wisconsin)
Registration date : 2008-06-02

View user profile http://www.amethyst-dragon.com/nwn

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by RustyDios on Mon Aug 04, 2014 3:45 pm

Are you saving the player between module loads ?.... I've never done any inter-module linking stuff in NWN before, I have no idea how it works. But, I'm almost certain that the main campaign (and Aenea) has some kind of "export/save PC" function between chapters (per log out).... ...

Is the item actually being removed (the log says Lost item: xxxx) or are you just not carrying it correctly...
RustyDios
RustyDios
High Epic Level
High Epic Level

Male Number of posts : 2271
Age : 35
Location : England // Getting lost in Aenea
Main Character : Jay Braysin, The Wandering Shadow, Protector of Nektaria, Talon's Eternal Foe
Other Character : Shouri Braysin, The Shimmerstar's Moonlight Sorceress
Other Character. : Grace Fularras, Walking Library , Cleric of Mystara
Other Character.. : See my sig ... And here too ...
NWN Username : RustyDios
Time Zone : GMT (England, DST)
. : linking modules script problem Forum_donor
Registration date : 2008-07-28

View user profile

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by margolloxx on Tue Aug 05, 2014 4:11 am

StartNewModule("bla"); will carry all playercharacters over to the new module as they are. There is no need to manually save them, though it might be wise to do so anyway.

The problem here was the onModuleLoad event. The tagbased itemscript stuff was messing things up. I removed it completely and its fine now.

Thanks for your input.
margolloxx
margolloxx
Commoner
Commoner

Number of posts : 8
Registration date : 2014-07-31

View user profile

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by The Amethyst Dragon on Tue Aug 05, 2014 9:33 am

Good! Glad you got it figured out.

_________________
.
------------------------------------- The Amethyst Dragon -------------------------------------
Creator of Aenea | Custom Content Maker | Dungeon Master | Builder | Scripter | Writer | Player | Sleepless
The Amethyst Dragon
The Amethyst Dragon
Ludicrous Level
Ludicrous Level

. : Creator of Aenea / Dungeon Master
Male Number of posts : 7839
Age : 43
Location : probably on the computer or wrangling his offspring
NWN Username : amethystdragon
DM Name : The Amethyst Dragon
Time Zone : GMT - 6:00 (Wisconsin)
Registration date : 2008-06-02

View user profile http://www.amethyst-dragon.com/nwn

Back to top Go down

linking modules script problem Empty Re: linking modules script problem

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum