View previous topic :: View next topic |
Author |
Message |
garronomus
Joined: 07 Apr 2005 Posts: 2
|
Posted: Thu Apr 07, 2005 20:49 Post subject: Need Information And Or Help On Custom Quests |
|
|
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 |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Thu Apr 07, 2005 21:58 Post subject: |
|
|
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
Hope that helps! |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Fri Apr 08, 2005 14:05 Post subject: |
|
|
Answered here? _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
garronomus
Joined: 07 Apr 2005 Posts: 2
|
Posted: Fri Apr 08, 2005 18:59 Post subject: Quests |
|
|
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 |
|
|
Raasta
Joined: 20 Jan 2005 Posts: 1
|
Posted: Sat Apr 09, 2005 3:52 Post subject: Re: Quests |
|
|
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
Lokey wrote: | Answered here? <--- Click here |
|
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Sat Apr 09, 2005 6:45 Post subject: |
|
|
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 |
|
Back to top |
|
|
|