User:Pixloen/FPANModding/Classes and Methods: Difference between revisions
< User:Pixloen | FPANModding
Jump to navigation
Jump to search
(added terminology guide for new modders) |
No edit summary |
||
Line 8: | Line 8: | ||
considering there's 900+ of these things we may have to split this into a few pages | considering there's 900+ of these things we may have to split this into a few pages | ||
template | |||
{{MFPG Content Box | |||
|header=FunctionName( void ) | |||
|content= | |||
Description | |||
''int'' number: description on what this value does | |||
}} | |||
sort these entries by alphabetical order. | |||
--> | --> | ||
Line 44: | Line 67: | ||
= Classes and Methods = | = Classes and Methods = | ||
==BMvEff== | ==BMvEff== | ||
{{MFPG Content Box | |||
|header=BG_GetNum( ''void'' ) | |||
|content= | |||
Returns the background number. | |||
}}{{MFPG Content Box | |||
|header=CockpitSetView({ mode = ''int'' }) | |||
|content= | |||
Creates an object that has properties based on the array. Not all of the above properties are needed. | |||
{{MFPG Content Box | ''int'' mode = whether to enable the Cockpit (1 or 0).<br /> | ||
}}{{MFPG Content Box | |||
|header=CreateObject({ x = ''int'' , y = ''int'' , pat = ''int'' , start_pat = ''int'' , mvname = ''string'' , flags = ''flags'' }) | |header=CreateObject({ x = ''int'' , y = ''int'' , pat = ''int'' , start_pat = ''int'' , mvname = ''string'' , flags = ''flags'' }) | ||
|content= | |content= | ||
Line 56: | Line 88: | ||
''string'' mvname = Sets the mv clause based on the name. e.g. <code>mvname = "Mv_Startup"</code><br /> | ''string'' mvname = Sets the mv clause based on the name. e.g. <code>mvname = "Mv_Startup"</code><br /> | ||
''flags'' flags = Assigns the object flags. | ''flags'' flags = Assigns the object flags. | ||
}}{{MFPG Content Box | |||
|header=SetCharaColor({ color = ''color'', intime = ''int'', time = ''int'', outtime = ''int'', type = ''int'' }) | |||
|content= | |||
Adds a color effect to the player's sprite. Does not apply to effects or objects spawned by the player. | |||
}} | }} | ||
==BMvTbl== | ==BMvTbl== | ||
{{MFPG Content Box | {{MFPG Content Box | ||
|header= | |header=CBtlInfo( ''void'' ) | ||
|content= | |||
Collects info about the current battle. | |||
}}{{MFPG Content Box | |||
|header=CBtlInfo.GetSelectBgm( ''void'' ) | |||
|content= | |content= | ||
Returns the | Returns the current BGM number. -2 is Off / MUTE. | ||
}}{{MFPG Content Box | }}{{MFPG Content Box | ||
|header= | |header=CBtlInfo.IsSelectBgm( ''void'' ) | ||
|content= | |content= | ||
Whether the current playing BGM was player-chosen. Returns a bool. | |||
}}{{MFPG Content Box | }}{{MFPG Content Box | ||
|header= | |header=CBtlInfo.SetSelectBgm( ''int'' number ) | ||
|content= | |content= | ||
Sets the | Sets the BGM. | ||
'' | ''int'' number: The BGM number to play. | ||
}}{{MFPG Content Box | }}{{MFPG Content Box | ||
|header=GetMuki( ''void'' ) | |header=GetMuki( ''void'' ) | ||
|content= | |content= | ||
Returns the facing direction of the object as either -1 or 1 (facing left and right respectively). | Returns the facing direction of the object as either -1 or 1 (facing left and right respectively). | ||
}}{{MFPG Content Box | }}{{MFPG Content Box | ||
|header= | |header=GetPlayerSide( ''void'' ) | ||
|content= | |content= | ||
Returns the player side, as either 0 or 1 (Player 1 and Player 2 respectively). | |||
}}{{MFPG Content Box | }}{{MFPG Content Box | ||
|header= | |header=SetMuki( ''type'' direction ) | ||
|content= | |content= | ||
Sets the | Sets the facing direction of the object. | ||
'' | ''type'' direction: <code>_Direction_Left, _Direction_Right, _Direction_Auto, _Direction_Reverse</code> | ||
}}{{MFPG Content Box | }}{{MFPG Content Box | ||
|header= | |header=SetPattern( ''int'' number '''or''' ''string'' name ) | ||
|content= | |content= | ||
Sets the pattern of the object. | |||
''int'' number: Sets the pattern based on it's number in the HA6. | |||
''string'' name: Sets the pattern based on the code name in the HA6. | |||
}} | }} | ||
= Navigation = | |||
{{Navbox-MFPG}} | {{Navbox-MFPG}} | ||
[[Category:Modding French Bread Games]] | [[Category:Modding French Bread Games]] |
Revision as of 22:37, 21 December 2023
Terminology Guide
Terminology | |
---|---|
Disclaimer: Writer pixloen has no idea what she's talking about. | |
void | Nothing needs to be put into the brackets of the function. Usually reserved for functions that return a value. |
int | An integer can be supplied. |
float | A float can be supplied. |
string | A line of text surrounded by ". |
text | A line of text. Not surrounded by ". |
flags | Flags that can change properties can be supplied. If more than one is specified, they are to be separated using a vertical slash. |
Classes and Methods
BMvEff
BG_GetNum( void )
Returns the background number.
CockpitSetView({ mode = int })
Creates an object that has properties based on the array. Not all of the above properties are needed.
int mode = whether to enable the Cockpit (1 or 0).
CreateObject({ x = int , y = int , pat = int , start_pat = int , mvname = string , flags = flags })
Creates an object that has properties based on the array. Not all of the above properties are needed.
int x = X position of the object.
int y = Y position of the object.
int pat = Sets the pattern based on it's number in the HA6.
int start_pat = Sets the pattern based on it's number in the HA6.
string mvname = Sets the mv clause based on the name. e.g. mvname = "Mv_Startup"
SetCharaColor({ color = color, intime = int, time = int, outtime = int, type = int })
Adds a color effect to the player's sprite. Does not apply to effects or objects spawned by the player.
BMvTbl
CBtlInfo( void )
Collects info about the current battle.
CBtlInfo.GetSelectBgm( void )
Returns the current BGM number. -2 is Off / MUTE.
CBtlInfo.IsSelectBgm( void )
Whether the current playing BGM was player-chosen. Returns a bool.
CBtlInfo.SetSelectBgm( int number )
Sets the BGM.
int number: The BGM number to play.
GetMuki( void )
Returns the facing direction of the object as either -1 or 1 (facing left and right respectively).
GetPlayerSide( void )
Returns the player side, as either 0 or 1 (Player 1 and Player 2 respectively).
SetMuki( type direction )
Sets the facing direction of the object.
type direction:
_Direction_Left, _Direction_Right, _Direction_Auto, _Direction_Reverse
SetPattern( int number or string name )
Sets the pattern of the object.
int number: Sets the pattern based on it's number in the HA6.
string name: Sets the pattern based on the code name in the HA6.