YesNoOk
avatar

Alternate Ex mode Help (Read 313 times)

Started by Shado_Onikisu, October 15, 2012, 11:53:30 pm
Share this topic:
Alternate Ex mode Help
#1  October 15, 2012, 11:53:30 pm
  • *
  • My Status: A Novice AI Patcher and Char Editor
Hi, I am trying to configure some characters that have alternate/ex mode where when you select him and want to choose his ex-mode by pressing and holding start to select him in the select screen. The way i wanted to have is that some of his moves are available to him in his regular mode, but if he is in his Ex mode then he has more moves available to him while the original ones are restricted. Plz help.  i have an example of what i'm doing below:

[StateDef -2]

[state -2]; Regular Knux
type = Varset
trigger1 = palno = [1,6]
var(58) = 0



[state -2]; Shin Knux
type = Varset
trigger1 = palno = [7,10]
var(58) = 1


[state -2];MIX
type = Varset
trigger1 = palno = [11,12]
var(58) = 2




;---------------------------------------------------------------------------
; Echidna Sequence Punches DM
[State -1]
type = ChangeState
value = 3000
TriggerAll = var(59) = 0
triggerall = var(58) = 0 <----------------------------------------- This is when he is NOT in his Ex mode
triggerall = command = "EchidnaSequence"
triggerall = power  >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = movecontact = 1
trigger2 = stateno = 200
trigger3 = movecontact = 1
trigger3 = stateno = 210
trigger4 = statetype = C
trigger4 = ctrl = 1
trigger5 = movecontact = 1
trigger5 = stateno = 400
trigger6 = movecontact = 1
trigger6 = stateno = 410
trigger7 = movecontact = 1
trigger7 = stateno = 420
;----------------------------------------
; Shoryu Rush
[State -1, Shoryu]
type = changestate
value = 3500
triggerall = var(59) = 0
triggerall = var(58) = 1 <----------------------------------------- This is when he is in his Ex mode
triggerall = command = "omega"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl

Re: Alternate Ex mode Help
#2  October 17, 2012, 05:29:32 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
If you want certain moves to be used in both modes, then why are you restricting them to normal mode?

;---------------------------------------------------------------------------
; Echidna Sequence Punches DM
[State -1]
type = ChangeState
value = 3000
TriggerAll = var(59) = 0
triggerall = var(58) = 0 <----------------------------------------- This is when he is NOT in his Ex mode
triggerall = command = "EchidnaSequence"
triggerall = power  >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = movecontact = 1
trigger2 = stateno = 200
trigger3 = movecontact = 1
trigger3 = stateno = 210
trigger4 = statetype = C
trigger4 = ctrl = 1
trigger5 = movecontact = 1
trigger5 = stateno = 400
trigger6 = movecontact = 1
trigger6 = stateno = 410
trigger7 = movecontact = 1
trigger7 = stateno = 420


The way you have it set up now (bolded), he will only be able to use the move when he's in normal mode. Removing that line above in bold will do the trick.

Consequently, the way you have your variable set up where 2 equals mix mode, he won't be able to use his EX mode moves either. Change that = 1 to >= 1.

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Re: Alternate Ex mode Help
#3  October 18, 2012, 12:31:54 am
  • *
  • My Status: A Novice AI Patcher and Char Editor
If you want certain moves to be used in both modes, then why are you restricting them to normal mode?

;---------------------------------------------------------------------------
; Echidna Sequence Punches DM
[State -1]
type = ChangeState
value = 3000
TriggerAll = var(59) = 0
triggerall = var(58) = 0 <----------------------------------------- This is when he is NOT in his Ex mode
triggerall = command = "EchidnaSequence"
triggerall = power  >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = movecontact = 1
trigger2 = stateno = 200
trigger3 = movecontact = 1
trigger3 = stateno = 210
trigger4 = statetype = C
trigger4 = ctrl = 1
trigger5 = movecontact = 1
trigger5 = stateno = 400
trigger6 = movecontact = 1
trigger6 = stateno = 410
trigger7 = movecontact = 1
trigger7 = stateno = 420


The way you have it set up now (bolded), he will only be able to use the move when he's in normal mode. Removing that line above in bold will do the trick.

Consequently, the way you have your variable set up where 2 equals mix mode, he won't be able to use his EX mode moves either. Change that = 1 to >= 1.

Well its sorta like a having a Ryu, Evil Ryu, And Master Ryu all in one and all you gotta do is just Hold enter and select him while in the select screen for mugen on a certain pallette. i was trying to have a normal mode, a Ex mode, then a Boss mode(Mix). When he is in Normal mode i want all his original moves to be available to him while his Ex mode moves are restricted. when he is in Ex mode all of his Ex moves are available to him while the Original moves are not. His boss mode will have everything available to him.


You Said "Change that = 1 to >= 1."

if i do will it work when i hold enter and select him in a certain pallette?

and what do i do for the MIX mode (which is his boss mode)? Change the = 2 to >= 2?




[StateDef -2]

[state -2]; Regular Knux
type = Varset
trigger1 = palno = [1,6]
var(58) >= 0 <----------------- So  is this what is supposed to be like?



[state -2]; Shin Knux
type = Varset
trigger1 = palno = [7,10]
var(58) >= 1 <----------------- So  is this what is supposed to be like?


[state -2];MIX
type = Varset
trigger1 = palno = [11,12]
var(58) >= 2 <----------------- So  is this what is supposed to be like?


; Echidna Sequence Punches DM
[State -1]
type = ChangeState
value = 3000
TriggerAll = var(59) = 0
triggerall = var(58) >= 0 <----------------------------------------- So is this what is supposed to be like?
triggerall = command = "EchidnaSequence"
triggerall = power  >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = movecontact = 1
trigger2 = stateno = 200
trigger3 = movecontact = 1
trigger3 = stateno = 210
trigger4 = statetype = C
trigger4 = ctrl = 1
trigger5 = movecontact = 1
trigger5 = stateno = 400
trigger6 = movecontact = 1
trigger6 = stateno = 410
trigger7 = movecontact = 1
trigger7 = stateno = 420
Re: Alternate Ex mode Help
#4  October 18, 2012, 12:59:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I'm going to simplfy because i don't wanna write lots of code. So you get EVERYTHING if in "boss" mode. Some of it if you're in normal, and some in EX. EX and Normal have no moves they share?

Moves that normal can access

triggerall = var(0) != 1

moves that EX can access

triggerall = var(0) != 0

So if var(0) is 1, you're in EX mode, you cannot access normal moves. If however you are in normal or Boss it will = 0 or 2, neither of which is = to 1, so will allow activation.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.