From a200356705ffacc0ffc1b4d9a4b2499d9adf1c0d Mon Sep 17 00:00:00 2001 From: swgnoobs Date: Fri, 13 Nov 2015 03:03:42 -0500 Subject: [PATCH] DarthArgus created page: Adding_NPCs --- Adding_NPCs.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Adding_NPCs.md b/Adding_NPCs.md index 171cec3..9c7fb88 100644 --- a/Adding_NPCs.md +++ b/Adding_NPCs.md @@ -45,6 +45,27 @@ Full Examples: -1899966201 0 object/tangible/ground_spawning/area_spawner.iff 0 865.623 80 1842.21 0.283795 0 0.921845 0 systems.spawning.spawner_area fltMaxSpawnTime|2|7.000000|fltMinSpawnTime|2|0.000000|fltRadius|2|0.000000|intDefaultBehavior|0|1|intGoodLocationSpawner|0|0|intSpawnCount|0|1|intSpawnSystem|0|1|registerWithController|0|1|strName|4|luke_skywalker|strSpawnerType|4|area|strSpawns|4|luke_skywalker|$| -1899966202 0 object/tangible/ground_spawning/area_spawner.iff 0 865.623 80 1845.21 0.283795 0 0.921845 0 systems.spawning.spawner_area fltMaxSpawnTime|2|8.000000|fltMinSpawnTime|2|0.000000|fltRadius|2|0.000000|intDefaultBehavior|0|1|intGoodLocationSpawner|0|0|intSpawnCount|0|1|intSpawnSystem|0|1|registerWithController|0|1|strName|4|rtp_leia_organa_summoned|strSpawnerType|4|area|strSpawns|4|rtp_leia_organa_summoned|$| ``` +Space.content_tools.npc_spawner Script +=== +Adding NPCs/Items with the space.content_tools.npc_spawner scripts begins in the following way, first look into the +``` +datatables/space_content/npc_spawners.tab +``` +for the NPC you want to add and note the OID of the NPC. + +Then you have to add an Spawnegg to the buildout File with the OID of the NPC you want to add, for example: +``` +3795724 1076952 object/tangible/space/content_infrastructure/ground_npc_spawner.iff 11 -3.61827 0.00999999 -8.8941 0.11057 0 0.993868 0 space.content_tools.npc_spawner $| +``` + +Here 3795724 is the OID of the NPC we want to add(this OID has to exist in npc_spawners.tab), 1076952 is a cell.iff, because the NPC in the example was spawned inside a building. (The cell.iff is a child of a building object) + +What if we need to spawn the NPC outside? +Just change the child OID of the ground_npc_spawner to 0 + +``` +3795724 0 object/tangible/space/content_infrastructure/ground_npc_spawner.iff +``` Dynamic World Spawns == TODO