1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Hero ability that give bonus to "Food produced"

Discussion in 'World Editor Help Zone' started by Bethezard, May 29, 2010.

  1. Bethezard

    Bethezard

    Joined:
    Feb 1, 2006
    Messages:
    13
    Resources:
    0
    Resources:
    0
    I want to make an ability with many levels for my builder/hero, that modifies "Food produced" for hero, or any other way, that modifies "Food avilable" for owner of that hero.
    I thought that I could modify "Strenght" (this builder is hero, only to get experience and allow player to choose an abilities/buffs for it, it is not for attacking, just as support unit) as "Army limit", create an ability, that gives strenght each level, but stumbled upon a problem to modify unit's "Food produced"...
    Use dummy units with different "Food produced" values, and when hero learns a skill, it "switches" those units... Kind'a dumb, cause - cant set dunamical values of it...

    Maybe anyone here can suggest any method to solve this?
     
  2. cboy123

    cboy123

    Joined:
    Aug 1, 2009
    Messages:
    663
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Do something like this
    • Strength Equals Food
      • Events
        • Unit - A unit Gains a level
      • Conditions
      • Actions
        • Player - Set (Owner of (Triggering unit)) Food max to (Strength of (Triggering unit) (Include bonuses))

    Add the conditions for your builder.
     
  3. Bethezard

    Bethezard

    Joined:
    Feb 1, 2006
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Thanks! I think it will do the job!

    UPDATE: But, not a MAX but CAP
     
    Last edited: May 29, 2010
  4. pRo.MAPMAKER

    pRo.MAPMAKER

    Joined:
    May 8, 2010
    Messages:
    147
    Resources:
    0
    Resources:
    0
    Surely dummies would work :S.

    Event - Unit Grows Level
    Condition - Unit Type [Army Builder]
    Action - Create dummy unit for triggering player.


    Dummy unit gives an amount of food produced.
    + have food cap to 300 in game constants.

    Does that not work?



    -pRo
     
    Last edited: Jun 1, 2010