# Cheat Menu for LittleMan # Adjust time, date, player, skills and NPC stats # Launched by button on bottom left of screen init -100 python: # Add cheat screen to overlay so it shows during gameplay if "cheat_button" not in config.overlay_screens: config.overlay_screens.append("cheat_button") # Cheat button - bottom left of screen screen cheat_button(): zorder 100 fixed: align (0.0, 1.0) # Bottom left xoffset 15 yoffset -15 textbutton "Cheat" action Show("cheat_menu"): text_size 20 text_color "#fff" text_outlines [(2, "#222")] background "#333" padding (16, 8) hover_background "#555" # Main cheat menu screen screen cheat_menu(): modal True zorder 200 default cheat_tab = "time" frame: xalign 0.5 yalign 0.5 xsize 920 ysize 780 background "#242424" padding (20, 20) vbox: spacing 12 xfill True # Header with title and close - nicely spread across width hbox: xfill True text "Cheat Menu" size 30 color "#fff" bold True yalign 0.5 font gui.roboto_medium_font textbutton "X" action Hide("cheat_menu"): text_size 24 text_color "#ff6666" text_bold True xalign 1.0 yalign 0.5 padding (16, 6) background "#3a2020" hover_background "#662222" # Tab buttons - restored to original order: Time, Player, Skills, NPCs hbox: spacing 8 textbutton "Time" action SetScreenVariable("cheat_tab", "time"): text_size 19 padding (22, 10) background ("#555" if cheat_tab == "time" else "#333") hover_background "#666" textbutton "Player" action SetScreenVariable("cheat_tab", "player"): text_size 19 padding (22, 10) background ("#555" if cheat_tab == "player" else "#333") hover_background "#666" textbutton "Skills" action SetScreenVariable("cheat_tab", "skills"): text_size 19 padding (22, 10) background ("#555" if cheat_tab == "skills" else "#333") hover_background "#666" textbutton "NPCs" action SetScreenVariable("cheat_tab", "npcs"): text_size 19 padding (22, 10) background ("#555" if cheat_tab == "npcs" else "#333") hover_background "#666" # Tab content area frame: xfill True ysize 570 background "#161616" padding (16, 16) if cheat_tab == "time": vbox: spacing 18 text "Time & Date" size 24 color "#7cf" bold True font gui.roboto_medium_font hbox: spacing 15 yalign 0.5 text "Day:" size 20 color "#ccc" xsize 80 yalign 0.5 font gui.roboto_medium_font textbutton "+1 Day" action Function(_cheat_add_day): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "-1 Day" action Function(_cheat_sub_day): text_size 17 padding (14, 8) background "#333" hover_background "#555" text " Current Day: [dayCount]" size 20 color "#fff" yalign 0.5 font gui.roboto_medium_font vbox: spacing 8 text "Set Weekday:" size 19 color "#ccc" font gui.roboto_medium_font hbox: spacing 6 textbutton "Mon" action Function(_cheat_set_weekday, 0): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Tue" action Function(_cheat_set_weekday, 1): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Wed" action Function(_cheat_set_weekday, 2): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Thu" action Function(_cheat_set_weekday, 3): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Fri" action Function(_cheat_set_weekday, 4): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Sat" action Function(_cheat_set_weekday, 5): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Sun" action Function(_cheat_set_weekday, 6): text_size 17 padding (14, 8) background "#333" hover_background "#555" hbox: spacing 15 yalign 0.5 text "Hour:" size 20 color "#ccc" xsize 80 yalign 0.5 font gui.roboto_medium_font textbutton "+1 Hour" action Function(_cheat_add_hour): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "-1 Hour" action Function(_cheat_sub_hour): text_size 17 padding (14, 8) background "#333" hover_background "#555" $ _hour_labels = {0: "Morning", 1: "Noon", 2: "Afternoon", 3: "Night"} $ _cur_h_label = _hour_labels.get(getattr(store, 'hourCount', 0), '?') text " Hour: [hourCount] ([_cur_h_label])" size 20 color "#fff" yalign 0.5 font gui.roboto_medium_font elif cheat_tab == "player": vbox: spacing 20 text "Player Stats" size 24 color "#7cf" bold True font gui.roboto_medium_font hbox: spacing 15 yalign 0.5 text "Money:" size 20 color "#ccc" xsize 110 yalign 0.5 font gui.roboto_medium_font textbutton "+100" action Function(_cheat_add_money, 100): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "+1,000" action Function(_cheat_add_money, 1000): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "+10,000" action Function(_cheat_add_money, 10000): text_size 17 padding (14, 8) background "#333" hover_background "#555" text " Current: $[PlayerMoney]" size 20 color "#55ff77" yalign 0.5 font gui.roboto_medium_font hbox: spacing 15 yalign 0.5 text "Energy:" size 20 color "#ccc" xsize 110 yalign 0.5 font gui.roboto_medium_font textbutton "Max Energy" action Function(_cheat_max_energy): text_size 17 padding (14, 8) background "#244d24" hover_background "#357035" text " Current: [PlayerEnergy] / 3" size 20 color "#fff" yalign 0.5 font gui.roboto_medium_font null height 10 vbox: spacing 8 text "Player Name:" size 20 color "#ccc" font gui.roboto_medium_font frame: background "#2a2a2a" padding (14, 10) xsize 450 input value FieldInputValue(store, "player") length 20 size 20 color "#fff" font gui.roboto_medium_font elif cheat_tab == "skills": vbox: spacing 20 text "Player Skills" size 24 color "#7cf" bold True font gui.roboto_medium_font for skill_name in ["Intelligence", "Charisma", "Strength"]: $ sk = store.FindSkillByName(skill_name) if hasattr(store, 'FindSkillByName') else None $ sk_lvl = getattr(sk, 'Lvl', '?') if sk else '?' hbox: spacing 15 yalign 0.5 text skill_name size 20 color "#ccc" xsize 160 yalign 0.5 font gui.roboto_medium_font textbutton "+1 Lvl" action Function(_cheat_skill_up, skill_name): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "-1 Lvl" action Function(_cheat_skill_down, skill_name): text_size 17 padding (14, 8) background "#333" hover_background "#555" textbutton "Max Lvl (10)" action Function(_cheat_skill_max, skill_name): text_size 17 padding (14, 8) background "#244d24" hover_background "#357035" text " Current Level: [sk_lvl]" size 20 color "#55ff77" yalign 0.5 font gui.roboto_medium_font else: vbox: spacing 10 xfill True yfill True hbox: xfill True yalign 0.5 text "NPC Stats (Relation / Anger)" size 22 color "#7cf" bold True yalign 0.5 font gui.roboto_medium_font hbox: spacing 10 xalign 1.0 yalign 0.5 textbutton "All Anger -> 0" action Function(_cheat_all_anger_zero): text_size 16 padding (14, 7) background "#3a3a3a" hover_background "#555" textbutton "Unlock All NPCs" action Function(_cheat_unlock_all): text_size 16 padding (14, 7) background "#244d24" hover_background "#357035" null height 4 viewport: scrollbars "vertical" mousewheel True draggable True xfill True yfill True vbox: spacing 8 for char_name, char_obj in _get_cheat_npc_list(): $ c = getattr(store, char_obj, None) $ rel = getattr(c, 'relationLvl', '?') if c else '?' $ ang = getattr(c, 'Anger', '?') if c else '?' $ is_known = getattr(c, 'know', False) if c else False hbox: spacing 10 yalign 0.5 text char_name size 18 color ("#ffffff" if is_known else "#888888") xsize 230 yalign 0.5 font gui.roboto_medium_font textbutton "Rel +1" action Function(_cheat_npc_rel, char_obj, 1): text_size 16 padding (12, 6) background "#333" hover_background "#555" textbutton "Rel -1" action Function(_cheat_npc_rel, char_obj, -1): text_size 16 padding (12, 6) background "#333" hover_background "#555" textbutton "Anger 0" action Function(_cheat_npc_anger, char_obj, 0): text_size 16 padding (12, 6) background "#333" hover_background "#555" if not is_known: textbutton "Unlock" action Function(_cheat_npc_unlock, char_obj): text_size 16 padding (12, 6) background "#244d24" hover_background "#357035" else: null width 80 text " Rel: [rel] | Ang: [ang]" size 17 color ("#55ff77" if is_known else "#888888") yalign 0.5 font gui.roboto_medium_font # Close button - centered at bottom with good size textbutton "Close" action Hide("cheat_menu") xalign 0.5: text_size 20 padding (36, 10) background "#333" hover_background "#555" init -50 python: # Full list of characters in LittleMan 0.68 _CHEAT_DEFAULT_NPCS = [ ("Alice", "AliceCharacter"), ("Angel", "AngelCharacter"), ("Asmi", "AsmiCharacter"), ("Bernice", "BerniceCharacter"), ("Bobblehead Lucifer", "BobbleheadLuciferCharacter"), ("Brittany", "BrittanyCharacter"), ("Bruce", "BruceCharacter"), ("Celeste", "CelesteCharacter"), ("Celine", "CelineCharacter"), ("Dwayne", "DwayneCharacter"), ("Flo", "FloCharacter"), ("Gabriel", "GabrielCharacter"), ("Gypsy", "GypsyCharacter"), ("Haze", "HazeCharacter"), ("Isaac", "IsaacCharacter"), ("Killer", "KillerCharacter"), ("Krystal", "KrystalCharacter"), ("Lana Croven", "LanaCrovenCharacter"), ("Lauren", "LaurenCharacter"), ("Lilly", "LillyCharacter"), ("Linda", "LindaCharacter"), ("Lucifer", "LuciferCharacter"), ("Maya", "MayaCharacter"), ("Molly", "MollyCharacter"), ("Naomi", "NaomiCharacter"), ("Olivia", "OliviaCharacter"), ("Ramon", "RamonCharacter"), ("Sylos", "SylosCharacter"), ] def _get_cheat_npc_list(): """Returns the sorted list of NPCs, adding any dynamic characters in store.Characters.""" result = list(_CHEAT_DEFAULT_NPCS) known = {var for _, var in _CHEAT_DEFAULT_NPCS} try: for c in getattr(store, 'Characters', []): var_name = getattr(c, 'Name', '') + "Character" if var_name not in known and hasattr(store, var_name): display = getattr(getattr(c, 'character', None), 'name', c.Name) result.append((str(display), var_name)) known.add(var_name) except: pass return result init python: def _cheat_add_day(): try: store.dayCount += 1 except: pass def _cheat_sub_day(): try: if store.dayCount > 0: store.dayCount -= 1 except: pass def _cheat_set_weekday(day_index): """Set weekday: 0=Mon, 1=Tue, 2=Wed, 3=Thu, 4=Fri, 5=Sat, 6=Sun. Game uses dayCount 0=Sun, 1=Mon, 2=Tue, ..., 6=Sat (US week order).""" try: dc = getattr(store, 'dayCount', 0) if hasattr(store, 'weekDay'): store.weekDay = day_index # Map our Mon=0..Sun=6 to game's Sun=0,Mon=1..Sat=6 game_day = (day_index + 1) % 7 base_week = (dc // 7) * 7 store.dayCount = base_week + game_day except: pass def _cheat_add_hour(): try: store.hourCount = (store.hourCount + 1) % 4 except: pass def _cheat_sub_hour(): try: store.hourCount = (store.hourCount - 1) % 4 except: pass def _cheat_add_money(amount): try: store.PlayerMoney = getattr(store, 'PlayerMoney', 0) + amount except: pass def _cheat_max_energy(): try: store.PlayerEnergy = 3 except: pass def _cheat_skill_up(skill_name): try: skill = store.FindSkillByName(skill_name) if skill and hasattr(skill, 'Lvl'): skill.Lvl += 1 except: pass def _cheat_skill_down(skill_name): try: skill = store.FindSkillByName(skill_name) if skill and hasattr(skill, 'Lvl') and skill.Lvl > 0: skill.Lvl -= 1 except: pass def _cheat_skill_max(skill_name): try: skill = store.FindSkillByName(skill_name) if skill and hasattr(skill, 'Lvl'): skill.Lvl = 10 except: pass def _cheat_npc_rel(char_obj_name, delta): try: char = getattr(store, char_obj_name, None) if isinstance(char_obj_name, str) else char_obj_name if char and hasattr(char, 'relationLvl'): char.relationLvl = max(0, char.relationLvl + delta) except: pass def _cheat_npc_anger(char_obj_name, value): try: char = getattr(store, char_obj_name, None) if isinstance(char_obj_name, str) else char_obj_name if char and hasattr(char, 'Anger'): char.Anger = value except: pass def _cheat_npc_unlock(char_obj_name): try: char = getattr(store, char_obj_name, None) if isinstance(char_obj_name, str) else char_obj_name if char and hasattr(char, 'know'): char.know = True except: pass def _cheat_all_anger_zero(): for _, char_obj in _get_cheat_npc_list(): _cheat_npc_anger(char_obj, 0) def _cheat_unlock_all(): for _, char_obj in _get_cheat_npc_list(): _cheat_npc_unlock(char_obj)