YesNoOk
avatar

AI takes a long time to activate (Read 155 times)

Started by CRZ, August 14, 2011, 05:14:58 pm
Share this topic:

CRZ

AI takes a long time to activate
#1  August 14, 2011, 05:14:58 pm
  • avatar
  • *
My AI code is exactly like Winane's, but at times it takes very long into the round before it activates. The worst case I've seen is the char acting stupid for 50 seconds before finally waking up. What am I missing out on here?

Here's the code:

;--In CMD
[Command]
name = "CPU1"
command = U, D, F
time = 1

;--and so on, with 50 humanly-impossible commands----

[State -1, AI]
type = VarSet
triggerall = var(59) != 1
triggerall = RoundState != 3
trigger1  = command = "CPU1"
trigger2  = command = "CPU2"
****
trigger50 = command = "CPU50"
var(59) = 1
Re: AI takes a long time to activate
#2  August 14, 2011, 10:14:18 pm
  • *
Well, if you are using 1.0, just write

trigger1 = AILevel > 0

done.

If not, get an AI helper. I don't know if you have one. I'll post the code if you need it.

Other plans:

display var(59) to clipboard.
Reppu-reppu-reppu-reppu-reppu-
Re: AI takes a long time to activate
#3  August 14, 2011, 10:41:01 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Winmugen AI is a bit of a workaround and will never be 100% reliable. 1.0 has the instant method which is much simpler to turn on.


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.