Announcement

Collapse
No announcement yet.

Article: Setting Trust and Regard in CTP2 scenarios

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Article: Setting Trust and Regard in CTP2 scenarios

    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, 14:06.

  • #2
    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...

    Comment


    • #3
      ...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...

      Comment


      • #4
        how do I delete the topic?

        Comment


        • #5
          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

          Comment


          • #6
            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

            Comment

            Working...
            X