News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

add004basic water code implement help.

Started by Flowrellik, August 30, 2014, 05:42:37 PM

Previous topic - Next topic

Flowrellik

OK, I realized that with add004basic, tatsu's latest kiri stages have an implemented water code with splashing. Everytime a character moves, knockdowns, etc. there is water splashing occuring. I'm trying to figure out how to implement the same water code for other water floor based stages but luck hasn't been on my side in this.
Is there a way to figure this out? the stages that uses the water code with add004basic are kiri2014 and kiri-blue2014. It seems like the code I found for water is just implemented within add004basic's common1.

PhantomD

#1
I think I just figured it out.
In the add004 common1.cns found this:

;;>>@Config.Stage_Type>>
; stage type: ( 0: normal 1: water... )
[state 0]
type=varset
triggerall=!time
;;--- vWin
trigger1=abs(root,pos x)=73*fvar(0)
trigger2=numenemy
trigger2=abs(enemy,pos x)=73*fvar(0)
;;--- v1.0
        ;v1.0; trigger1=stagevar(info.author)="WATER" ;;(v1.0)
var(24)=1
[state 0]
type=varset
trigger1=time<5
trigger1=(enemy,sysfvar(0)>0) && playeridexist(floor(enemy,sysfvar(0)))
trigger1=playerid(floor(enemy,sysfvar(0))),var(24)=1
var(24)=1


;v1.0;   trigger1=stagevar(info.author)="WATER" ;;(v1.0)

Change your stage author name to "WATER".

There are infinite possibilities you could use like FIRE, ROCK, SLIME, SAND and add your own animations by duplicating this code and modifying the fight.fx

Jesuszilla

All I can say about that is holy shit, Tatsu, I love you.


That's just so clever.

2Dee4ever

Once you figure this out can you show an example??

Saikoro

So does this mean that effects geared towards stages with, say, elements like a shallow lake or sand that you're standing in, are now possible without extra coding through explods?? In other words, the water effect will always be there through your character or is it activated with complimentary coding through a stage??

I'm trying to learn coding so excuse me if I'm coming off with bad phrasing.
All of your Mugen Portrait needs may be found HERE.

Quote from: Unstabler on January 31, 2013, 04:11:33 PM
I'd like to report two robots on the MFG forums: One is EXShadow. The other is Saikoro.
Quote from: GarchompMatt on September 17, 2013, 12:37:33 AM
There should be a Saikoro plugin for Photoshop.

Mamiya Tsuyoshi

Tatsu is always full of surprises.
Dude is simply incredible, i admire him.

Some time ago, there was a guy here on guild that made something similar, using water.
But i dont remember his name

Flowrellik

I dont think this is working :c.
I named the stage author to water and no luck.
EDIT: I FOUND OUT HOW. Character p1/p2startx is at -73(p1) or 73(p2).

xcheatdeath

tried it out on electro's KOF95 garou stage, (changed author to water and the startx to -73 & 73) worked perfectly for me!

Flowrellik

ikr!
All thats left now is finding out the backlighting code for say SVC Guardian Dogs temple and we're set.