User:Pixloen/FPANModding/Classes and Methods: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
Line 81: Line 81:
''int'' mode = whether to enable the Cockpit (1 or 0).
''int'' mode = whether to enable the Cockpit (1 or 0).
}}
}}
===CreateObject()===
===CreateObject()===
{{MFPG Content Box
{{MFPG Content Box
Line 95: Line 94:
''flags'' flags = Assigns the object flags.  
''flags'' flags = Assigns the object flags.  
}}
}}
===SetCharaColor()===
===SetCharaColor()===
{{MFPG Content Box
{{MFPG Content Box

Revision as of 22:58, 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()

BG_GetNum( void )

Returns the background number.

CockpitSetView()

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()

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"

flags flags = Assigns the object flags.

SetCharaColor()

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()

CBtlInfo( void )

Collects info about the current battle.

CBtlInfo.GetSelectBgm()

CBtlInfo.GetSelectBgm( void )

Returns the current BGM number. -2 is Off / MUTE.

CBtlInfo.IsSelectBgm()

CBtlInfo.IsSelectBgm( void )

Whether the current playing BGM was player-chosen. Returns a bool.

CBtlInfo.SetSelectBgm()

CBtlInfo.SetSelectBgm( int number )

Sets the BGM.

int number: The BGM number to play.


GetMuki()

GetMuki( void )

Returns the facing direction of the object as either -1 or 1 (facing left and right respectively).

GetPlayerSide()

GetPlayerSide( void )

Returns the player side, as either 0 or 1 (Player 1 and Player 2 respectively).

SetMuki()

SetMuki( type direction )

Sets the facing direction of the object. type direction: _Direction_Left, _Direction_Right, _Direction_Auto, _Direction_Reverse

SetPattern()

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.


Navigation

For Beginners
Getting Started
File Structure
Installing Mods
Example Mods
Glossary
Links & Resources
File Formats & Software Guide
Hantei-chan
CGTOOL & CGLIB
.pat Effects
Palettes
DDS Images
Engine Documentation
Audio
Backgrounds
Classes and Methods
Cutscenes
D File Folder
Functions
Shaders
Quick Start
Getting Started
Installing Mods
Mods List
Guides
Character File Setup
Using Hantei-chan
Character Scripts
Miscellaneous
Dialogue
HUD and UI
Stages
Audio
Battle Scripts
CG & Patterns
Editng Vectors
Define
Documentation
Classes and Methods
Functions
HA6 Pattern Reference
UNI2 Modding Notes