搜索结果: *

  1. MB Coding How do I create and check new troop flag to increase wage or increase upgrade cost? Like tf_mounted

    Thanks you very much. That work wonder. Aslo yes, the operation was added by WSE now that I notice it.
  2. MB Coding How do I create and check new troop flag to increase wage or increase upgrade cost? Like tf_mounted

    You can’t add new operations, as those are links to the game engine. You use the API that is given to you.

    Check operations that can retrieve or check for flags in troops. If what you want is not there, then add your custom code. You can use slots or just a simple range/unit check like: if troop #3, #45 or #99 then do this.

    if you need further help just add to this thread.

    and get Lav’s modsys and use his header_operations as it has better documentation

    Thanks for the instruction. I found this nice oper and add it in:
    (troop_has_flag, ":troop_no", tf_elite),

    But it still return error: Unregconized operation code.
    Yet, this work:
    (troop_has_item_equipped, ":troop_id", itm_elite_arm_band),

    Was troop_has_flag a legit operation?
  3. MB Coding How do I create and check new troop flag to increase wage or increase upgrade cost? Like tf_mounted

    I tried to imitate the "troop_is_mounted" check and the flag "tf_mounted". But it only return error script: unrecognize opcode. Things that I did: - Add new troop flag: tf_elite - Add operation header: troop_is_elite - Add it in "can_fail_operations" - Use the operation...
后退
顶部 底部