Sarge
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > new inventory type
 
Author
All times are GMT. The time now is 03:50. Post New Thread    Post A Reply
gruntkiller4000
Warming Up


Posts: 14
Registered: 01-12


How do I make a proper inventory type like ammo, health, armor, etc. I want to add "Treasure" to Doom. I have added a Decorate class called Treasure : Inventory. I used SBARINFO to make the value and icon to appear on the screen and everything works. When I pick up the treasure it adds 100. BUT, when I inherit a new item to my new Treasure item, nothing seems to change. I set Inventory.amount to 100, but the treasure doesn't increase. I used the ZDoom Wiki a lot but it's not much help. Help please?

Old Post 01-17-12 14:36 #
gruntkiller4000 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
HavoX
Member


Posts: 407
Registered: 12-11


Did you look into the ZDoom wiki? It wouldn't hurt to do so (again)...

EDIT: Oh, I see you did look into the wiki. Maybe ACS would do the trick? I'm not that good in ACS but I presume that would be the case...

Old Post 01-17-12 14:39 #
HavoX is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7046
Registered: 07-07


Have you tried using ScoreItem as the base class for your Treasure? In SBARINFO, use "Score" as the value for DrawNumber.

Old Post 01-17-12 15:40 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
PRIMEVAL
Senior Member


Posts: 1400
Registered: 03-09


You can always take a look at the Wolfenstein 3D TC for Doom (GZDoom) to see what they did for their treasure.

__________________
Facebook | Twitter | Music on Facebook | Soundclick | Youtube | SoundCloud | ReverbNation

Old Post 01-17-12 17:21 #
PRIMEVAL is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gruntkiller4000
Warming Up


Posts: 14
Registered: 01-12


I downloaded Wolf3D a while ago. With the treasure on Wolfenstien 3D it executes an ACS script. I tried opening the WOLFLIB.o file in the .pk3 file but gibberish came up - I can't see anything. I opened it in XWE as an ACS type but it still didn't show. any tips?

Oh yes I'm using 7-zip to view pk3 files.

Edit: I'll try out the ScoreItem- it seems quite easy and it is the right function to use. thanks! I'll see if it works!

Last edited by gruntkiller4000 on 01-19-12 at 00:21

Old Post 01-19-12 00:14 #
gruntkiller4000 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gruntkiller4000
Warming Up


Posts: 14
Registered: 01-12


Thank you the score item really worked.

Last edited by gruntkiller4000 on 01-19-12 at 00:59

Old Post 01-19-12 00:51 #
gruntkiller4000 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 03:50. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > new inventory type

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory