The Mugen Multiverse
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
 
PortalHomeFAQMemberlistLatest imagesUsergroupsSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Sabbac DC Mugen Char WIP ⛧
roundstate Emptyby RenatoNat.J Yesterday at 10:26 pm

» Wizard project
roundstate Emptyby RenatoNat.J Yesterday at 9:05 pm

» Anyone have a large MvC / DC character pack / full game to download?
roundstate Emptyby Navana Yesterday at 8:08 pm

» Zatara The Master Magician WIP by RenatoNato
roundstate Emptyby RenatoNat.J Yesterday at 5:23 pm

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 roundstate

Go down 
2 posters
AuthorMessage
Shining

Shining


Posts : 5040
Join date : 2013-03-26
Age : 44
Location : Italy

roundstate Empty
PostSubject: roundstate   roundstate EmptyJuly 4th 2018, 3:58 pm

[State 6900, 3]
type = ChangeState
triggerall = Roundstate = 4
trigger1 = Root, stateno = [170,189]
trigger2 = Root, stateno > 5000
value = 4170

with roundstate = 4 we have same victory and lost poses
i would have a winning pose different to a losing pose
is it possible to have different poses
Back to top Go down
thatguy

thatguy


Posts : 1381
Join date : 2014-05-28
Age : 47
Location : Canada

roundstate Empty
PostSubject: Re: roundstate   roundstate EmptyJuly 4th 2018, 8:26 pm

I hope I understand what you are trying to do.

What you need is to differentiate between a win and lose using triggers.
Here is a list of triggers that should work for what you are doing:
Lose
LoseKO
LoseTime
DrawGame
Win
WinKO
WinTime
WinPerfect

Examples:

1. trigger1 = Lose
 Triggers if the player (or his team) has lost the round.

2. trigger1 = !LoseKO
 Triggers if the player (or his team) has not lost the round by
 a KO. For example, this will trigger if the player's team has
 not yet lost the round, or if they have lost the round by time
 over.


Examples:

1. trigger1 = Win
 Triggers if the player (or his team) has won the round.
2. trigger1 = !WinKO
 Triggers if the player (or his team) has not won the
 round by a KO. For example, this will trigger if the
 player's team has not yet won the round, or if they have
 won the round by time over.
Back to top Go down
Shining

Shining


Posts : 5040
Join date : 2013-03-26
Age : 44
Location : Italy

roundstate Empty
PostSubject: Re: roundstate   roundstate EmptyJuly 10th 2018, 3:56 am

Thanks thatguy...good explaination

So i should have

[State 6900, 3]
type = ChangeState
triggerall = Roundstate = 4 .....i let it or i remove this line?
Trigger1 = win......i add this
trigger2 = Root, stateno = [170,189]
trigger3 = Root, stateno > 5000
value = 4170
Back to top Go down
thatguy

thatguy


Posts : 1381
Join date : 2014-05-28
Age : 47
Location : Canada

roundstate Empty
PostSubject: Re: roundstate   roundstate EmptyJuly 10th 2018, 7:36 pm

The roundstate trigger is as follows:

Roundstate = 0: Pre-intro - screen fades in
Roundstate = 1: Intro 2: Fight - players do battle
Roundstate = 3: Pre-over - just a round is won or lost
Roundstate = 4: Over - win poses

So if you use that trigger it would only trigger when the win pose is happening. After the round is won or lost.



Are you trying to add different win poses and different lose poses?  There is a better way. This will randomize the anims for you. Alternately you could use a name trigger and have special intros or lose poses specific to the enemy you are facing, or the stage you are on.

Code for Lose poses:
[Statedef 170]
type = S
ctrl = 0
anim = 170+random%# (Replace the # with how many animations you want. Remember, this anim number counts as one)
velset = 0,0

[State 170, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

Then build a change state for each lose pose


Code for Win Poses:
Code:
[Statedef 180]
type = S

[State 180, 1]
type = ChangeState
trigger1 = Time = 0
value = 181+(random%2) (Decides either State 181 or 182 will be the stateno for win pose)


Then build a change state for each win pose
Back to top Go down
Shining

Shining


Posts : 5040
Join date : 2013-03-26
Age : 44
Location : Italy

roundstate Empty
PostSubject: Re: roundstate   roundstate EmptyJuly 11th 2018, 3:28 am

Thanks i had not time to try your advices
I hope this evening could i do it...
but my codes are for a helper and it seems to run only roundstates
Back to top Go down
Sponsored content





roundstate Empty
PostSubject: Re: roundstate   roundstate Empty

Back to top Go down
 
roundstate
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen Related :: Mugen Help-
Jump to: