YesNoOk
avatar

Lua Code and Fighter Factory (Read 6002 times)

Started by Radium_Zombie, March 11, 2022, 05:32:49 pm
Share this topic:
Lua Code and Fighter Factory
#1  March 11, 2022, 05:32:49 pm
  • avatar
    • USA
I’m planning on using Ikemen Go for a full game. Can I use the Lua state controllers and triggers alongside Fighter Factory code? They seem to make a lot about making a character easier.
Re: Lua Code and Fighter Factory
#2  March 12, 2022, 01:54:20 am
  • *
    • Argentina
Lua can't be mixed with CNS code, they are two separate things. Though lua can influence character and match behavior to some extent, most of its scope is motif (and general GUI) behavior/rendering and matchmaking management. If you're referring to ZSS language, it can't be mixed with CNS code in the same file, you have to make a new st file for it with the extension .zss.
More info about ZSS: https://github.com/K4thos/Ikemen_GO/wiki/ZSS
Glue that faded photo on a worn-out journal page, it reads: "September come, please take this heart away."
Last Edit: March 12, 2022, 03:58:56 am by Laziness
Re: Lua Code and Fighter Factory
#3  March 12, 2022, 04:42:55 am
  • avatar
    • USA
Lua can't be mixed with CNS code, they are two separate things. Though lua can influence character and match behavior to some extent, most of its scope is motif (and general GUI) behavior/rendering and matchmaking management. If you're referring to ZSS language, it can't be mixed with CNS code in the same file, you have to make a new st file for it with the extension .zss.
More info about ZSS: https://github.com/K4thos/Ikemen_GO/wiki/ZSS

I’m referring to these,
https://github.com/K4thos/Ikemen_GO/wiki/State-controllers/#new
https://github.com/K4thos/Ikemen_GO/wiki/Triggers

These are ZSS codes right? I know I need to make a separate file, but how would I make both character files work together? Does all the cns code need to be copied over to ZSS afterward? Or can I start coding from scratch in ZSS?
Re: Lua Code and Fighter Factory
#4  March 12, 2022, 05:07:19 am
  • *
    • Argentina
No, those are new state controllers and triggers that can be used with both CNS and ZSS, see the examples in the wiki, you'll see they are written in CNS syntax. So, yes, you can mix them with with your character code, you don't have to make a new file or anything to use those.

Also, you can mix CNS files with ZSS files in the same character, you just can't mix both languages in the same file.
Glue that faded photo on a worn-out journal page, it reads: "September come, please take this heart away."
Re: Lua Code and Fighter Factory
#5  March 12, 2022, 07:56:44 am
  • avatar
    • USA
No, those are new state controllers and triggers that can be used with both CNS and ZSS, see the examples in the wiki, you'll see they are written in CNS syntax. So, yes, you can mix them with with your character code, you don't have to make a new file or anything to use those.

Also, you can mix CNS files with ZSS files in the same character, you just can't mix both languages in the same file.

Ok, I think I understand. Fighter Factory doesn’t have the drag and drops for them (like the regular hitdef, etc.), but I can still use those states and triggers in Fighter Factory if I code them manually?
Re: Lua Code and Fighter Factory
#6  March 12, 2022, 11:46:15 am
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Yes. The drag and drops are just presets, which you can add the new sctrls to.

Just be aware that unless you fiddle with one of the .xml files, there won't be any syntax highlighting and FF will flag the entire sctrl as erroneous.

Oh, I want a diagram. I fucking love diagrams.
Re: Lua Code and Fighter Factory
#7  March 23, 2022, 07:48:36 am
  • avatar
    • USA