Jump to content

Recommended Posts

first time modding, not very familiar with lua! i was thinking of making a character with ability to teleport around the world like wortox, costing them sanity and hunger and needing some cooldown (no soul collecting etc). how should i implement this in?

Edited by PhantomNoodless
more clarification

Try looking in wortox code, and lazy explorer code.
I never made a character mod before so theese are just tips where i would look if i would start creating character with teleport ability.
There's also this mod Steam::Enderman (steamcommunity.com) (This character has free teleport by pressing rmb)
I guess try using this mod code and somehow apply lazy explorer cost of the teleport.
For the cooldown i don't even know theres probably character mods that have some ability on RMB click that go on cooldown try finding that i guess?

Edit: oh wow i just noticed that people in comments say that teleport doesn't work oh well then

Edited by Fuzy8
im blind wth

If you have a personal ITEM for your character to make them teleport the simple "blink" teleportation can indeed by archived by the lazy explorer code alone

(that would be: inst:AddComponent("blinkstaff") <- but this comes with FREE teleportation. Right now I don't know how to add the costs to it. Also keep in mind that the blinkstaff component automatically adds the blinkstaff sound effect whenever you use the item to teleport.)

But then since you mentioned Wortox, I suppose you want your character to be able to teleport without an item, so I currently can't help with this. I just wanted to mention that having a blink-teleportation item can be an easy alternative, in theory.

If you want the animation for it to be similar to Wortox hopping, you can archive this by replacing the animation for "blinking" in the stategraph with e.g. Wortox portal in or out animation. Mind: This will also make the usual lazy explorer do the Wortox animation.

This was just meant as an example of what could be done as an alternative until someone else here can give an option that is closer to what you want your character to do.

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