DropItem Count parameter

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

DropItem Count parameter

Post by Major Cooke »

This is NOT the same as the amount parameter.

This code here:

Code: Select all

DropItem "CellPack", 128, 0, 4
is equivalent of performing:

Code: Select all

DropItem "CellPack", 128
DropItem "CellPack", 128
DropItem "CellPack", 128
DropItem "CellPack", 128
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: DropItem Count parameter

Post by Matt »

So this would drop 4 cellpacks each with a 128 chance of appearing? (and not a 128 chance of 4 cellpacks appearing?)
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: DropItem Count parameter

Post by Major Cooke »

Yes.
Post Reply

Return to “Feature Suggestions [GZDoom]”