Recommended Posts

m9m3x3    2

I want the character to be able to make a spider in the production compartment.

Also, only the spider I summon myself wants to be a friend.

(I'm using the translator, thank you for your time.)

Share this post


Link to post
Share on other sites
m9m3x3    2

thank you very much!

I want to ask you one more thing. How do I summon a monster who is already in the game, not a new one?

 image.png.7334e9bcb2b9991fca6ef38ae3990e49.png

Share this post


Link to post
Share on other sites
Yakuzashi    50

In the tutorial, there is item called anchor

Quote

local function bookonread(inst, reader)
            
    if ReqChakra(reader) then
         local creature = SpawnPrefab("creature")         
         creature.Transform:SetPosition(inst.Transform:GetWorldPosition())
         creature.components.follower:SetLeader(reader)    
        
         local puff = SpawnPrefab("collapse_small")
         puff.Transform:SetPosition(inst.Transform:GetWorldPosition())    
        
            reader.components.sanity:DoDelta(-45)
            reader.components.health:DoDelta(-15)
            
       else    
    inst.components.talker:Say("I have to rest...", 0.1,true)
    end
end

Change prefab "creature" into "spider".

Or anything you like.

 

But in order to create your own spider that listens to you, you need to modify something in the tutorial.

For example spider's lua inside prefab folder, so it looks like a spider...

Quote

        inst.AnimState:SetBank("wilson")
        inst.AnimState:SetBuild("creature")
        inst.AnimState:PlayAnimation("idle")

...change bank and build to "spider"

Share this post


Link to post
Share on other sites
Yakuzashi    50

If you don't know how to exactly do it then you can send me your character's mod folder in .zip and I will make it work. This way you can learn from results and understand everything.

Edited by Yakuzashi
typo
  • Like 1

Share this post


Link to post
Share on other sites

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