Modding MI

Function Lists
          _root



These Function Lists show the name and function of all the functions in certain places. They also show the parameters for each function, so you know how to modify what the function actually does.
The second column of the parameters section tells you what type of parameter it is - number, string, boolean, array or reference. If it does not say what type of parameter it is, it is a number.
Redundant functions are functions that are no longer used in the game, and may as well be removed.

Each function has a Name and Parameters. The format you use to invoke a function is:
          name(parameters);
Parameters are broken up by commas. If the function has no parameters, it is simply:
          name();
An example function:
          explode(200,200);
This creates an Explosion at point 200,200. This is because the two parameters of explode are x and y.



_root
Name     Function          Parameters
bloodspraySprays blood at a certain point.x          Horizontal Position of Bloodspray
yVertical Position of Bloodspray
 
clearpickupsClears all the pickups.
 
clearstatsClears all Player Character's stats.
 
dopausePauses the game.
 
eogGoes to the stats screen.
 
explodeCreates an explosion at a certain point.xHorizontal Position of Explosion
yVertical Position of Explosion
 
fademenuChanges target menu's alpha.idMenu ID
alphaLevel of Alpha to fade to.
 
getnameGets the name of a Key from its code.iKeycode.
 
getsongRestarts the last song interrupted.
 
givebtrAdds to the Bullet Time Meter.amtAmount to add to Bullet Time Meter
 
initmusicDelayed initialization of music.
 
killmenuRemoves target menu.idMenu ID
 
makecolliderRedundant
 
mtestReturns whether a weapon's guntype is within certain values.typeGuntype.
 
newmenuCreates a new menu.xMenu Horizontal Position
yMenu Vertical Position
wMenu Width
hMenu Height
headertextstringMenu Header Text.
listarrayArray of Items in the Menu.
 
retQuits to the Main Menu.
 
setaiTurns AI on or off.aiswitchbooleanWhether AI is on.
 
setbgSets background.bgnumNumber of background.
 
setceilSets properties for ceiling.iceilCeiling Vertical Position
iisceilbooleanWhether ceiling stops objects.
 
setcostumeSets costume type for subsequent NPCs.setnamereferenceCostume type reference.
 
setgroundSets vertical ground position.groundposGround Vertical Position
 
sethudSets the HUD to message.messagestringMessage to display.
 
setsongSets target song as current music.song_referencereferenceSong reference.
init_loopsNumber of initial loops.
mysongnamestringName of the target song.
 
setwallsSets properties for walls.iminLeft Wall Horizontal Position
iminwallbooleanWhether left wall stops objects.
imaxRight Wall Horizontal Position.
imaxwallbooleanWhether right wall stops objects.
 
unpauseUnpauses the game.scbooleanWhether to restart music.