Editing Cave unit definition file
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
! Line || Example || Description || Comment | ! Line || Example || Description || Comment | ||
|- | |- | ||
− | | 1 || <code> | + | | 1 || <code>{</code> || Open unit entry || No comment |
|- | |- | ||
− | | 2 || <code> | + | | 2 || <code>1</code> || Version || <code>version</code> |
|- | |- | ||
− | | 3 || <code> | + | | 3 || <code>room_ike1_2_tsuchi</code> || Folder name of the unit to spawn || <code>foldername</code> |
|- | |- | ||
− | | 4 || <code> | + | | 4 || <code>7 6</code> || Width (7) and height (6) of the unit that's spawning (line 3); defines how many cave grid cells this unit || <code>dX/dZ ; cell size</code> |
|- | |- | ||
− | | 5 || <code> | + | | 5 || <code>1</code> || Room type: 0=dead end, 1=room, 2=hallway || <code>room type</code> |
|- | |- | ||
− | | 6 || <code>2</code> || The number of doors (exits) the unit has || <code>num doors</code> | + | | 6 || <code>0 1</code> || The unit's flags; {{unknown}} || <code>room Flags</code> |
+ | |- | ||
+ | | 7 || <code>2</code> || The number of doors (exits) the unit has || <code>num doors</code> | ||
|} | |} | ||
Line 30: | Line 32: | ||
| 1 || <code>0</code> || Door index || <code>index</code> | | 1 || <code>0</code> || Door index || <code>index</code> | ||
|- | |- | ||
− | | 2 || <code>0 0 0</code> || Direction, offset | + | | 2 || <code>0 0 0</code> || Direction, offset, and wpindex {{unsure}} || <code>dir/offs/wpindex</code> |
|- | |- | ||
| 3 || <code>1</code> || The number of doors this can link to || <code>door links</code> | | 3 || <code>1</code> || The number of doors this can link to || <code>door links</code> | ||
Line 40: | Line 42: | ||
! Line || Example || Description || Comment | ! Line || Example || Description || Comment | ||
|- | |- | ||
− | | 1 || <code>1258.716064 0 1</code> || Distance | + | | 1 || <code>1258.716064 0 1</code> || Distance, door ID, and tekiflag || <code>dist/door-id/tekiflag</code> |
|} | |} | ||
− | {{Credits|Jimble, Kai}} | + | {{todo|Offs and wp index need to be documented}} |
+ | |||
+ | [[File:Dir3.png|200px|thumb|right|An example of <code>dirs</code> set on <code>3</code> while all other room <code>dirs</code> are set on <code>2</code>.]] | ||
+ | |||
+ | '''Line 3:''' The number of door links. For example, <code>2 # door links</code>. | ||
+ | |||
+ | '''Line 4(+):''' Ddst/door-id/tekiflag; there are as many lines for these three numbers as there are door links (specified in line 3). For example, <code>849.951904 1 1 # dist/door-id/tekiflag</code>. | ||
+ | |||
+ | {{Credits|Jimble, Kai-Kai}} | ||
[[Category:Pikmin 2]] | [[Category:Pikmin 2]] | ||
[[Category:File formats]] | [[Category:File formats]] |