OpenXcom Forum
Modding => Help => Topic started by: wcho035 on January 26, 2020, 02:52:04 pm
-
Hi, I am currently trying to implement alternate weapons used by attackers during a base invasion.
I am aware of
raceBonus:
STR_BANDIT_REGIMENT:
craftCustomDeploy: STR_ENZEPPELIN_BANDIT
missionCustomDeploy: STR_BASE_DEFENSE_BANDIT
ufos:
- type: STR_TRANSPORT
size: STR_MEDIUM_UC
sprite: 1
damageMax: 200
speedMax: 900
accel: 2
power: 90
range: 60
score: 600
reload: 28
breakOffTime: 1000
raceBonus:
STR_BANDIT_REGIMENT:
craftCustomDeploy: STR_TRANSPORT_BANDIT
missionCustomDeploy: STR_BASE_DEFENSE_BANDIT
hitBonus: 10
battlescapeTerrainData:
and etc
- type: STR_TRANSPORT_BANDIT
data: &transportbandit
- alienRank: 5
lowQty: 4
highQty: 8
dQty: 4
percentageOutsideUfo: 50
itemSets:
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_MIND_PROBE
- alienRank: 4
lowQty: 1
highQty: 2
dQty: 0
percentageOutsideUfo: 20
itemSets:
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_MIND_PROBE
- alienRank: 3
lowQty: 1
highQty: 2
dQty: 0
percentageOutsideUfo: 20
itemSets:
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_MIND_PROBE
- alienRank: 2
lowQty: 1
highQty: 2
dQty: 0
percentageOutsideUfo: 20
itemSets:
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_MIND_PROBE
- alienRank: 1
lowQty: 1
highQty: 3
dQty: 0
percentageOutsideUfo: 0
itemSets:
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_MIND_PROBE
- alienRank: 0
lowQty: 1
highQty: 1
dQty: 0
percentageOutsideUfo: 0
itemSets:
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_HARPOON_POD
- STR_MIND_PROBE
-
- STR_JET_HARPOONRAPID
- STR_HARPOON_POD
- STR_MIND_PROBE
- alienRank: 6
lowQty: 0
highQty: 2
dQty: 1
percentageOutsideUfo: 50
itemSets:
-
[]
-
[]
-
[]
- alienRank: 7
lowQty: 0
highQty: 2
dQty: 1
percentageOutsideUfo: 50
itemSets:
-
[]
-
[]
-
[]
width: 60
length: 60
height: 9
- type: STR_BASE_DEFENSE_BANDIT
data: *transportbandit
width: 100
length: 100
height: 6
#script: XBASE
terrains:
- XBASE
briefing:
palette: 0
background: BACK01.SCR
music: GMENBASE
points: 5
In the base defense mission, the game is using the original
- type: STR_BASE_DEFENSE
data:
etc
width: 100
length: 100
height: 6
#script: XBASE
terrains:
- XBASE
briefing:
palette: 0
background: BACK01.SCR
music: GMENBASE
points: 5
So, any clue as to why it does so? Am I missing something?
-
Put your ruleset into code blocks like everyone else please.
There is a forum syntax specifically for that, like this:
blah blah
-
How to for code blocks
And any luck? On why base defense for deployment is not using the correct one? Like
raceBonus:
STR_BANDIT_REGIMENT:
craftCustomDeploy: STR_ENZEPPELIN_BANDIT
missionCustomDeploy: STR_BASE_DEFENSE_BANDIT
STR_BASE_DEFENSE is triggered instead of STR_BASE_DEFENSE_BANDIT
-
use a toolbar icon for code block
or quote my previous example to see how the syntax works
or google it
-
Is this Syntax legal? Just yes or no will be enough.
- type: STR_DREADNOUGHTLAND
size: STR_VERY_LARGE
sprite: 6
damageMax: 3400
speedMax: 4800
accel: 6
power: 140
range: 60
score: 700
reload: 24
breakOffTime: 4000
raceBonus:
STR_UNDERWATERMIX:
craftCustomDeploy: STR_DREADNOUGHTLAND
missionCustomDeploy: STR_TERROR_MISSION_TFTD <-------------
missionCustomDeploy: STR_PORT_TERROR_TFTD <-------------
missionCustomDeploy: STR_ISLAND_TERROR_TFTD <-------------
missionCustomDeploy: STR_CARGO_SHIP_P1_TFTD <-------------
missionCustomDeploy: STR_CARGO_SHIP_P2_TFTD <-------------
missionCustomDeploy: STR_CRUISE_SHIP_P1_TFTD <-------------
missionCustomDeploy: STR_CRUISE_SHIP_P2_TFTD <-------------
hitBonus: 10
battlescapeTerrainData:
name: UFO07
mapDataSets:
- BLANKS
- UEXT2UFO
- UEXT3UFO
- UINT1
- UINT2
- UINT3
- U_EXT02
mapBlocks:
- name: UFO07L
width: 30
length: 30
items:
STR_ZRBITE:
- [17, 2, 0]
- [16, 3, 0]
- [3, 12, 0]
- [26, 12, 0]
-
If you keep ignoring me, I will ignore you.
I officially ask you, as a moderator, to use the code block formatting for any pasted ruleset.
-
? What is this ignoring? I personally have no idea what is happening. Perhaps a miscommunication issue?
I have gotten this to work actually.
In all the examples I have seen on the forum. I have yet to see an example like I did. Having multiple missionCustomDeploy like I did.
Anyway, I can't test it because I need to overhaul my Alienmission with all my new ufos before I could. I will probably get to it eventually.
Sighed. Thanks anyway.
-
Oh that.. sorry. Been a while since I posted a question. I will remember next time.
- type: STR_DREADNOUGHTLAND
size: STR_VERY_LARGE
sprite: 6
damageMax: 3400
speedMax: 4800
accel: 6
power: 140
range: 60
score: 700
reload: 24
breakOffTime: 4000
raceBonus:
STR_UNDERWATERMIX:
craftCustomDeploy: STR_DREADNOUGHTLAND
missionCustomDeploy: STR_TERROR_MISSION_TFTD <-------------
missionCustomDeploy: STR_PORT_TERROR_TFTD <-------------
missionCustomDeploy: STR_ISLAND_TERROR_TFTD <-------------
missionCustomDeploy: STR_CARGO_SHIP_P1_TFTD <-------------
missionCustomDeploy: STR_CARGO_SHIP_P2_TFTD <-------------
missionCustomDeploy: STR_CRUISE_SHIP_P1_TFTD <-------------
missionCustomDeploy: STR_CRUISE_SHIP_P2_TFTD <-------------
hitBonus: 10
battlescapeTerrainData:
name: UFO07
mapDataSets:
- BLANKS
- UEXT2UFO
- UEXT3UFO
- UINT1
- UINT2
- UINT3
- U_EXT02
mapBlocks:
- name: UFO07L
width: 30
length: 30
items:
STR_ZRBITE:
- [17, 2, 0]
- [16, 3, 0]
- [3, 12, 0]
- [26, 12, 0]
Happy?
-
Happy?
Happy.
And to answer the question, that syntax is not legal.
-
Damn. Is there a way to achieve what I seek differently? Different type of terror missions, using the dreadnought deployment template?
Or this deal is one per UFO only? Like 1 craftcustomdeploy and missioncustomdeploy per UFO?
-
I found an answer to the problem. May not what I like but it is the only way to make it happen. Thanks.