Spicy Cacodemon Posted August 15, 2021 I'd like to make some custom armor and health pickups. They don't need to replace the existing ones. I can't get it to work. BasicArmor, BasicArmorPickup, ArmorBonus, BasicArmorBonus, I don't know what to type. I keep getting Script error - @actor' is an unknown actor property. Can I get a DECORATE script for a new ACTOR that gives the player 1 armor and one that gives 1 health. 0 Share this post Link to post
Rifleman Posted August 16, 2021 (edited) Since this item already exists in the game, I'd say the simplest solution is to use inheritance and change just what you need. ACTOR OneArmor : ArmorBonus 31000 { //$Category CustomPowerups Armor.SaveAmount 3 } It does not replace anything. The number can be changed to most numbers up to 32000 something. The item is a regular armor bonus, but gives 3 armor. The part that starts with // puts the actor in a folder with the name of the category in editor, so it's easier to find. Let's say you want to give it a different sprite. ACTOR OneArmor : ArmorBonus 31000 { //$Category CustomPowerups Armor.SaveAmount 3 States { Spawn: SOUL ABCDCB 6 Bright Loop } } Now they look like Soulspheres. Same would go for the health bonus, you can check the actor definitions:https://zdoom.org/wiki/Classes:ArmorBonus https://zdoom.org/wiki/Classes:HealthBonus If you want to make a new one from scratch, just use inheritance from their parent classes and take a look at what properties they have. Or add some new. :) Edited August 16, 2021 by Rifleman 0 Share this post Link to post