Results 1 to 4 of 4

Thread: It is possible to differ unit stats with scripts ?

Hybrid View

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

    Default It is possible to differ unit stats with scripts ?

    Hi all,

    I am curious if it is possible to change units stats with some kind of script. It is obvious that some stats morale for example can be changed with effects of other units (eagle inspires, or chariots cause fear etc). Is this morale thing is hard coded or it can be applied to other stats of units ? :hmmm:

    Thanks in advance

  2. #2

    Default Re: It is possible to differ unit stats with scripts ?

    No, you can't directly make units stronger/weaker. You can give morale/command bonuses/penalties to generals, but that's about it.

  3. #3
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: It is possible to differ unit stats with scripts ?

    Only possible in historical battles, where you know the starting army compositions and can label the individual units before the battle starts.

    Commands:
    Quote Originally Posted by CA
    ---------------------------------------------------
    Identifier: unit_set_morale
    Parameters: unit_label morale_level (beserk/impetuous/high/firm/shaken/wavering/routing)
    Description: sets and locks the unit's morale level
    Sample use: unit_set_morale carthaginian_peasants wavering
    Class: UNIT_SET_MORALE
    Implemented: Yes
    Author: Robbie
    ---------------------------------------------------
    Identifier: unit_unset_morale
    Parameters: unit_label
    Description: unlocks the unit's morale, the game will retake control and update the morale normally
    Sample use: unit_unset_morale peasants4
    Class: UNIT_UNSET_MORALE
    Implemented: Yes
    Author: Robbie
    ---------------------------------------------------
    Identifier: unit_set_weapon_upgrade
    Parameters: unit_label new_level
    Description: sets the unit's weapon upgrade (0-3)
    Sample use: unit_set_weapon_upgrade spearmen1 3
    Class: UNIT_SET_WEAPON_UPGRADE
    Implemented: Yes
    Author: Robbie
    ---------------------------------------------------
    Identifier: unit_set_armour_upgrade
    Parameters: unit_label new_level
    Description: sets the unit's armour upgrade (0-3)
    Sample use: unit_set_armour_upgrade spearmen1 3
    Class: UNIT_SET_ARMOUR_UPGRADE
    Implemented: Yes
    Author: Robbie
    ---------------------------------------------------
    Identifier: unit_set_experience
    Parameters: unit_label new_experience_level
    Description: sets the specified unit's experience level (0-9)
    Sample use: unit_set_experience roman_general 7
    Class: UNIT_SET_EXPERIENCE
    Implemented: Yes
    Author: Robbie
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  4. #4

    Default Re: It is possible to differ unit stats with scripts ?

    Thanks lads, I thought since morale is also a stat of unit and it can be changed during battle why not other stats. But it seems hardcoded.

Posting Permissions

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