Jump to content

Can't seem to get the behaviors right


Recommended Posts

So me and @Neutral_Steve have been working on a mod that basically puts the tigershark and sharkittens from Shipwrecked in Don't Starve Together.

Everything works fine, except for one behavioral issue we couldn't quite figure out. The tigershark jumps. Constantly. 

I've modified a bit of the priority node code in tigersharkbrain.lua, and that helped a little bit, but the thing still jumps a lot and now it doesn't do its short range attack at all.

 

basically, how would I code the brain/prefab files so that jumping gets LOWEST priority, and so the thing only jumps if its target has attacked it, or under specific other circumstances.

 

 

one other issue, I believe this is a stategraph problem. Also about jumping.

When the shark falls and lands, everything looks fine, but when the shark begins to jump, it hovers in the air instead of rising off screen, and disappears suddenly as it begins its falling animation. How could I get the stategraph to make the animation move upwards?

 

sharkitten.zip

Edited by mf99k
Link to comment
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
 Share

×
  • Create New...