My question regards the behavior of the spawn scripts AFTER being KILLED by a PC or NPC.
According to docs there are a few variables that control respawning after a killed spawn.
ACR_RESPAWN_DELAY_MIN
ACR_RESPAWN_DELAY_MAX
ACR_SPAWN_CHANCE
ACR_SPAWN_RESPAWN_COUNT
I have min and max set to 4 and 6 respectively, chance set to 10. According to my understanding, there is a 10% chance per day that these spawns will occur.
Now, if they are killed, does that mean there is ANOTHER 10% chance that it will respawn, or will it continue to use the previous spawn / nospawn roll, meaning if someone kills it, will it respawn 4-6 hours later if in the same day, or will it reroll the 10%?
Next, the respawn count. Its currently set to 1, which AFAIK means it will only spawn once, and if KILLED, wont come back. If I change that to -1 instead, will it infinitely respawn, with a new 10% roll every 4-6 hours? Cause that's what I want...
Spawn Scripts and Respawning
Moderators: ALFA Administrators, Staff - Technical
- AcadiusLost
- Chosen of Forumamus, God of Forums
- Posts: 5061
- Joined: Tue Oct 19, 2004 8:38 am
- Location: Montara, CA [GMT -8]
- Contact:
Re: Spawn Scripts and Respawning
Currently, the % chance should apply per in-game day, rolled once per day only.
So, in example:
So, in example:
- day 1: failed % chance
- day 2: made % chance, spawn point activates. PC kills spawn, respawn system checks validity, sees your -1, and rolls for how long till the spawn point repopulates. Roll is 5 IG hours, so a PC arriving 4 IG hours later sees no spawn, but one arriving 6 IG hours later encounters the respawn (unless this pushes into the next game-day, in which case another spawn % chance roll fires)
- day 3: failed % chance
Re: Spawn Scripts and Respawning
Perhaps I have failed to properly communicate what I want.
The old NWN1 way of calculating the % chance, was, you defined your interval, and every interval, a new % chance was rolled for that particular spawn point. So for example, I could define an interval of 8 ALFA hours and a chance of 3%, and every 8 ALFA hours, I had a 3% chance of a spawn appearing at a particular point. (so thats about a cumulative 9% chance per ALFA day per spawn point, i.e. 3 RL hours, which IMO is quite reasonable).
This gives me the level of control and variability I want.
But if I understand you correctly, the new way is, the spawn chance is only rolled once per ALFA day. That means, on day 1 where a spawn is rolled, if someone kills my spawn, and my interval is 8 ALFA hours, then 8 hours later it will definitely respawn, and again 8 ALFA hours later... right? This means a single spawn point will respawn 3 times in 3 RL hours. On the flip side, if the %chance is NOT rolled, it will never attempt to reroll, until the next day.
Wouldn't it make more sense to reroll the percent chance every interval, since you define the interval with ACR_RESPAWN_DELAY_MIN and ACR_RESPAWN_DELAY_MAX? Because it seems like, currently, the only interval that makes sense is 24 hours, since this is the only time the spawn chance is rolled.
The old NWN1 way of calculating the % chance, was, you defined your interval, and every interval, a new % chance was rolled for that particular spawn point. So for example, I could define an interval of 8 ALFA hours and a chance of 3%, and every 8 ALFA hours, I had a 3% chance of a spawn appearing at a particular point. (so thats about a cumulative 9% chance per ALFA day per spawn point, i.e. 3 RL hours, which IMO is quite reasonable).
This gives me the level of control and variability I want.
But if I understand you correctly, the new way is, the spawn chance is only rolled once per ALFA day. That means, on day 1 where a spawn is rolled, if someone kills my spawn, and my interval is 8 ALFA hours, then 8 hours later it will definitely respawn, and again 8 ALFA hours later... right? This means a single spawn point will respawn 3 times in 3 RL hours. On the flip side, if the %chance is NOT rolled, it will never attempt to reroll, until the next day.
Wouldn't it make more sense to reroll the percent chance every interval, since you define the interval with ACR_RESPAWN_DELAY_MIN and ACR_RESPAWN_DELAY_MAX? Because it seems like, currently, the only interval that makes sense is 24 hours, since this is the only time the spawn chance is rolled.
- Teric neDhalir
- Githyanki
- Posts: 1495
- Joined: Mon Jan 05, 2004 10:04 pm
- Location: Manchester UK
Re: Spawn Scripts and Respawning
You can get round this by having the spawn point with 100% chance of firing and then a group script that only spawns according to the chance you define in the script.