DarthArgus created page: Adding_NPCs

This commit is contained in:
swgnoobs
2015-11-13 03:03:42 -05:00
parent f4ba020325
commit a200356705

View File

@@ -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