YesNoOk
avatar

Helper Help! (Read 673 times)

Started by Mana94, February 23, 2010, 12:34:06 am
Share this topic:
Helper Help!
#1  February 23, 2010, 12:34:06 am
  • avatar
  • *
Ok, after no tutorials, just plain observation of other characters, I have figured out how to use helpers.

What I still don't understand is how I can limit them, so that it can't be 2 or more of the same helper at the same time.

Also, Say for instance the move makes a copy of you...how can I choose so that the helper can be controlled by AI?
Re: Helper Help!
#2  February 23, 2010, 01:27:06 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
[mcode]trigger1 = numhelper(100) = 0[/mcode]

As for the AI, you have to code an AI for it within the .cmd.


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.
Re: Helper Help!
#3  February 23, 2010, 01:34:40 am
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
To limit helper you can triggered the SCTRL with Numhelper(ID_Helper) <= Count of helper

Ex:

triggerall = Numhelper(300) <= 1

so i say the stcontroller can be activate if just exist lower or equal to one of helpers with ID 300

well to use a "player helper" only change the type, from normal to player, and in keyctrl must be activate ( =1 ) well and in CMD file you hace to use a especial AI activation, look that code works if you use a Var(59) to activate.

In the general AI Set for the normal player you have something like that (not use winane activation)

[State 0, VarSet]
type = VarSet
triggerall = !Var(59)
trigger1 = Command = "AI_1"
trigger2 = Command = "AI_2"
trigger3 = Command = "AI_3"
trigger4 = Command = "AI_4"
...
...
...
var(59) = 1


so you have to add this triggerall to unforce autocheck a helper

[State 0, VarSet]
type = VarSet
triggerall = !IsHelper(300)
triggerall = !Var(59)
trigger1 = Command = "AI_1"
trigger2 = Command = "AI_2"
trigger3 = Command = "AI_3"
trigger4 = Command = "AI_4"
...
...
...
var(59) = 1

so i limit this activaction if dont detect that is a helper.

so the new activation for helper is

[State 0, VarSet]
type = VarSet
triggerall = !Var(59)
trigger1 = IsHelper(300)
var(59) = 1


look only works if you have a coding AI into CMD, the helper can't acces to mugen automatic AI.

Note :P

i check this code and works very fine, look add this line to add autoturn to the helper-player and die code an unset AI


[State -1, AI_ON]
Type = VarSet
Triggerall = !var(59)
Triggerall = (RoundState = [1,2])
Trigger1 = IsHelper(300)
var(59) = 10;AiLevel

[State -1, Turn]
Type = Turn
Triggerall = P2dist X <= 0 && (RoundState = [2,3])
Trigger1 = IsHelper(300)

[State -1, Lifeset]
Type = Lifeset
Triggerall = Ishelper(300)
Trigger1 = !Parent,Life
value = 0

;-------------------------------------------------------------------------------
[State -1, AI_OFF]
Type = VarSet
Triggerall = var(59)
Triggerall = RoundState != 2
Trigger1 = Ctrl || !Alive || !P2life
var(59) = 0


Its works for me.

bye!
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: Helper Help!
#4  February 26, 2010, 11:46:06 pm
  • avatar
  • *
Thanks alot guys :D

I officially now know how to make a decent character, lol.