YesNoOk
avatar

easy way to add scalable AI for existing non scalable AI in mugen 1.0 (Read 391 times)

Started by yaminogun, August 08, 2014, 01:14:39 pm
Share this topic:
easy way to add scalable AI for existing non scalable AI in mugen 1.0
#1  August 08, 2014, 01:14:39 pm
  • **
  • no one can control the symbiotes! NO ONE! ⚝★☆
    • Monaco
just insert this 1 code 
Code:
triggerall = random < aiLEVEL*aiLEVEL*aiLEVEL*aiLEVEL/4
to near which similar like this code
Code:
[State -1]
type = VarSet
triggerall = var(59) != 1
trigger1  = command = "CPU1"
trigger2  = command = "CPU2"
trigger3  = command = "CPU3"
trigger4  = command = "CPU4"
trigger5  = command = "CPU5"
trigger6  = command = "CPU6"
trigger7  = command = "CPU7"
trigger8  = command = "CPU8"
trigger9  = command = "CPU9"
trigger10  = command = "CPU10"
trigger11  = command = "CPU11"
trigger12  = command = "CPU12"
trigger13  = command = "CPU13"
trigger14  = command = "CPU14"
trigger15  = command = "CPU15"
trigger16  = command = "CPU16"
trigger17  = command = "CPU17"
trigger18  = command = "CPU18"
trigger19  = command = "CPU19"
trigger20  = command = "CPU20"
trigger21  = command = "CPU21"
trigger22  = command = "CPU22"
trigger23  = command = "CPU23"
trigger24  = command = "CPU24"
trigger25  = command = "CPU25"
trigger26  = command = "CPU26"
trigger27  = command = "CPU27"
trigger28  = command = "CPU28"
trigger29  = command = "CPU29"
trigger30  = command = "CPU30"
trigger31  = command = "CPU31"
trigger32  = command = "CPU32"
trigger33  = command = "CPU33"
trigger34  = command = "CPU34"
trigger35  = command = "CPU35"
trigger36  = command = "CPU36"
trigger37  = command = "CPU37"
trigger38  = command = "CPU38"
trigger39  = command = "CPU39"
trigger40  = command = "CPU40"
trigger41  = command = "CPU41"
trigger42  = command = "CPU42"
trigger43  = command = "CPU43"
trigger44  = command = "CPU44"
trigger45  = command = "CPU45"
trigger46  = command = "CPU46"
trigger47  = command = "CPU47"
trigger48  = command = "CPU48"
trigger49  = command = "CPU49"
trigger50  = command = "CPU50"
var(59) = 1

after insert the code will look like this
Code:
[State -1]
type = VarSet
triggerall = var(59) != 1
triggerall = random < aiLEVEL*aiLEVEL*aiLEVEL*aiLEVEL/4
trigger1  = command = "CPU1"
trigger2  = command = "CPU2"
trigger3  = command = "CPU3"
trigger4  = command = "CPU4"
trigger5  = command = "CPU5"
trigger6  = command = "CPU6"
trigger7  = command = "CPU7"
trigger8  = command = "CPU8"
trigger9  = command = "CPU9"
trigger10  = command = "CPU10"
trigger11  = command = "CPU11"
trigger12  = command = "CPU12"
trigger13  = command = "CPU13"
trigger14  = command = "CPU14"
trigger15  = command = "CPU15"
trigger16  = command = "CPU16"
trigger17  = command = "CPU17"
trigger18  = command = "CPU18"
trigger19  = command = "CPU19"
trigger20  = command = "CPU20"
trigger21  = command = "CPU21"
trigger22  = command = "CPU22"
trigger23  = command = "CPU23"
trigger24  = command = "CPU24"
trigger25  = command = "CPU25"
trigger26  = command = "CPU26"
trigger27  = command = "CPU27"
trigger28  = command = "CPU28"
trigger29  = command = "CPU29"
trigger30  = command = "CPU30"
trigger31  = command = "CPU31"
trigger32  = command = "CPU32"
trigger33  = command = "CPU33"
trigger34  = command = "CPU34"
trigger35  = command = "CPU35"
trigger36  = command = "CPU36"
trigger37  = command = "CPU37"
trigger38  = command = "CPU38"
trigger39  = command = "CPU39"
trigger40  = command = "CPU40"
trigger41  = command = "CPU41"
trigger42  = command = "CPU42"
trigger43  = command = "CPU43"
trigger44  = command = "CPU44"
trigger45  = command = "CPU45"
trigger46  = command = "CPU46"
trigger47  = command = "CPU47"
trigger48  = command = "CPU48"
trigger49  = command = "CPU49"
trigger50  = command = "CPU50"
var(59) = 1


