logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Need Information And Or Help On Custom Quests

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
garronomus



Joined: 07 Apr 2005
Posts: 2

PostPosted: Thu Apr 07, 2005 20:49    Post subject: Need Information And Or Help On Custom Quests Reply with quote

Will NWNX allow for players to have quests seperate of each other?

e.g. 2 players are in a mod ungrouped. The first player gets the quest then the second player...third etc. Each player should be able to get the quest independant of the other players.

If 2 or more players have the same quest, and if one player completes the quest will the other player or players still retain uncompleted quest status?

It would be great to find or create a script to run as a true MMORPG or as close to it as possible where one players actions, whether grouped or ungrouped won't effect any other player in the mod.

Any info or script etc. would be much appreciated


Last edited by garronomus on Sat Apr 09, 2005 2:30; edited 4 times in total
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Thu Apr 07, 2005 21:58    Post subject: Reply with quote

It all depends on how your quest system is setup.

Any quest system you create for NWNX will have to be custom, the default NWN setup has no persistence. Once you write custom system then you can make it party friendly with no more work than not having it so.

Its really way beyond the purpose of these boards to build a complex quest system but as an example take the following...

Player A has a quest to kill XX creature.

Player B has a quest to kill YY creature.

When the party enters on area, cycle through the party members and see if any of them have a quest for this area. If they DO, run the script that spawns the correct creature for that quest (we will assume XX in this case) AND tag that creature with the object (PC) of the character that holds its quest.

When creature XX dies, you check the first member of the party of the person that killed it and see if that person has the quest. If not, check the next person in the party, then the third. Once you have a match AND the creatures and quest holder are in the same vacinity/area (keeps others from killing your quests for you while you are elsewhere), advance the quest for the person that holds it. One simple loop through all party members and you are now party-friendly in your code....

Since the quest(s) are assigned to the OBJECT (PC) in the database, a simple search based on the current party member in the loop will show whether it is their creature or not. If the party does NOT contain the person who the quest is for then treat the creatures like any other random encounter. Make sure you assign XP rewards AND spawn treasure on the creature's OnDeath() to prohibit other's from leeching another player's loot by camping in the various quest areas; if the party wasn't the spawning party==no loot Very Happy

Hope that helps!
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Fri Apr 08, 2005 14:05    Post subject: Reply with quote

Answered here?
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
garronomus



Joined: 07 Apr 2005
Posts: 2

PostPosted: Fri Apr 08, 2005 18:59    Post subject: Quests Reply with quote

Lokey wrote:
Answered here?


Thanks for the info but Neversummer site is designed for players on their servers. I couldn't find any info on custom scripts on the site or in the forums. I also posted this question on their forums as well but so far no response.

Did I miss something on the Neversummer site Lokey?
Back to top
View user's profile Send private message
Raasta



Joined: 20 Jan 2005
Posts: 1

PostPosted: Sat Apr 09, 2005 3:52    Post subject: Re: Quests Reply with quote

garronomus wrote:

Thanks for the info but Neversummer site is designed for players on their servers. I couldn't find any info on custom scripts on the site or in the forums. I also posted this question on their forums as well but so far no response.

Did I miss something on the Neversummer site Lokey?


Yeah Smile

Lokey wrote:
Answered here? <--- Click here
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Sat Apr 09, 2005 6:45    Post subject: Reply with quote

lol should have copied pasted.

The BioScript function defaults to giving it to everyone in the party.

Code:
void AddJournalQuestEntry(string szPlotID, int nState, object oCreature, int bAllPartyMembers=TRUE, int bAllPlayers=FALSE, int bAllowOverrideHigher=FALSE)

_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group