dracon887的最近内容

  1. dracon887

    Code not working? =S

    I mean, the structure of the menu itself...the code ^^
  2. dracon887

    Code not working? =S

    Thankyou,

    Yes i do realise that the native game has this option, this is just for learning purposes.

    I really do appreciate you commenting and helping out!

    EDIT: It all seems to work now, =), although i wonder 1 more thing: why is this kind of menu used? ("continue",[],"Continue",
  3. dracon887

    Code not working? =S

    插入代码块:
      ("establish_court",mnf_disable_all_keys,
        "To establish {s4} as your court will require a small refurbishment. In particular, you will need a set of tools and a bolt of velvet. it may also take a short while for some of your followers to relocate here. Do you wish to proceed?",
        "none",
        [
    	(str_store_party_name, s4, "$g_encountered_party"),
    	],
    	
        [
          ("establish",[
    	  (player_has_item, "itm_tools"),
    	  (player_has_item, "itm_velvet"),
    	  ],"Establish {s4} as your court",
           [         
    		(assign, "$g_player_court", "$current_town"),
    	    (troop_remove_item, "trp_player", "itm_tools"),
    	    (troop_remove_item, "trp_player", "itm_velvet"),
            (jump_to_menu, "mnu_town"),         
           ]),       
    	
    	
          ("continue",[],"Hold off...",
           [         
             (jump_to_menu, "mnu_town"),         
           ]),       
        ]
      ),
      
      ("camp_action_01",0,"Select an option:","none", #Menu i made without code in it.
      
     [
     #No code, should still work.
     ]),
    
    
      ("notification_relieved_as_marshal", mnf_disable_all_keys,
        "{s4} wishes to inform you that your services as marshal are no longer required. In honor of valiant efforts on behalf of the realm over the last {reg4} days, however, {reg8?she:he} offers you a purse of {reg5} denars.",
        "none",
        [
    	(assign, reg4, "$g_player_days_as_marshal"),
    	
    
    	
    	(store_div, ":renown_gain", "$g_player_days_as_marshal",4),
    	(val_min, ":renown_gain", 20),
    	(store_mul, ":denar_gain", "$g_player_days_as_marshal", 50),
    	(val_max, ":denar_gain", 200),
    	(val_min, ":denar_gain", 4000),
    	(troop_add_gold, "trp_player", ":denar_gain"),
    	(call_script, "script_change_troop_renown", "trp_player", ":renown_gain"),
    	(assign, "$g_player_days_as_marshal", 0),
    	(assign, "$g_dont_give_marshalship_to_player_days", 15),
    	(assign, reg5, ":denar_gain"),
    	
    	(faction_get_slot, ":faction_leader", "$players_kingdom", slot_faction_leader),
    	(str_store_troop_name, s4, ":faction_leader"),
    	(troop_get_type, reg8, ":faction_leader"),
    	],
    	
    	 [
          ("continue",[],"Continue",
           [         
             (change_screen_return),         
           ]),         
        ]
      ),

    This is the code i made and the code surrounding it.
    Please help me, i have tried everything i can think of.
    (I put the code at the bottom of the script, i'm calling it from another menu near the camp menu's.)

    Then it says "error in game menu /game menu/"

    I just can't seem to udnerstand the syntax used for mount and blade modding...
  4. dracon887

    Code not working? =S

    Hello,

    Even if a put a comma aftter the closing bracket it does not work...any idea's?

    Thanks for the help so far.

    "invalid syntax ]"

    EDIT: it seems to work when i use 1 "sub-menu" and 1 main menu (It's not actually a sub-menu since it is just a option to click...it's on the same screen.)

    Once again excuse my qeustions but i have 1 left, how do you add a extra menu?
    I can't seem to add a menu in the bottom of the module file and call it from another one, throws me a bunch of errors...
  5. dracon887

    Code not working? =S

      [(troop_add_item,"trp_player","itm_arrows"),
      ],

    Isn't the "]," part the closing bracket?

    Thanykou for responding!

    EDIT: I tried this: [(troop_add_item,"trp_player","itm_arrows"),]
    ],

    But this doesn't seem to work either...would you be able to provide me with the code or help a little bit more, thankyou in advance.

    Oh...and why is there sometimes a ]), used?
    Excuse me for the amount of qeustions i have.
  6. dracon887

    Code not working? =S

    HELP IS STILL NEEDED, LOOK DOWN BELOW I've been trying to get code to work to add a simple menu: ("camp",mnf_scale_picture,   "You set up camp. What do you want to do?",   "none",   [     (assign, "$g_player_icon_state", pis_normal),     (set_background_mesh, "mesh_pic_camp"),     ], [  ...
  7. dracon887

    Steam dedicated server?

    Hey, I'm looking to get the game on steam and was wondering if i could with 1 copy of the game on steam host a server on 1 pc and play it on another? Is this possible, if so would you reccomend me buying the game on steam or...?
  8. dracon887

    Admin purple popup?

    Hello, How exactly as a server admin do you show text to other players in purple in the top of their screens? Thankyou, dracon.
后退
顶部 底部