Results 1 to 3 of 3

Thread: New Resources

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default New Resources

    hi guys


    i wanted to make a rather advanced script, it would be like this:

    new buildings will produce resources, like stone mines produce marble or whatever stone (the bigger the building level, the more it produces), or blacksmith produce weapons

    then that is stockpiled each turn

    and let's say you recruit a unit, the weapons stored would be reduced from the blacksmith stockpile

    or when you build a wall or stone building, the stone/marble stockpile resources would be discounted to use to build

    and so on..


    can something like this be done?
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  2. #2
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: New Resources

    Hmm interesting

    I'd try something along these lines:
    use
    Identifier: FactionBuildingExists
    Trigger requirements: faction
    Parameters: logic token, test level
    Sample use: FactionBuildingExists >= governors_house
    Description: Test to see if the faction has a building at a particular level, logic token currently only works with =, >= and >
    Battle or Strat: Strat
    Class: FACTION_BUILDING_LEVEL_EXISTS_TEST
    Implemented: Yes
    which would test if the building required exists in the faction.

    (could you use that to give a total somehow in the faction?)
    (I'm assuming that the faction would move stone wherever required?)

    then at factionendturn ? increment a counter such faction_stone_reserves + 4 (or whatever)

    then in the EDB make requirement that building x requires faction_stone_reserves > 4 (or whatever)
    When when a building is placed in the building queue it depletes the faction_stone_reserves by the required amount.

    (But don't ask me to code it or if it would work.)

  3. #3
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: New Resources

    GED made a script about marble imports, but i guess there was no stockpile of marble required, but yes a building unlocker

    like

    Press X and waste Y money --> *trigger happens* --> Unlocks A and B buildings to the construction list


    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


Posting Permissions

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