Hello!
Well, it's a bit complicated!
The spawn script should be attached to a server zone (which could be "painted" over world tiles). This way the spawn script knows exactly where it should attempt to (re)spawn objects.
We have plenty of pre-defined zones (for each biome, radtowns, etc) but they have specific spawn scripts attached to them to ensure the proper spawn density, respawn intervals (usually every few minutes) and other parameters (such as tile padding between the objects of the same type).
You can read the scripts to understand how they're organized - all the relevant source code is located in <game folder>/Core/Core.cpk/Scripts/Zones
If you want to have 100% spawn of Pragmium source in a relatively small area (like 4x4 tiles) then you need to create a new spawn script file (C#) with spawn interval for example 1 tile (to ensure 100% spawn) and create a new zone script file (also C#) linking this spawn script file. Then you need to paint this new zone over the world. To test it you can use test button in the Editor Zones menu or run the game server (so it will actually initiate the game world and trigger the full world simulation including regular execution of all the zone scripts).
Regards!
Well, it's a bit complicated!
The spawn script should be attached to a server zone (which could be "painted" over world tiles). This way the spawn script knows exactly where it should attempt to (re)spawn objects.
We have plenty of pre-defined zones (for each biome, radtowns, etc) but they have specific spawn scripts attached to them to ensure the proper spawn density, respawn intervals (usually every few minutes) and other parameters (such as tile padding between the objects of the same type).
You can read the scripts to understand how they're organized - all the relevant source code is located in <game folder>/Core/Core.cpk/Scripts/Zones
If you want to have 100% spawn of Pragmium source in a relatively small area (like 4x4 tiles) then you need to create a new spawn script file (C#) with spawn interval for example 1 tile (to ensure 100% spawn) and create a new zone script file (also C#) linking this spawn script file. Then you need to paint this new zone over the world. To test it you can use test button in the Editor Zones menu or run the game server (so it will actually initiate the game world and trigger the full world simulation including regular execution of all the zone scripts).
Regards!