OpenXcom Forum

Modding => Work In Progress => Topic started by: robin on March 19, 2018, 10:42:23 pm

Title: OXC/OXCE+ map "groups" confusion
Post by: robin on March 19, 2018, 10:42:23 pm
from Ruleset Reference Nightly:

Code: [Select]
List (or single number) of groups this mapblock belongs to (used in mapscripts)

default usage:

    0 - Default
    1 - Landing Zone (for placing X-COM / alien craft) (used in addcraft/ufo command)
    2 - E-W Road (for city maps) (used in addline command)
    3 - N-S Road (for city maps) (used in addline command)
    4 - Road Crossing (for city maps) (used in addline command)

But... isn't "2" for XCom entry-exit maps?
Example, from the default ruleset:

Code: [Select]
      - name: UBASE_04
        width: 10
        length: 10
        groups: 2
        revealedFloors: 1

which is the alien base map with the green glowing floor, where xcom units are spawned.

I've always been using "2" in my custom terrains too, for entry-exit maps (and it seems to work).
But reading the Ruleset Reference Nighlty it says that "2" is for E-W roads.
What should I use then?

Title: Re: OXC/OXCE+ map "groups" confusion
Post by: ohartenstein23 on March 19, 2018, 10:53:54 pm
You can use whatever numbers you want, it all depends on what groups are set on the map blocks themselves.  This is just the default convention set for most terrains to let mapscripts be as consistent as possible.  Just make sure you don't combine the addLine horizontal command with default groups and setting entry/exit as group 2.
Title: Re: OXC/OXCE+ map "groups" confusion
Post by: Nord on March 23, 2018, 03:52:35 am
Only rule: mapblocks from group 1 is used to place under your craft, when you use
 
Code: [Select]
    - type: addCraftcommand.
Title: Re: OXC/OXCE+ map "groups" confusion
Post by: maymac789 on March 24, 2018, 08:06:46 am
hello, i'm new, i want to learn, but i don't know about it, i'm sorry when i posted my post on here, i don't want to create new topic, it is spam, please share me document to learn. thanks
Title: Re: OXC/OXCE+ map "groups" confusion
Post by: Solarius Scorch on March 26, 2018, 11:31:10 am
hello, i'm new, i want to learn, but i don't know about it, i'm sorry when i posted my post on here, i don't want to create new topic, it is spam, please share me document to learn. thanks

Everything is here:
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)