DoomRL > Modding

What are the items numerical IDs?

(1/1)

SPTX:
I need the id to be numerical rather than a string and numerical IDs aren't listed on this page : http://doom.chaosforge.org/wiki/Modding:sID
On the same matter, how do you assign a numerical id to your own items?

Equality:
http://forum.chaosforge.org/index.php/topic,6233.msg54120.html#msg54120

here lib_items, lib_beings and lib_log. And a sample code for use.

Add sample code to your module, run custom game, exit game. Take a log from DoomRL root
Change (items) to (beings), repeat. Take second log.

SPTX:
Okay, that's quite messy on top of being big. I am going to make a text file out of this for easy referencing.

Kornel Kisielewicz:
Numerical ID's are assigned automatically by the game, and are not guaranteed to be the same between versions -- except for tracking something within a single game, numerical ID's should NOT be used.

Autoquark:
Apologies if you already know this, but you realise you can use


--- Code: ---items["pistol"].nid
--- End code ---

to get the numerical id from the string id?

Navigation

[0] Message Index

Go to full version