Posted by CogKing on February 10, 1998 at 13:23:41:
In Reply to: Re: Adding to items.dat posted by Rishka on February 09, 1998 at 16:33:01:
> > Is it as simple as using one of the spare bins? How do I inform the system that it needs to use pow_newitem.cog and item_newitem.cog?? Thanks
> Is it as simple as using one of the spare bins? Yes and no...
> To "inform" the system that it needs to use the new item, you'll have to edit jkstrings.uni and add a new entry for your item. In jkstrings.uni, scroll down till you get to the part that says "ACTIVATE16" 0 "Field Light". Enter a new entry such as "ACTIVATE17" 0 "New Item Here". Don't forget to update the # of messages at the top of the file. Then open up items.dat and at the bottom add a new line -> f_jump 116 1 1 0x122 cog=item_newitem.cog
> That should work....
Huh ? This is a way to allow binding a key to the new item, but it is not
mandatory to create a simple new powerup. Jed reads items.dat and will
automatically add item_newitem.cog to your JKL, and pow_newitem.cog
should be defined as the class cog for your powerup in its template. As
Jed also reads the templates that cog will be in the JKL too.
-CogKing