Results 1 to 11 of 11

Thread: Scripting Ideas

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Scripting Ideas

    This thread is for posting scripting ideas.

    --------------------------------------------------------

    Here's some from my local file:

    - A script using the Condition "EndedInEnemyZOC" to give a % chance of the enemy inflicting an attack on the tired troops. Possibly give the general who ended in the ZOC a trait which is checked for when a battle is opened to give the AI an advantage.

    - Find a way to remove the ability to ransom soldiers from Japanese and other "honorable" factions. Possibly uses the conditions "NumCapturedCharacters" and "NumCapturedSoldiers" with like a >1 parameter to impress a click on "Release" on the ransom scroll.

    - The "invulnerable_general" scripting command leads to possibilities with characters like Chinggis Khan or Minamoto no Yoritomo and other important figures that shouldn't randomly die off in a battle.

    *****- Instrinsic EDB Function. Declare counter for the ability to build every building type in the EDB, and use the script to validate those counters based on different criteria depending on the faction that is being played as. For example, the criteria will be unfulfilled as a Japanese clan prior to defeating the other clan and proclaiming Shogunate status.*****

    Also have considered a lot of different ways to go about a supply line script.

  2. #2
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Scripting Ideas

    - Need to write a script which lets player convert religion. Should not be hard, but will need to determine what the effects constitute. See this thread for quick reference of the Kingdoms example.

    - Region significance script. This one is already planned though the details need to be ironed out. Suffice it to say bad things happen when you lose key regions, and good when you gain them. Losing a faction key area hurts more than losing a key area of another faction.

  3. #3

    Default Re: Scripting Ideas

    hmm....I have an idea how about making a script so that mongols doesn't get any bad things if the conquer others countries ex: if the mongols take a province from the ghurids it won't be rebelious just coz of that they have another religion..this would be historical. since the mongols themselfes had more than one religion...
    ''I am the punishment of God...if you had not commited great sins, God would not have sent a punishment like me upon you'' Genghis Khan

    ''It is not sufficient that I suceed - all others must fail.” - Genghis Khan

    ''History shows that there are no invincible armies.'' - Joseph Stalin

    ''In the Soviet army it takes more courage to retreat than advance.”
    Joseph Stalin

    ''Men in general are quick to believe that which they wish to be true.” - Gaius Julius Caesar

  4. #4
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Scripting Ideas

    I have a little bit more free time for a while, so if you guys can tell me the Number 1 script idea you want to implement I can set it up for a few regions or factions or whatever it ends up being and then one of you can replicate it for the rest.

  5. #5
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Scripting Ideas

    Quote Originally Posted by GrnEyedDvl View Post
    I have a little bit more free time for a while, so if you guys can tell me the Number 1 script idea you want to implement I can set it up for a few regions or factions or whatever it ends up being and then one of you can replicate it for the rest.
    Okay I'll get back to you on it, in the process of re-thinking my impractical scripts and trying to stick to what's practical.

    EDIT: Actually I know which script I could use help on, I'll get you the details tomorrow on it. We've discussed it before and I think it's the only script I'm having any conceptual stumbling with, but one of the more intrinsic methodology speaking.
    Last edited by Augustus Lucifer; March 05, 2009 at 11:10 PM.

  6. #6

    Default Re: Scripting Ideas

    @Chris: I think it is possible to do this, I never tried it, but would be a really nice ad for the atmosphere.

    My suggestion is, too add sound files, when showing up the details of a building on the campaign map.

    So you right click on a building card to make the pop up window with building details appear. And right when the window pops up, there should be a specific building sound. For an example: Stables, whinnying horses, barracks, soldiers marching

    There is a event script for playing sound files:

    ;
    ;
    ; event { name } {3d/1d} {streamed} { probability } { volume }
    ; { minDist } { maxDist } { minPitch } { maxPitch }
    ; { looped } {randomdelay} { probradius } { pan }
    ; { pref sfx|speech|music }
    ; folder { base path }
    ; {sample name} modifiers (any of probability, volume etc)
    ; {sample name} ...
    ; end
    I don't know in which file the scripts for building details window are.

  7. #7

    Default Re: Scripting Ideas

    interesting, no idea if it could work or not. I do like the idea but aren't you also creating more work for yourself !

  8. #8

    Default Re: Scripting Ideas

    Quote Originally Posted by Yelü Dashi View Post
    interesting, no idea if it could work or not. I do like the idea but aren't you also creating more work for yourself !

    This wouldn't be much more work for myself. I own about 50 gigs of Ambient sounds, so I wouldn't have to record all of them.

  9. #9
    S-te-Fan's Avatar Primicerius
    Join Date
    Jun 2008
    Location
    Diessen, The Netherlands, Near the belgium border.
    Posts
    3,905

    Default Re: Scripting Ideas

    WTF 50 GB...

    Would be cool to hear something else then the standard M2TW sounds.

  10. #10
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Scripting Ideas

    I haven't had a chance to look into the event sound files thing yet, but I will say one of the problems I see inherent in it. That is that the game doesn't seem to be able to know if a scroll opened pertains to a particular building. I'm sure I could find a "Building Details" scroll to base a condition on, but it references the opening or closing of the scroll itself, not the contents of the scroll. However, there does seem to be some recognition because the advisor knows how to recommend buildings to a person, so I'll explore that avenue.

  11. #11

    Default Re: Scripting Ideas

    Quote Originally Posted by Wundai View Post
    Another possibility is to have special research/technology that occurs during or after Natural Disasters.
    Great idea.

    I think about that in this style, as a script:

    "Emperor a terrible earthquake destroyed our territory, how should we react to it?

    -do a ceremony for the forefathers
    -build up the economy immediately
    .
    .
    ."

    What do you think about it, Chris?

Posting Permissions

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