- Joined
- Jun 26, 2020
- Messages
- 1,928
Hello, I wanted to create a custom burrow that can load my custom peons using a modified version of the Battle Stations ability, but for some reason when the unit loads into the burrow the game crashes, I don't know why, do you know what is happening?
Wurst:
new UnitDefinition(ASSAULTER_BUILDER, 'opeo')
..setNormalAbilities("Ahrp")
..setRace(Race.Human)
..setGoldCost(0)
..setFoodCost(0)
..setAttacksEnabled(0)
..setStockMaximum(1)
..setStockReplenishInterval(1)
..setHitPointsMaximumBase(50)
..setStructuresBuilt(commaList(CRATES, BURROW))
..setButtonPositionX(0)
..setButtonPositionY(0)
..setHotkey("Q")
..setName("Builder")
..setTooltipBasic("Hire builder")
..setTooltipExtended("This builder can help you to build useful structures.")
/*let load = ABIL_ID_GEN.next()
new AbilityDefinitionBattlestationsChaos(load)
..setAllowedUnitType(1, ASSAULTER_BUILDER.toRawCode())*/
new BuildingDefinition(BURROW, 'otrb')
..setNormalAbilities(""/*load.toRawCode()*/)
..setAttack1DamageBase(9)
..setAttack1DamageNumberofDice(1)
..setAttack1DamageSidesperDie(1)
..setDefenseBase(1)
..setResearchesAvailable("")
..setUpgradesUsed("")
..setHitPointsMaximumBase(50)
..setBuildTime(7)
..setGoldCost(0)
..setLumberCost(0)
..setRequirements("")
..setButtonPositionX(1)
..setButtonPositionY(2)
..setHotkey("X")
..setName("Burrow")
..setTooltipBasic("Build burrow")
..setTooltipExtended("A burrow where the builders can enter to attack from it.")