JadeKnightblazer Posted February 28, 2015 Share Posted February 28, 2015 (edited) Wondering if I can make a simple Fx using code as such... { --name = "green_leaves_chop", --bank = "tree_leaf_fx", --build = "tree_leaf_fx_green", --anim = "chop", --}, then use the Prefab Fxlocal function MakeFx(name, bank, build, anim, sound, sounddelay, tint, tintalpha, transform, sound2, sounddelay2, fnc, fntime). Not sure how to go about this tho =/ Edited February 28, 2015 by JadeKnightblazer Link to comment Share on other sites More sharing options...
rezecib Posted February 28, 2015 Share Posted February 28, 2015 @JadeKnightblazer, I add Wigfrid's little death spirit fx in DST RoG Characters. As for how to do the actual art for it, I'm not sure.local wathgrithr_spirit_fx = { name = "wathgrithr_spirit", bank = "wathgrithr_spirit", build = "wathgrithr_spirit", anim = "wathgrithr_spirit", sound = "dontstarve_DLC001/characters/wathgrithr/valhalla", sounddelay = .2, -- dlc = true, }GLOBAL.table.insert(GLOBAL.require("fx"), wathgrithr_spirit_fx) Link to comment Share on other sites More sharing options...
DarkXero Posted February 28, 2015 Share Posted February 28, 2015 GLOBAL.table.insert(GLOBAL.require("fx"), wathgrithr_spirit_fx) Well, what I do is copy paste the entire fx file in prefab, name it fxtra, then make a local fxtra with all my fxs. But that is better. I forgot that when doing:x = tabley = x--edit y--x changesI can't wrap my head around lua, damn. Link to comment Share on other sites More sharing options...
rezecib Posted February 28, 2015 Share Posted February 28, 2015 @DarkXero, Yeah, when I first added it I just overwrote the entire fx file. But I didn't like doing that, and eventually figured out to try the method above. Link to comment 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