I want to clone this so that the player's character can't have access to the crown. how…
Private research annotation
Sign in to add a private research label or note.
- User
I want to clone this so that the player's character can't have access to the crown. how do i do this?
Assistant
Based on the provided code, there are a couple of ways to disable the crown in Noita Entangled Worlds:
- The simplest approach is to modify the player cosmetics system. Looking at
player_cosmetics.lua, there's already functionality to hide the crown using a flag file. You can create a file:
codemods/quant.ew/files/system/player/tmp/no_crownThe presence of this file will automatically hide the crown, as shown in this code from
player_cosmetics.lua:luaelseif ComponentGetValue2(comp, "image_file") == "data/enemies_gfx/player_hat2.xml" and ModDoesFileExist("mods/quant.ew/files/system/player/tmp/no_crown") then EntitySetComponentIsEnabled(player_entity, comp, false)- Another approach would be to add "CROWN" to the perk ban list if it's controlled via the perk system. Looking at , you can add perks to the ban list by:
- The simplest approach is to modify the player cosmetics system. Looking at
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.