With all the other mods getting made, I decided I would finally try to make one of my own. The problem is that I have no idea what I'm doing. I read on the Ruleset Reference section of UFOpaedia that damage types other than 0-9 will only affect terrain and not units, so I got the idea to make a Terrain Vaporizer that destroys terrain without damaging humans or aliens.
Here's the code I've got so far:
item:
- type: STR_TERRAIN_VAPORIZER
name: STR_TERRAIN_VAPORIZER
size: 0.2
costBuy: 5000
costSell: 2400
weight: 5
bigSprite: 400
floorSprite: 400
power: 200
damageType: 10
battleType: 4
blastRadius: 5
listOrder: 4050
ufopaedia:
- id: STR_TERRAIN_VAPORIZER
type_id: 4
section: STR_WEAPONS_AND_EQUIPMENT
listOrder: 4050
text: STR_TERRAIN_VAPORIZER_UFOPAEDIA
extraSprites:
- type: BIGOBS.PCK
files:
400: Resources/Terrain_Vaporizer.gif
- type: FLOOROB.PCK
files:
400: Resources/Terrain_Vaporizer.gif
extraStrings:
- type: en-US
strings:
STR_TERRAIN_VAPORIZER: Terrain Vaporizer
STR_TERRAIN_VAPORIZER_UFOPAEDIA: The Xcom Terrain Vaporizer effectively removes a wide range of environmental obstacles by utilizing a chemical explosion that is non-harmful to organic lifeforms.
I'm using the attached sprite for the weapon (yes it's just a TftD rip for now.)
The problem is that, when I enable the ruleset, the weapon doesn't function at all. It doesn't appear for purchase or in New Battle. It does appear in the in-game UFOpaedia, but trying to access it just causes the game to crash.
With all the other mods getting made, I decided I would finally try to make one of my own. The problem is that I have no idea what I'm doing. I read on the Ruleset Reference section of UFOpaedia that damage types other than 0-9 will only affect terrain and not units, so I got the idea to make a Terrain Vaporizer that destroys terrain without damaging humans or aliens.
Here's the code I've got so far:
item:
- type: STR_TERRAIN_VAPORIZER
name: STR_TERRAIN_VAPORIZER
size: 0.2
costBuy: 5000
costSell: 2400
weight: 5
bigSprite: 400
floorSprite: 400
power: 200
damageType: 10
battleType: 4
blastRadius: 5
listOrder: 4050
ufopaedia:
- id: STR_TERRAIN_VAPORIZER
type_id: 4
section: STR_WEAPONS_AND_EQUIPMENT
listOrder: 4050
text: STR_TERRAIN_VAPORIZER_UFOPAEDIA
extraSprites:
- type: BIGOBS.PCK
files:
400: Resources/Terrain_Vaporizer.gif
- type: FLOOROB.PCK
files:
400: Resources/Terrain_Vaporizer.gif
extraStrings:
- type: en-US
strings:
STR_TERRAIN_VAPORIZER: Terrain Vaporizer
STR_TERRAIN_VAPORIZER_UFOPAEDIA: The Xcom Terrain Vaporizer effectively removes a wide range of environmental obstacles by utilizing a chemical explosion that is non-harmful to organic lifeforms.
I'm using the attached sprite for the weapon (yes it's just a TftD rip for now.)
The problem is that, when I enable the ruleset, the weapon doesn't function at all. It doesn't appear for purchase or in New Battle. It does appear in the in-game UFOpaedia, but trying to access it just causes the game to crash.
Beware that BIGOBS has to be a 32x48 whereas a FLOOROB has to be a 32x40, and this could make game crash
So you have to create a second GIF
Take example of some created grenades somewhere on this site and check if you filled in all needed sections
Better to not place your gif directly under Resources, but create some folder and update your path also (not mandatory but a best practice)
About damage types, I have not enough experienced it to help you more...