1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[Civ2] Change Terrain Event Help

Discussion in 'Civ2 - Technical Support' started by Blake00, Jul 11, 2020.

  1. Blake00

    Blake00 Prince Supporter

    Joined:
    Sep 24, 2016
    Messages:
    479
    Gender:
    Male
    Location:
    Australia
    Hi guys,

    In my Command & Conquer scenario I want to have an event on turn 5 (and then copy the code for some other turns too) where some squares convert to green Tiberium.

    I thought I'd be 'clever' and take some of the change terrain event code from the original Microprose FW Mars scenario and use it for what I want.. Metropolis also used the same commands in our HoMM scenario. I notice in all cases that there's 4 sets of coordinates all in one line with no spaces. eg..

    @IF
    TURN
    turn=5
    @THEN
    CHANGETERRAIN
    terraintype=4
    maprect
    112,16,118,16,118,22,112,22
    @ENDIF


    When I put in the exact same code and didn't touch the coordinates it worked and changed a patch of terrain to the one I wanted (my custom Tiberium one). However I'd like to change individual cells in different parts of the map instead of 1 clump. However when I changed the coordinates to various locations far away from each other it did not work.

    I thought that the code simply changed those 4 squares only however on closer inspection I can see that the change terrain code actually changes other squares too but they are in between the 4 specified.. almost like this event is actually a 'fill command' for all cells in between these coordinates.

    If that's the case then if I want to do single cells in different parts of the map then I'm going to need to do something different. Is the the 'maprect' subcommand for this 'fill' mode and I need some sort of other command to do individual cells? Or should I just be use the same code but only having one coordinate entry. Then make a copy of the event code for the next cell I want to change meaning I'd end up with heaps of copies of the code block just to change a hand full of cells lol.

    If its none of those then I'll need some help or a link to a guide as I just wanted to change single cells in different places at the same time so I need an example of that haha.
     
  2. Prof. Garfield

    Prof. Garfield Deity Supporter

    Joined:
    Mar 6, 2004
    Messages:
    2,775
    Location:
    Ontario
    Yes, I'm pretty sure you'll have to change each square with an individual event. From what I remember, the event changes all tiles within the specified square.

    These sorts of questions are probably better off in the Scenario League forum, which is the de facto scenario creation forum also. Tech support is more for getting the game running in the first place.
     
    Blake00 likes this.
  3. Blake00

    Blake00 Prince Supporter

    Joined:
    Sep 24, 2016
    Messages:
    479
    Gender:
    Male
    Location:
    Australia
    ahh my bad.. oh well it's probably the last question i have no anyway haha. Thanks for the info.
     

Share This Page