Zippy-Egoboo Home EgoWiki > Documentation > SpawnTxt EgoWiki webs:
Main | TWiki | Know | Sandbox
Documentation . { Changes | Index | Search | Go }
Spawn.txt spawn.txt, located in the module.mod\gamedat folder, allows you to edit spawns for items, monsters, the hero and his\her items. It also allows you to give NPCs items. The spawn.txt file already has a basic bit of information included in its header.

Spawn.txt Basic Info This is a simple example of a spawn in a module. It will explain what the values and such mean.

// Name Slot Xpos Ypos Zpos Dir Mon Skn Pas Con Lvl Stt Gho Team

LUMPKIN 0: NONE 38 10.0 13.0 1.0 N 0 0 0 0 0 F F Evil TORCH: NONE 40 0 0 0 R 0 0 0 0 0 F F NULL CLAWS: NONE 42 0 0 0 L 0 0 0 0 0 F F NULL

Name: A name for the object. It seems it should be none for decorational items (ie: stools, tables, rugs, bookcases, etc), and NPCs may have a name associated with them (ie: in town.mod, the guards are named "a_Guard").

Slot: This is where the slot id number for an object goes. The slot ID number for items can be found in its data.txt. The object's slot IDs should start at 36, to leave room for the Heros to spawn. The hero's slots should be like so:

HERO 0: NONE 0 12.5 6.5 0.0 N 0 0 0 0 0 T F Good HERO 1: NONE 1 0 0 0 L 0 0 0 0 0 F F Null 2: NONE 2 0 0 0 R 0 0 0 0 0 F F Null HERO 3: NONE 3 0 0 0 I 0 0 0 0 0 F F Null HERO 4: NONE 4 0 0 0 I 0 0 0 0 0 F F Null HERO 5: NONE 5 0 0 0 I 0 0 0 0 0 F F Null HERO 6: NONE 6 0 0 0 I 0 0 0 0 0 F F Null HERO 7: NONE 7 0 0 0 I 0 0 0 0 0 F F Null HERO 8: NONE 8 0 0 0 I 0 0 0 0 0 F F Null

HERO 9: NONE 9 11.5 6.5 0.0 N 0 0 0 0 0 T F Good HERO 10: NONE 10 0 0 0 L 0 0 0 0 0 F F Null HERO 11: NONE 11 0 0 0 R 0 0 0 0 0 F F Null HERO 12: NONE 12 0 0 0 I 0 0 0 0 0 F F Null HERO 13: NONE 13 0 0 0 I 0 0 0 0 0 F F Null HERO 14: NONE 14 0 0 0 I 0 0 0 0 0 F F Null HERO 15: NONE 15 0 0 0 I 0 0 0 0 0 F F Null HERO 16: NONE 16 0 0 0 I 0 0 0 0 0 F F Null HERO 17: NONE 17 0 0 0 I 0 0 0 0 0 F F Null

HERO 18: NONE 18 12.5 5.5 0.0 N 0 0 0 0 0 T F Good HERO 19: NONE 19 0 0 0 L 0 0 0 0 0 F F Null HERO 20: NONE 20 0 0 0 R 0 0 0 0 0 F F Null HERO 21: NONE 21 0 0 0 I 0 0 0 0 0 F F Null HERO 22: NONE 22 0 0 0 I 0 0 0 0 0 F F Null HERO 23: NONE 23 0 0 0 I 0 0 0 0 0 F F Null HERO 24: NONE 24 0 0 0 I 0 0 0 0 0 F F Null HERO 25: NONE 25 0 0 0 I 0 0 0 0 0 F F Null HERO 26: NONE 26 0 0 0 I 0 0 0 0 0 F F Null

HERO 27: NONE 27 11.5 5.5 0.0 N 0 0 0 0 0 T F Good HERO 28: NONE 28 0 0 0 L 0 0 0 0 0 F F Null HERO 29: NONE 29 0 0 0 R 0 0 0 0 0 F F Null HERO 30: NONE 30 0 0 0 I 0 0 0 0 0 F F Null HERO 31: NONE 31 0 0 0 I 0 0 0 0 0 F F Null HERO 32: NONE 32 0 0 0 I 0 0 0 0 0 F F Null HERO 33: NONE 33 0 0 0 I 0 0 0 0 0 F F Null HERO 34: NONE 34 0 0 0 I 0 0 0 0 0 F F Null HERO 35: NONE 35 0 0 0 I 0 0 0 0 0 F F Null

This ensures that the same hero won't spawn twice, or two seperate hero's items won't be the same, etc. EgoMap doesn't do this correctly, so you must manually edit the hero spawn slots (as of April 11 2005, it may have been fixed since).

Xpos+Ypos: Xpos and Ypos are the cordinates of the item's\NPCs\etc spawn. It seems heroes should have .5 after the cordinate (does it really have too?). You can find the cordinates by using EgoMap and Cartman(?).

ZposThe? start elevation for the item\NPC\hero\etc. It also allows you to put an item atop of another item too (ie, you want a book on a table, so you set the Zpos for the book at 0.5, and the table at 0.0, so the book will fall unto the table when the module loads)

Dir: This is where the item should spawn in\on an item\NPC\hero\etc. THe different settings are:

L: The item will spawn in the npc's\hero's\etc left hand. (weapons, books, and shields are what usually is spawned here. It also is used for mounts with only one grip) R: The item will spawn in the npc's\hero's\etc right hand. (weapons, books, and shields are what usually is spawned here) I: The item will spawn in the NPC's\hero's\etc inventory. (usefull for keys)

Mon: Gives an item\NPC\hero\etc extra money.

Skn: The skin that should be used for this level. It can be 0-3, or 4 if you want the NPC's\hero's (does it work with a hero?)\item\etc skin to be random. (note: to make braziers alight, set its skin to 20...)

Pas: The passage the item refers too. This can be used for braziers\switches\etc to open doors.

Con: Content setting for the character. It is used for armor chests.

Lvl: This defines what level an NPC will start at in this module. It does not work on players.

Stt: This will show the the status bar for an NPC\Hero if set to T (ie, in the adventurer module, the Mother Mim and Brom are set to 'T'), otherwise it will not show the status bar for the NPC\Hero if it is set to 'F'.

Gho: It has the same as the book of the Unseen, (as of now, April 11, 2005) inverting the Hero's\NPC\etc skin... It should make them invisible actually.

Team: The NPC\Hero\etc team. The first letter is used (so Evil can also be E, and Frog and be F, etc). On capital letters are used, so e and E are the same ('e' and 'E' and 'Evil' and 'Elf' and 'elf' are the same as far as spawn.txt is concerned). 'N' or Null is already set to be nuetral (it should be used on items, and NPCs (only if NPCs will not be a part of any team!).

By: Veiva

-- ZefZ - 12 Apr 2005

Topic SpawnTxt . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision r1.1 - 12 Apr 2005 - 14:06 GMT - ZefZ
Parents: WebHome
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding EgoWiki? Send feedback.