Results 1 to 6 of 6

Thread: Article: Setting Trust and Regard in CTP2 scenarios

  1. #1
    silveraxe
    Settler
    Join Date
    04 Oct 2001
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    11:25

    Scenario creation

    Hi there folks.
    I would like to do a SCENARIO. where things have already happened you know.
    Are there some place to read about how to define regard,- trust,- startyear,- cost of researches and that kind of stuff?
    Last edited by silveraxe; May 3, 2002 at 14:06.

  2. #2
    DDowell
    Chieftain
    Join Date
    29 Nov 2001
    Location
    Västerås, Sweden
    Posts
    42
    Country
    This is DDowell's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    11:25
    Hi Silveraxe.

    There are plenty of posts about scenario editing. Why not start by looking at Apolyton CTP2 modification page (thats where I started) and maybe reading hexagonia's manual.
    So much to do in so little time...

  3. #3
    DDowell
    Chieftain
    Join Date
    29 Nov 2001
    Location
    Västerås, Sweden
    Posts
    42
    Country
    This is DDowell's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    11:25
    ...one more thing!
    Change the title of this thread to something more informative.
    If everyone posted threads like this, this forum will become rather cumbersome to use.
    So much to do in so little time...

  4. #4
    silveraxe
    Settler
    Join Date
    04 Oct 2001
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    11:25
    how do I delete the topic?

  5. #5
    Immortal Wombat
    Prince Immortal Wombat's Avatar
    Join Date
    30 Dec 2000
    Location
    in perpetuity
    Posts
    4,965
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    10:25
    Too late... 5 minutes has gone already.

    Hi, by the way

    The questions you have asked are really two things. You can alter scenarios by changing the text files, and more abstract stuff has to be done by SLIC coding.

    For all your text modding questions, Hexagonia's modders guide is the first place to look. For SLIC help, just ask, but it can be complicated, and you might want to hang around getting a feel for things first. If you haven't already done so, check out Joe Rumsey's guide to making a scenario. It should be in the readme file. (Or was that CtP1?)

    Anyway, in answer to your first questions:

    Startyear can be done by making a file called turnlength.txt in the scen0000 folder. See the Activision scenarios for the format to follow, and remember the line numbers.

    Cost of researches you can change in advances.txt, which you will need to put into the scen0000/default/gamedata folder.

    Regard and trust have to be done using SLIC code, an in-game scripting language. There are various threads around with a similar thing, but basically, make a blank file, and name it scenario.slc in the scen0000/default/gamedata folder. Then add into it these lines:
    Code:
    HandleEvent(BeginTurn) 'silveraxe_init_scen' pre{
    	LogRegardEvent(4, 1, -9999, 0, ID_SA_REGARD);
    	DisableTrigger('silveraxe_init_scen');
    }
    For the line with numbers in, the first is the player who's opinion you are setting (4). The second is the player to be the target of the hate/love (1) the third number is the' respect coefficient' so the bigger the number, the greater the love, the further negative you go, the more they'll hate you. The fourth is a 0. No reason...
    After that, the ID_SA_REGARD bit is the associated text, so you will need to make a scen_str.txt in scen0000/english/gamedata and add the line:
    Code:
    SA_REGARD  "insert text here. I don't think it displays anyway"
    Concrete, Abstract, or Squoingy?
    "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

  6. #6
    Immortal Wombat
    Prince Immortal Wombat's Avatar
    Join Date
    30 Dec 2000
    Location
    in perpetuity
    Posts
    4,965
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    10:25
    how do I delete the topic?
    You can't, but we all read everything anyway.
    Concrete, Abstract, or Squoingy?
    "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Bookmarks

Posting Permissions