Jump to content

Recommended Posts

i do the character but i want add some transformation.

HALP ME PLIIZ I DONT UNDERSTAND how do this(((9(

i try get sample from here

https://steamcommunity.com/sharedfiles/filedetails/?id=1296876246

as turning

https://steamcommunity.com/sharedfiles/filedetails/?id=756552403

as boss

i try transform my character into stalker.

my mod

https://steamcommunity.com/sharedfiles/filedetails/?id=1612480252

 

Edited by RashChaos

I've never done anything like this, but I know many have. There should be threads on this forum about what you want. Also, if you want anyone to help you, it's very beneficial for them to have your mod in its current state if they're to tell you where to put things.

There are quite a few transformation mods out there. Woodie also has a transformation, so you can take a look at that. It's just changing the animation build to be the one used for one of the bosses, and changing the player's stats. This is the basics. You can find out how to change the animation build in the Woodie prefab, and you can figure out the animation build from whatever boss you want him to turn into. The stats are arbitrary to set.

local function transform(inst)
	-- You can use these ignores as you wish, but somehow you need to control, that the character cannot transform while dead or while in a busy state.
	-- Ignore while we are a ghost.
	if inst:HasTag("playerghost") then return end
	-- Ignore while we are busy.
	if inst.sg:HasStateTag("busy") then return end

	if not inst.transformed then
		-- Set the animation build for the transformed form here.
		-- Change the stats for the transformed character here.
	else
		-- Set the animation build for the original form here.
		-- Change the stats for the original character here.
	end

	inst.transformed = not inst.transformed

end

 

3 hours ago, Ultroman said:

There are quite a few transformation mods out there. Woodie also has a transformation, so you can take a look at that. It's just changing the animation build to be the one used for one of the bosses, and changing the player's stats. This is the basics. You can find out how to change the animation build in the Woodie prefab, and you can figure out the animation build from whatever boss you want him to turn into. The stats are arbitrary to set.


local function transform(inst)
	-- You can use these ignores as you wish, but somehow you need to control, that the character cannot transform while dead or while in a busy state.
	-- Ignore while we are a ghost.
	if inst:HasTag("playerghost") then return end
	-- Ignore while we are busy.
	if inst.sg:HasStateTag("busy") then return end

	if not inst.transformed then
		-- Set the animation build for the transformed form here.
		-- Change the stats for the transformed character here.
	else
		-- Set the animation build for the original form here.
		-- Change the stats for the original character here.
	end

	inst.transformed = not inst.transformed

end

 

uff thanks.I tried to do something like that but nothing happened. I think that it is too difficult for me))) I need to find a dude who could help me with this. Maybe you want to help me? )))

I don't really have time to be a tutor right now. Try what I've written. You need to call the "transform" function somewhere. Trigger it by something e.g. getting below 50 hunger, or something even more simple to begin with, just to make sure your transformation works. Woodie is a great example to look at. It does exactly what you need.

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...