TAKE A NOTE THIS CODE CAN SOMETIME CAUSE the AI goes max difficulty again.  better follow the tutorial in infinitymugenteam


please visit my request thread. here
bad grammar is art
Last Edit: August 08, 2014, 07:30:41 pm by yaminogun
Re: easy way to add scalable AI for existing non scalable AI in mugen 1.0
#2  August 08, 2014, 04:31:44 pm
  • ***
  • Wataaaaahhhhh
    • France
Again ???  :wall:
A similar post was already done dude, and you need to convert yourself to mugen 1.0 +, you just need to use the trigger AIlevel and not all this old codes ... mugen 1.0 is the way, is the true and is your salvation ! Convert yourself heretic !!!!  :laugh:
http://mugenguild.com/forum/iron-muscle-bomber.400
Rahhhhhhh, AI is so hard to deal with !!!!
Last Edit: August 08, 2014, 04:37:09 pm by teddylam
Re: easy way to add scalable AI for existing non scalable AI in mugen 1.0
#3  August 08, 2014, 04:55:49 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
LOL, do you even understand what your code does ?
Re: easy way to add scalable AI for existing non scalable AI in mugen 1.0
#4  August 08, 2014, 06:12:16 pm
  • ******
  • [E]
    • Mexico
it's funny because I just read the trigger part of the code and ignored where he used it so I tought it made sense; something like having:

triggerall = random < 100

as a trigger, then replaced as

triggerall = random < iLEVEL*aiLEVEL*aiLEVEL*aiLEVEL/4

in the ai change states
it kinda makes sense to replace the 100 for an aiLevel expression, but since ai level goes from 0 to 10 (?) it would be something like

random < ( 100 * aiLevel/10.0)
Re: easy way to add scalable AI for existing non scalable AI in mugen 1.0
#5  August 08, 2014, 06:56:48 pm
  • **
  • no one can control the symbiotes! NO ONE! ⚝★☆
    • Monaco
Again ???  :wall:
A similar post was already done dude, and you need to convert yourself to mugen 1.0 +, you just need to use the trigger AIlevel and not all this old codes ... mugen 1.0 is the way, is the true and is your salvation ! Convert yourself heretic !!!!  :laugh:
ok where is the post? link me to it
LOL, do you even understand what your code does ?
i know there a better code which no conflict with other random. but it need time to delete these old code. while my code only insert it without delete anything. that's why the title "easy way" ignore the fact it will conflict with other random. also i think nobody ever use (ailevel^4)/4  which is simple as hax
it's funny because I just read the trigger part of the code and ignored where he used it so I tought it made sense; something like having:

triggerall = random < 100

as a trigger, then replaced as

triggerall = random < iLEVEL*aiLEVEL*aiLEVEL*aiLEVEL/4

in the ai change states
it kinda makes sense to replace the 100 for an aiLevel expression, but since ai level goes from 0 to 10 (?) it would be something like

random < ( 100 * aiLevel/10.0)


please visit my request thread. here
bad grammar is art
Last Edit: August 08, 2014, 07:03:24 pm by yaminogun
Re: easy way to add scalable AI for existing non scalable AI in mugen 1.0
#6  August 08, 2014, 11:23:38 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
. . .

You put your code in the varset and not in the changestate. You're basically only touching the AI activation system using the AI activation trigger (LOOOOL), so the AI will activate in 5, 10 or 20 ticks instead of 1 tick. That's useless, and the code is useless once the AI gets activated.

[E] : that's basically what POTS did (and in a more efficient way, in order to really differentiate the difficulty levels) :
Code:
random < (100 * (AIlevel ** 2 / 64.0))