OpenXcom Forum

Modding => Work In Progress => Topic started by: Nord on January 13, 2017, 02:51:47 pm

Title: Add item on map.
Post by: Nord on January 13, 2017, 02:51:47 pm
Hello.
Question: is there a way to add item to the battleground while generating map, other than create ufo-looking-like-terrain? Or else is there a way to mark these ufo on the globe as terror site (special mission)?
Title: Re: Add item on map.
Post by: Meridian on January 13, 2017, 03:14:56 pm
I've read your post several times, but I really don't understand what do you want to say.

Can you maybe give some concrete examples?
Title: Re: Add item on map.
Post by: Hobbes on January 13, 2017, 03:55:09 pm
I'm also confused like Meridian since you seem to be talking about 2 different things at the same time. But I'll try to explain both.

You can place items, like weapons or equipment on specific maps upon mission start with this:

Code: [Select]
    mapBlocks:
      - name: AREARAID00
        width: 50
        length: 50
        items:
          STR_DATA_DISK_1:
            - [6, 17, 3]

Where the [6, 17, 3] is the location on the AREARAID00 mapblock where the item will be placed.

Is this what you want to know?
Title: Re: Add item on map.
Post by: Nord on January 13, 2017, 05:34:08 pm
I'm also confused like Meridian since you seem to be talking about 2 different things at the same time. But I'll try to explain both.

You can place items, like weapons or equipment on specific maps upon mission start with this:

Code: [Select]
    mapBlocks:
      - name: AREARAID00
        width: 50
        length: 50
        items:
          STR_DATA_DISK_1:
            - [6, 17, 3]

Where the [6, 17, 3] is the location on the AREARAID00 mapblock where the item will be placed.

Is this what you want to know?
Yes, exactly. Many thanks.
Is it descripted somewhere, and i missed it again?
I saw only examples with same command in elerium/zrbite placement in ufo/uso, so thinked it is possible only there. Glad i was wrong.
Title: Re: Add item on map.
Post by: Solarius Scorch on January 13, 2017, 05:43:49 pm
You can find examples in such mods as: Area 51, Piratez, Final Mod Pack, X-Com Files.

I could post some examples here, but it's exactly the same syntax as Hobbes' example.

Or, if you are using OXCE+, you can use a random list:

Code: [Select]
      - name: CAVES_01
        width: 20
        length: 20
        randomizedItems:
            - position: [12, 15, 2]
              amount: 1
              mixed: true
              itemList: [STR_SKULL, STR_SPIDERWEB, STR_SPIDERWEB, STR_SPIDERWEB, STR_OLD_HANDBAG, STR_OLD_BOOT, STR_SHIV, STR_BONE, STR_BIG_BONE]

In this example, one item is taken at random from the list.
Title: Re: Add item on map.
Post by: Nord on January 13, 2017, 06:20:14 pm
Yup, thanks.
Title: Re: Add item on map.
Post by: Hobbes on January 13, 2017, 07:13:04 pm
Yes, exactly. Many thanks.
Is it descripted somewhere, and i missed it again?
I saw only examples with same command in elerium/zrbite placement in ufo/uso, so thinked it is possible only there. Glad i was wrong.

I actually only explained one of them but I'm glad I was right :)

This should be described on the maps section of the ruleset page at https://ufopaedia.org

As a general rule, everything you see on the vanilla rulesets can be used elsewhere. There are a few exceptions like the alien's Psi Weapon though.


Title: Re: Add item on map.
Post by: Nord on January 13, 2017, 09:39:18 pm
I actually only explained one of them but I'm glad I was right :)

This should be described on the maps section of the ruleset page at https://ufopaedia.org

As a general rule, everything you see on the vanilla rulesets can be used elsewhere. There are a few exceptions like the alien's Psi Weapon though.
By the way, (offtopic) psi-weapon can be divided to two: one for panic and second for control? It seems hardcoded...
Title: Re: Add item on map.
Post by: Yankes on January 13, 2017, 10:38:52 pm
In extended you can split them to separate weapons (+bonus one that do damage instead of MC or PA).