Author Topic: help with encounters...  (Read 467 times)

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
help with encounters...
« on: April 17, 2011, 10:27:51 am »


               hi everyone,

so i'm looking to have a set of encounters where:
1. the encounter respawns every 5 minutes,
2. spawns 2-7 enemies when triggered,
3. alternates the spawned creature based on day/night,
4. and has at least 1 of a certain creature to be like a boss figure.
i say set cause edit copy might now work here... but it might.

any help with a script would be appreciated.
any questions, please ask, i do ask for pretty open scripts.

thanks in advance,
zero.
               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
help with encounters...
« Reply #1 on: April 18, 2011, 03:02:43 am »


               well i would of at least hoped for some type of reply by now. guess i'll have to stick to the lame ass default ones... thanks... i guess.
zero
               
               

               
            

Legacy_Evelath

  • Full Member
  • ***
  • Posts: 108
  • Karma: +0/-0
help with encounters...
« Reply #2 on: April 18, 2011, 03:09:43 am »


               Those with the appropriate knowledge will eventually get to your question.. You do realize that NWN is quite old and that anyone here assisting with scripts is doing so of their own free will, right?  In many cases the questions asked will be answered, or responded to within a few days.  Just be patient.

EDIT:  In fact, what you're asking for can all be accomplished with the NESS Spawn System found on the Vault.  The DL includes a tutorial and some helpful tips.
               
               

               


                     Modifié par Evelath, 18 avril 2011 - 02:12 .
                     
                  


            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
help with encounters...
« Reply #3 on: April 18, 2011, 03:59:28 am »


               Sorry you haven't gotten a reply yet zero. This one might be a bit too open.

Do you want it to be a trigger type encounter that fires if the player enters it or is it just supposed to automatically spawn some creatures whether anyone is near or not?
You want 2 to 7 of one type of creature to spawn at night and then 2 to 7 of another type of creature to spawn during the day?
Is the boss supposed to spawn with these other creatures or by itself and is there just a certain % chance that the boss will spawn or will it always spawn?
Will it be the same boss for day or night or different ones for day/night?
You mention copy/paste? Do you want this script to be reusable with different creatures for day and night in different places?

Also as Evelath pointed out...patience is a virtue. Generally it is good practice to wait at least 24 hours before bumping or reasking for help. '<img'>
               
               

               


                     Modifié par GhostOfGod, 18 avril 2011 - 03:03 .
                     
                  


            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
help with encounters...
« Reply #4 on: April 19, 2011, 03:02:43 am »


               hey, sorry if i was a bit impatient with my wait, had a bad day and wanted to see something good.

as for ness... i tried that and got way to confused with how to make it work, even though i read the read me and watched the video link. it just didn't click.

i did state in my original post that i tend to leave things open, so ask if theres questions, so i was at least hoping for a question reply.

th encounters i would like to be triggered through a conversation,
through a player opening a door/crate/ect..,
standard painted trigger,
and possibly one that would trigger with a delay upon entering an area.
also, if it can be made to have different creatures for both day and night, that would be great.

a "SET" of encounters.

i'm really horrible with explination of what i want the first time for some reason, sometimes even the second time through as well, so plaese ask questions of me if you need more info.

zero
               
               

               


                     Modifié par zero-feeling, 19 avril 2011 - 02:04 .
                     
                  


            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
help with encounters...
« Reply #5 on: April 19, 2011, 03:09:09 am »


               sorry, posted before i finished reading all your post ghost.

for the creatures, 2-7 of one "group", where there are 2-3 different classes of monster and one "boss" for each group as well, with a chance there will be 2 "bosses". these will be different for night and day. the boss will spawn with the group. different bosses for day/night. and finally, yes, i would like to make the script useable in several areas with different creatures.

zero
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
help with encounters...
« Reply #6 on: April 19, 2011, 03:44:10 am »


               You Still did not answer if you want the Encounter creating new creature every 5 minutes or just reseting itself every five minutes.    

By what Im reading so far it sounds like you can just use standard encounters.   Make one for day and one for night.  Place both of them in the same spot.   set one of them active, the other on not active.   Have the encounter that is active check the time of  against its Spawn time.  If it is not its Spawn time have it set the other one active and deactive itsself.
               
               

               
            

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
help with encounters...
« Reply #7 on: April 19, 2011, 06:23:43 am »


               NESS is really very good, if you missed this tool, it helps to generate the WP tags for you:  http://www.lrjonline.../swg/index.html

It is very easy to set day/night, and time period between respawns.

If you want to use encounters and have a boss, I'd use an encounter that only has the boss, and another for the other NPCs.  To do day/night stuff requires a bit more work.
               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
help with encounters...
« Reply #8 on: April 19, 2011, 06:43:50 am »


               sorry, resetting is the idea, but how would i use the default encounters in conversations, when placeables are opened, or delay them onenter of an area?

zero
               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
help with encounters...
« Reply #9 on: April 19, 2011, 06:58:24 am »


               ok, so i've had a few bad days and not much sleep, i realized it would be fairly easy to do spawns from a conversation, maybe even a placeable, but not sure how to make it random and from 3-7 of them spawn, or even reset for that matter.

here is my basic script:

#include "nw_i0_generic"
void main()
{
object oPC = GetPCSpeaker();
object oTarget;
object oSpawn;
location lTarget;

oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "creature_1", lTarget); // standard creature 2-3 random
oTarget = oSpawn;

SetIsTemporaryEnemy(oPC, oTarget);
   AssignCommand(oTarget, ActionAttack(oPC));
   AssignCommand(oTarget, DetermineCombatRound(oPC));

oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "creature_2", lTarget); // standard creature 2-4 random
oTarget = oSpawn;

SetIsTemporaryEnemy(oPC, oTarget);
   AssignCommand(oTarget, ActionAttack(oPC));
   AssignCommand(oTarget, DetermineCombatRound(oPC));

oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "creature_3", lTarget); // boss creature, only one needed
oTarget = oSpawn;

SetIsTemporaryEnemy(oPC, oTarget);
   AssignCommand(oTarget, ActionAttack(oPC));
   AssignCommand(oTarget, DetermineCombatRound(oPC));
}

would also like them to be at a distance from the player and not all bunched in one spot, more like surrounding them.

thanks, zero
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
help with encounters...
« Reply #10 on: April 20, 2011, 08:32:26 pm »


               Just use the standrad OC encountes and use TOD Encounter Triggers v1.0 by Axe to augment.

Easiest solution by far.