Lottita Posted January 6, 2023 Share Posted January 6, 2023 Hi there! I posted earlier and someone very kind gave me this line of code, but I'm uncertain on where to put it and how to make it run with my custom character. I am using the EMC template. I don't wish to edit my character's code outside of making her essentially act as wendy with different animations and speech (I already set up the animations and artwork for the mod, since I'm an artist- not a programmer.) This is the line I was provided with. local function fn() local wendy=Prefabs.wendy.fn()--defined in scripts/prefabs/wendy.lua and ... return wendy end attached are my current prefab files for my character (unedited EMC template files besides the new character's name). Also attached is my mod main file, incase that has anything to do with this. Any help would be so greatly appreciated! I spent all day looking at other popular mods made by experts, trying to learn lua, and still have nowhere to go. I've been attempting all day and it's time I swallow my pride and ask for some help lolol thank you SO much for any assistance! <3 lottie.lua modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/145464-where-do-i-put-this-local-function-line-of-code-to-get-my-custom-character-to-have-the-abilities-of-wendy/ Share on other sites More sharing options...
Haruhi Kawaii Posted January 6, 2023 Share Posted January 6, 2023 24 minutes ago, Lottita said: Hi there! I posted earlier and someone very kind gave me this line of code, but I'm uncertain on where to put it and how to make it run with my custom character. I am using the EMC template. I don't wish to edit my character's code outside of making her essentially act as wendy with different animations and speech (I already set up the animations and artwork for the mod, since I'm an artist- not a programmer.) This is the line I was provided with. local function fn() local wendy=Prefabs.wendy.fn()--defined in scripts/prefabs/wendy.lua and ... return wendy end attached are my current prefab files for my character (unedited EMC template files besides the new character's name). Also attached is my mod main file, incase that has anything to do with this. Any help would be so greatly appreciated! I spent all day looking at other popular mods made by experts, trying to learn lua, and still have nowhere to go. I've been attempting all day and it's time I swallow my pride and ask for some help lolol thank you SO much for any assistance! <3 lottie.lua 2.51 kB · 0 downloads modmain.lua 2.51 kB · 0 downloads I don't think it's that easy, you have to do everything manually, buildings, items, perks, stats etc. 1 Link to comment https://forums.kleientertainment.com/forums/topic/145464-where-do-i-put-this-local-function-line-of-code-to-get-my-custom-character-to-have-the-abilities-of-wendy/#findComment-1616860 Share on other sites More sharing options...
Lottita Posted January 6, 2023 Author Share Posted January 6, 2023 1 hour ago, Haruhi Kawaii said: I don't think it's that easy, you have to do everything manually, buildings, items, perks, stats etc. My worst fear realized thank you anyway! I’ll get back to it tomorrow with that new perspective. 1 Link to comment https://forums.kleientertainment.com/forums/topic/145464-where-do-i-put-this-local-function-line-of-code-to-get-my-custom-character-to-have-the-abilities-of-wendy/#findComment-1616866 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now