OpenXcom Forum
Modding => Help => Topic started by: wcho035 on November 29, 2019, 09:56:50 am
-
Hi, I am looking for a way to damage or lower an enemy's morale. Costuse only works on soldier that fired the weapon, not the target. Is there away?
-
ToMorale
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Item_Damage_Types (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Item_Damage_Types)
-
Thank you for the answer for the inventory question. For morale, I am experiencing no effect when implementing the code.
Here is the weapon.
- type: STR_MORALE_GRENADE
size: 0.2
costBuy: 950000
costSell: 50000
weight: 9
bigSprite: 1851
floorSprite: 680
handSprite: 1145
power: 5
damageType: 3
battleType: 4
blastRadius: 10
hitAnimation: 9
damageAlter:
ToMorale: 100.0
-
Your grenade isn't penetrating armor. Either increase power and use the rest of damageAlter to get the effect you want or use ArmorEffectiveness less than 1 to make it 'pierce' armor in the damageAlter.
-
Thank you guys, after upping the damage, it worked. Lastly can ArmorEffectiveness have negative values?
-
Why would you need armor to be less than 0% effective?
And what would it even mean?
-
With testing, I found with zero value for armoureffectiveness and low power damage, some of the stats change has no effect with script hooks. I am just wondering what -1 would do, out of curiosity. If there is always room to experiment, as I am not 100% sure of this parameter. Would this transfer to health damage completely. I have completed my testing with this feature. Thanks again for the help Meridian.
-
Best case it will do nothing, worst case it will crash.
-
Understood, thank you.