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".
Is that doom wiki article correct?
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.
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.
Re: Is that doom wiki article correct?
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.
Re: Is that doom wiki article correct?
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.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.
Re: Is that doom wiki article correct?
But if GreenArmor has 100 'units' or "armor", if you give player 100 of these, he'll get 7500 units. o.õ
Re: Is that doom wiki article correct?
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.Ravick wrote:But if GreenArmor has 100 'units' or "armor", if you give player 100 of these, he'll get 7500 units. o.õ