Results 1 to 6 of 6

Thread: Executing a script in game?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Executing a script in game?

    I sure this has been answered before but my search results give me everything there is to know about scripts except how to execute one while in the game?

    I want to create a text file giving my generals traits and I just want to be able to execute the script while in the game. Can someone lead me in the right direction?

    I apologize if this is redundant or in the wrong section.

  2. #2

    Default Re: Executing a script in game?

    Well, let me move your thread to the appropriate place, and our text wizards will set you straight.

    Moved.

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

    Default Re: Executing a script in game?

    Write it into the campaign script, there's no way to execute a script during the game unless you're using "show-me" scripts which requires the user to press a button - if that's what you want, you can do it however.

    No thing is everything. Every thing is nothing.

  4. #4

    Default Re: Executing a script in game?

    Thanks. So I could add a function to campaign_script.txt that would allow me to type something into the console to execute a list of specific commands?

    Would anyone be willing to give me the code for that?

    I want to basically to have a function that gives my generals and/or my enemies generals all the good traits. So instead of typing it all in for a new general I would just have one simple command.

    Example: command give_command "general"
    give_trait "general" GoodCommander 5
    give_trait "general" GoodAttacker 5
    give_trait "General" NaturalMilitarySKill 3
    etc.....

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

    Default Re: Executing a script in game?

    No, you can't. It's not as simple as that. The closest you can possibly get is use an advisor-triggered "show-me" script using 'give_trait "this" ...' as a command

    No thing is everything. Every thing is nothing.

  6. #6

    Default Re: Executing a script in game?

    Quote Originally Posted by alpaca View Post
    No, you can't. It's not as simple as that. The closest you can possibly get is use an advisor-triggered "show-me" script using 'give_trait "this" ...' as a command
    Looking through the campaign script I didn't find any advisor trigers? It was all "if I_Advisor*" this or "while I_Advisor*" that.

    So I am not clear on what you mean? Please enlighten me?

Posting Permissions

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