Starbound

Starbound

Not enough ratings
Weapon Projectile - NPC Spawner (for modders)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
56.528 KB
Oct 6, 2021 @ 3:10pm
1 Change Note ( view )

Subscribe to download
Weapon Projectile - NPC Spawner (for modders)

In 1 collection by swefpifh
Projects for aspiring modders
6 items
Description
♦ Compatibility with v1.4.4
♦ Raw files : https://github.com/swefpifh/Starbound-Projectile-NPC-Spawner

Mod Pack Permissions
Anyone can use this mod in their mod compilation without the author's consent.
Mod Assets Permissions
Anyone can alter/redistribute the mod's assets without the author's consent.

If you want test this projectile NPC spawner with an explosive grenade, you can use this command ingame in admin mode :
    /spawnitem swefGrenadeNPC

INFORMATIONS :
∴ Open the raw file named "swefProjectileNPC.projectile" and modify informations by yours.

∴ You can duplicate the .projectile file. After, change informations inside new file(s) (projectile's id, species npc, etc) for create a new projectile spawner.

npcSpecies : ["human"] // Race of NPCs. You can use multiple race. Ex: ["human", "avian", etc] npcType : ["foundryguard"] // ID of NPC to spawn. You can spawn multiple NPC in the list. Ex: ["npc01", "npc02", etc] npcThreatLevelmin : 1 npcThreatLevelmax : 6 // Select the minimum and maximum threat level. This will generate a selection in the min and max interval. ex: min:1, max:3, your npc will be able to spawn randomly with a threat level 1, 2 or 3. If you write 0 in both cases, or if you enter a number in the maximum value that is lower than the minimum value, the level will adapt to the instance. position : [0, 0.5] // Relative position to spawn at positionVariance : [10, 0] // [x,y] Size of randomized spawn area, centered on position stock : -1 // Total number of spawns, -1 for infinite frequency : [2.0, 5.0] // Cooldown time between spawns (random within range) trigger : "wire" // Options include "wire", "interact", "break", null (periodic) outOfSight : false // Only spawn where the player can't see


∴ In "swefEntityNPC.npctype" .projectile file. I have added a variable named "beamEffect" for display or not the teleporter effect when npcs appears in the battlefield.

∴ You can create your own NPC, but don't forgot to write the "beamEffect" variable in "scriptConfig".

"beamEffect" : false, // true: display the teleporter beam effect // false: hide the teleporter beam effect


∴ Open "swefGrenadeNPC.thrownitem" and find "projectileType" for write your projectile ID.

"projectileType" : "swefProjectileNPC",
1 Comments
Hemiptera Jul 7, 2022 @ 8:19pm 
Awesome! Thank you so much, this is exactly what I needed! :)