OpenXcom Forum
Modding => Work In Progress => Topic started by: robin on July 13, 2014, 11:19:03 am
-
How to add Elerium and Alien Alloys (and more!) to a mission (so when it's completed you get them)?
-
How to add Elerium and Alien Alloys (and more!) to a mission (so when it's completed you get them)?
Put them on some tile using the new map items rules.
See this vanilla entry under terrains:
- name: UBASE_03
width: 20
length: 20
items:
STR_ELERIUM_115:
- [2, 14, 1]
The numbers in brackets are tile coordinates.
-
Thanks.
-
Note this is only available in the nightlies.
-
The normal way to do this is:
Map tiles can be mark of a type, there are 10 options:
UFO Power Source
UFO Navigation
UFO Construction
Alien Food
Alien Reproduction
Alien Entertainment
Alien Surgery
Examination Room
Alien Alloys
Alien Habitat
Most UFO walls tiles are marked as Alien Alloys and a UFO Power Source seems to have code attach to it to give 50 E115 also it seems to have code that meens it has a 75% to be distoryed when shot down instead of landed.
Also you could equpt Aliens to carry the gear you want to give to the player. for example the Alien on a very small is coded to always carry a mind probe inorder to give the player more loot and make the mission more worth while.
-
The normal way to do this is:
Map tiles can be mark of a type, there are 10 options:
UFO Power Source
UFO Navigation
UFO Construction
Alien Food
Alien Reproduction
Alien Entertainment
Alien Surgery
Examination Room
Alien Alloys
Alien Habitat
Most UFO walls tiles are marked as Alien Alloys and a UFO Power Source seems to have code attach to it to give 50 E115 also it seems to have code that meens it has a 75% to be distoryed when shot down instead of landed.
Also you could equpt Aliens to carry the gear you want to give to the player. for example the Alien on a very small is coded to always carry a mind probe inorder to give the player more loot and make the mission more worth while.
I see, thanks.
This "tile marking" is made through MCDEdit? Or can it be done with the ruleset?
-
It is done in the MCD file I'm guessing MCDEdit can set it. Its something I want to look into but have not done yet.
https://www.ufopaedia.org/index.php?title=MCD#Structure
at offset 59
The gear carryed by the Aliens is done in the rule set.