搜索结果: *

  1. Bligglenuber

    Need help using Somebody's Gender Toggle script

    Hey, so I too was stuck in this position and, whether or not the original poster solved the issue aside, I'll detail what I did for future searches.

    The python file you need to modify is in fact 'module_game_menus.py'. I'm completely inexperienced with this so I added it to the camp menu to avoid potential issues, inserting it between the "Take an action" and "Wait here for some time" options.

    I edited the code slightly too - I capitalised the 'I' and I removed the requirement to have cheats activated for it to be usable since I'm not interested in other cheats. Here is my adapted version:

    插入代码块:
          ("change",[],"{!}Cheat: I wanna be the {little girl/guy}.",
           [(store_sub, "$character_gender", 1, "$character_gender"),
            (troop_set_type, "trp_player", "$character_gender"),
            (change_screen_return),
            ]
           ), 

    Since it's a pain to find the relevant section, here's the context for the code (which also shows you where I inserted the extra). You should be able to search for keywords or something from here to find the right bit:
    插入代码块:
    ("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"),
        ],
        [
          ("camp_action_1",[(eq,"$cheat_mode",1)],"{!}Cheat: Walk around.",
           [(set_jump_mission,"mt_ai_training"),
            (call_script, "script_setup_random_scene"),
            (change_screen_mission),
            ]
           ),
          ("camp_action",[],"Take an action.",
           [(jump_to_menu, "mnu_camp_action"),
            ]
           ),
          ("change",[],"{!}Cheat: I wanna be the {little girl/guy}.",
           [(store_sub, "$character_gender", 1, "$character_gender"),
            (troop_set_type, "trp_player", "$character_gender"),
            (change_screen_return),
            ]
           ),    
          ("camp_wait_here",[],"Wait here for some time.",
           [
               (assign,"$g_camp_mode", 1),
               (assign, "$g_infinite_camping", 0),
               (assign, "$g_player_icon_state", pis_camping),
               
               (try_begin),
                 (party_is_active, "p_main_party"),
                 (party_get_current_terrain, ":cur_terrain", "p_main_party"),
                 (try_begin),
                   (eq, ":cur_terrain", rt_desert),
                   (unlock_achievement, ACHIEVEMENT_SARRANIDIAN_NIGHTS),
                 (try_end),  
               (try_end),  
    
               (rest_for_hours_interactive, 24 * 365, 5, 1), #rest while attackable
                          
               (change_screen_return),
            ]
           ),
          ("camp_cheat",
           [(ge, "$cheat_mode", 1)
            ], "CHEAT MENU!",
           [(jump_to_menu, "mnu_camp_cheat"),
            ],
           ),
          ("resume_travelling",[],"Resume travelling.",
           [
               (change_screen_return),
            ]
           ),
          ]
      ),
    And hell, just to make it simpler here is a link to the python file itself and, better yet, a zip of the output text files to save you messing with python. With the python file you can replace the normal one with this and run the bat to generate the mod, more useful if you want to combine with other mods. With the zip you just need to duplicate your Native folder and extract the text files into the copy, overwriting any conflicts. You can then reinstall your various other mods on top of that.

    Hope you find this helpful if you come to be in the predicament I was.
后退
顶部 底部