News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

[SOLVED] Simul & Explods

Started by O Ilusionista, April 30, 2011, 06:03:35 PM

Previous topic - Next topic

O Ilusionista

I'm having trouble with explods position at Simul modes and I know its a kind dumb, but I can't get it to work.

This is my code (its a lifebar coded inside the char):

Quote; LIFEBAR GAUGE 1P SIDE bg
[State 9999]
type = Explod
triggerall = numexplod(15000) = 0
trigger1 = teamside = 2
anim = 15000
ID = 15000
postype = right
pos = -30,60
removeongethit = 0
removetime = -1
bindtime = -1
sprpriority = 50
ownpal = 1
ontop = 1
supermovetime = 999999999
pausemovetime = 999999999
scale = 0.5,0.50
persistent = 0
facing = -1

It works fine on single modes. But I need to trigger if the char is on Simul mode and if its the second (partner) char, not the main one, because on the second char I need to put the lifebar at another position

How do I make this?

Hero

I'm not sure, but what about asking if your partner has that explod already?
trigger1 = teammode = simul
trigger1 = partner, numexplod(xxxx)

But no idea if that works

EDIT: Oh, I misread the last sentence.
Does Mugen asign a specific ID for every palyer (p1,p2,p3,p4)???


Rajaa Retired

Here's a code that I used for my bar. It's useful and works:

In a helper, this code reads which player my character is based off of its ID. Any character with an ID higher than its partner is player3 or player4.

[state 7100,ID]
type=varset
trigger1=root,numpartner
trigger1=root,id>partner,id
var(0)=partner,authorname="RajaaBoy"


When root has a partner and root is player3 or player4, variable 0 is true if root's partner's author name is RajaaBoy.




Then, in the explod state controller, I just have a simple position movement based on whether or not variable 0 is true.

pos = 20, 230 - (10*(var(0))

You could play around with those ideas. It'll work even if it isn't a helper where you have explod being managed, just remove the root re-director.

O Ilusionista

Thanx Rajaa, it worked.
(yes, its a helper managed explod)

I use on this way:

Quote[state 7100,ID]
type=varset
trigger1=root,numpartner
trigger1=root,id>partner,id
var(0)=30

and

Quotepos = 30-var(0),60

Dunno why, but your formula "pos = 20, 230 - (10*(var(0))" doesn't seams to work at 1.0