Is that doom wiki article correct?

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
Numnzel
Posts: 161
Joined: Wed Jul 18, 2012 6:17 pm
Location: Empty space

Is that doom wiki article correct?

Post by Numnzel »

Well, in my map I will give some initial armor for the player, but when I applied the example of this article; (http://zdoom.org/wiki/GiveInventory) the result is not equal.

In the article they say:

"In the case of ammo, health and armor it will give the total number (so GiveInventory("Shell", 5) and GiveInventory("ShellBox", 5) will both give the player five shells.)"

But is not true, because when I applied the function in my map (GiveInventory("GreenArmor", 75);) the player's armor started at 7500 (100*75) and not 75. You can test it.

PD: And in the example they use the "Armor" object, instead of "GreenArmor" or "BlueArmor".
User avatar
jpalomo
Posts: 772
Joined: Mon May 17, 2010 9:45 am

Re: Is that doom wiki article correct?

Post by jpalomo »

Use the armor bonus instead of the green armor. Correct me if I'm wrong, but if you didn't have armor before you picked up an armor bonus it simply uses the same save percent as green armor.
User avatar
Numnzel
Posts: 161
Joined: Wed Jul 18, 2012 6:17 pm
Location: Empty space

Re: Is that doom wiki article correct?

Post by Numnzel »

jpalomo wrote:Use the armor bonus instead of the green armor. Correct me if I'm wrong, but if you didn't have armor before you picked up an armor bonus it simply uses the same save percent as green armor.
I don't have any problem with it, (I used one green armor, because I need 100 of armor, not 75. But as you say using 100 armor bonus have the same effect.) I only want to say the article is not correct.
User avatar
Ravick
Posts: 2049
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: Is that doom wiki article correct?

Post by Ravick »

But if GreenArmor has 100 'units' or "armor", if you give player 100 of these, he'll get 7500 units. o.õ
User avatar
Numnzel
Posts: 161
Joined: Wed Jul 18, 2012 6:17 pm
Location: Empty space

Re: Is that doom wiki article correct?

Post by Numnzel »

Ravick wrote:But if GreenArmor has 100 'units' or "armor", if you give player 100 of these, he'll get 7500 units. o.õ
That's true, is what I'm saying, the wiki says; if you give an amount of 100 green armors the players armor increments in 100.
Locked

Return to “Editing (Archive)”