Player properties

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Galaxy_Stranger
Posts: 1326
Joined: Sat Aug 16, 2003 11:42 pm
Location: Shropshire
Contact:

Player properties

Post by Galaxy_Stranger »

How do you script the player to recieve and lose items?

And what things can the player be given? I couldn't see any info on this in the EDITING section.
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Post by The Ultimate DooMer »

GiveInventory ("ActorName", amount);
TakeInventory ("ActorName", amount);
ClearInventory ()

To get actor names, go to the console and do this:

logfile log.txt
dumpclasses inventory
User avatar
Galaxy_Stranger
Posts: 1326
Joined: Sat Aug 16, 2003 11:42 pm
Location: Shropshire
Contact:

Logfile

Post by Galaxy_Stranger »

Thanx heeps!

Ok, a couple things - first - are ALL those things made available, or just the Doom items? Also, at the bottom of the log, it says "163 classes shown, 694 omitted" Does that mean that there are only 163 Inventory classes, or were there some missing from my list?
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Post by The Ultimate DooMer »

The 163 classes are all the things you can pick up and carry/use. (including Heretic/Hexen ones, which can be spawned in a map as long as you have their graphics in your wad). Note that the pistol is also included (so you can remove it and create an interesting scenario) and you can't remove powerups once you've been given them. If you have any pickups defined in the DECORATE lump, these will appear, too.

The other 694 are the rest of the things from the three games (monsters, scenery etc.) that you can't pick up.
User avatar
Lumpy
Posts: 256
Joined: Tue Jul 15, 2003 5:29 pm
Location: Pa,USA
Contact:

Post by Lumpy »

how do you just dump game specific stuff? Like the pickups for hexen
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Post by Kate »

I don't think there's an option for this but it would be a good feature to add.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Dumpclasses just dumps the list of classes defined in the source code. It knows nothing about what game a class is intended for. There are some classes that are abstract implementations of game specific-items, such as HereticWeapon, but most aren't.
Locked

Return to “Editing (Archive)”