Help custom recruit

Users who are viewing this thread

vampirus

Recruit
I apologize for my English. I have in game_menus such question I  made the promissory note of recruitment of new individuals and all is in this OK only problem that when I have 0 denarii this and I can them recruit so and I have negative account then. It it what was one should was make in order to I would not can recruit army when I have za little denarii. I pass example:

    ("hire_viking",[],"Hire 10 Vikings (cost 2500 denars).",
      [
          (party_add_members, "p_main_party", "trp_viking", 10),
          (troop_remove_gold, "trp_player", 2500),
        ]),

If I write in bad section this sorry. I from mountain thank for help
 
    ("hire_viking",[],"Hire 10 Vikings (cost 2500 denars).",
      [
      (store_troop_gold,":money","trp_player"),
      (try_begin),
        (gt,":money",2499),
      (troop_remove_gold, "trp_player", 2500),         
      (party_add_members, "p_main_party", "trp_viking", 10),
      (else_try),
        (display_message,"str_money"),
      (try_end),
        ]),


You remember add a string call money, it should say something like: You havent coins!
 
Might just be easier to do it like:

(display_message,"@You don't have enough money."),

Just a minor note.
 
Back
Top Bottom