Author Topic: Adding rewards to a mission?  (Read 4942 times)

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Adding rewards to a mission?
« 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)?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Adding rewards to a mission?
« Reply #1 on: July 13, 2014, 10:25:21 pm »
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:

Code: [Select]
      - name: UBASE_03
        width: 20
        length: 20
        items:
          STR_ELERIUM_115:
            - [2, 14, 1]

The numbers in brackets are tile coordinates.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Adding rewards to a mission?
« Reply #2 on: July 13, 2014, 11:56:05 pm »
Thanks.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Adding rewards to a mission?
« Reply #3 on: July 14, 2014, 05:37:06 am »
Note this is only available in the nightlies.

Offline tnarg

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Adding rewards to a mission?
« Reply #4 on: July 14, 2014, 05:51:28 pm »
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.
« Last Edit: July 14, 2014, 07:29:35 pm by tnarg »

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Adding rewards to a mission?
« Reply #5 on: July 15, 2014, 12:53:39 pm »
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?

Offline tnarg

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Adding rewards to a mission?
« Reply #6 on: July 15, 2014, 01:46:43 pm »
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.