- Joined
- May 8, 2017
- Messages
- 11
- Reaction score
- 3
- First Language
- Urdu/English
- Primarily Uses
- RMVXA
Code:
#-------------------------------------------Fighters/Characters
# replace kfm with mugen char folder name or use kfm for testing
p1 = "kfm" #Player 1
p2 = "kfm" #Player 2
p3 = "kfm" #Player 3
p4 = "kfm" #Player 4
a = "mugen.exe" #Name of mugen executable
#-------------------------------------------A.I Levels
# AI levels go till 8 with 0 being the most difficult
ai1 = 0 #A.I Level for player 1
ai2 = 0 #A.I Level for player 2
ai3 = 0 #A.I Level for player 3
ai4 = 0 #A.I Level for player 4
#-------------------------------------------Stage
#replace kfm.def with stage def file name
stage = " -s"+"kfm.def"
#-------------------------------------------Players without AI
char1 = " -p1"+" "+p1
char2 = " -p2"+" "+p2
char3 = " -p3"+" "+p3
char4 = " -p4"+" "+p4
#--------------------------------------------Players with A.I
char1ai = " -p1"+" "+p1+" -ai"+" "ai1
char2ai = " -p2"+" "+p2+" -ai"+" "ai2
char3ai = " -p3"+" "+p3+" -ai"+" "ai3
char4ai = " -p4"+" "+p4+" -ai"+" "ai4
#=======================================Code
#this bit is confusing, i want to replace system with something
#simpler so that it can be put in the script editor
system(a+char1+char2ai+char3+char4ai)
#replace char1 with char1ai to activate AI and same for more chars (CPU mode)
#You can also have char1 and char2 only
#4 players are max in mugen and you can have control over player 1 and 2 only
But i don't know how to call this on an event because when i add it in events like run a script, everything doesn't fit up
If i mix all the code, it only runs the first line like the examples of codes i sent before which were in one single line
So this was the only way... Please tell me how i can add this to script editor and then call it from there on a certain event
*thanks for the wrapper, i will try it!
Last edited: