Results 1 to 4 of 4

Thread: Creating Traits or Ancillaries

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    penquin11's Avatar Biarchus
    Join Date
    Jul 2008
    Location
    Appalachian State University
    Posts
    689

    Default Creating Traits or Ancillaries

    I wanted to know if there was a way to create a ancillary or Trait, I understand that I would hav to edit the .loc as well as the Database tables, but I just simply wanted to know if anyone had sucessfully made a trait and was willing to explain how.

    EDIT: I have made a new discovery, I now believe that this is possible, but will be a PIA
    Last edited by penquin11; September 27, 2009 at 03:32 PM.


  2. #2
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: Creating Traits or Ancillaries

    It's possible. You need to edit trait_info, character_traits and character_trait_levels to add your trait (copy and adjust existing entries), then modify the loc by adding a onscreen text, then add a trigger to export_triggers.lua - but beware as most events don't work properly. A safe one we've found is the turn end event. The probability you enter doesn't really work, either, as CA has a bug in their random number generator code or the checking of its results.

    No thing is everything. Every thing is nothing.

  3. #3
    penquin11's Avatar Biarchus
    Join Date
    Jul 2008
    Location
    Appalachian State University
    Posts
    689

    Default Re: Creating Traits or Ancillaries

    Quote Originally Posted by alpaca View Post
    It's possible. You need to edit trait_info, character_traits and character_trait_levels to add your trait (copy and adjust existing entries), then modify the loc by adding a onscreen text, then add a trigger to export_triggers.lua - but beware as most events don't work properly. A safe one we've found is the turn end event. The probability you enter doesn't really work, either, as CA has a bug in their random number generator code or the checking of its results.
    Thnx, but how do i edit the lua and where exactly is it? Anyways I dont really need to make it have a trigger so to say...... I may just be making unique traits, like for Pyotr I i would like to give him a unique trait name "modernizor" in which gives a 25-40% bonus on research and industry income/wealth


  4. #4
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: Creating Traits or Ancillaries

    Quote Originally Posted by penquin11 View Post
    Thnx, but how do i edit the lua and where exactly is it? Anyways I dont really need to make it have a trigger so to say...... I may just be making unique traits, like for Pyotr I i would like to give him a unique trait name "modernizor" in which gives a 25-40% bonus on research and industry income/wealth
    It's either in patch.pack or in main.pack

    If you don't want triggers, you'll have to add the traits to the startpos. Not sure exactly how to do that, myself.

    No thing is everything. Every thing is nothing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •