Jump to content

Recommended Posts

@Hornete Sorry for the ping! I've been Wracking my brain trying to find any syntax errors or anything that would cause this, I'll attach my skins file and prefab. Any help would be awesome!

modmain.lua dark_scepter_skins.lua dark_scepter.lua

Sorry for the ping! I've been Wracking my brain trying to find any syntax errors or anything that would cause this, I'll attach my skins file and prefab. Any help would be awesome!

@Hornete

modmain.lua dark_scepter_skins.lua dark_scepter.lua

Okay, I've redone the tutorial up to the point when you create a skin for a item on the ground, however I noticed it's not showing up. My skinned item has two animation builds one for on the ground and one for equipped, I'm really not sure what I'm doing wrong and I checked through my prefab files to make sure everything was named correctly. Please help!

i have a problem beacause i keep getting SetGlobalErrorWidget isnt declared issue and i have absoulutely no idea what this means ( accidently posted second time )

image.png

Roseate Dark septer.zip client_log - Shortcut.lnk modmain.lua dark_scepter_skins.lua dark_scepter.lua modmain.lua dark_scepter_skins.lua dark_scepter.lua

Edited by KrzysiuDST

I don't know if anyone asked this, but I need to make a skin for my character's beard. Are there any tips on how to do this and is it possible?

I have this code:

local prefabs = {"beardhair",}

local function OnResetBeard(inst)
    inst.AnimState:ClearOverrideSymbol("beard")
	end 
local BEARD_DAYS = { 4, 8, 16 }
local BEARD_BITS = { 1, 3, 9 } 
local function OnGrowShortBeard(inst)    
inst.AnimState:OverrideSymbol("beard", "geralt_beard", "beard_short") 
inst.components.beard.bits = BEARD_BITS[1]end 
local function OnGrowMediumBeard(inst)   
inst.AnimState:OverrideSymbol("beard", "geralt_beard", "beard_medium")    
inst.components.beard.bits = BEARD_BITS[2]end 
local function OnGrowLongBeard(inst)    
inst.AnimState:OverrideSymbol("beard", "geralt_beard", "beard_long")    
inst.components.beard.bits = BEARD_BITS[3]end

local fn = function(inst)
  --
  --
  --
inst:AddComponent("beard")
	inst.components.beard.onreset = OnResetBeard    
	inst.components.beard.prize = "beardhair"
	inst.components.beard:AddCallback(BEARD_DAYS[1], OnGrowShortBeard) 
	inst.components.beard:AddCallback(BEARD_DAYS[2], OnGrowMediumBeard)
	inst.components.beard:AddCallback(BEARD_DAYS[3], OnGrowLongBeard)

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...