6#include "sprite/player.h"
9#define NAMESPACE battle_item_insecticide_herb
13API_CALLABLE(N(func_802A123C_72A98C)) {
18 script->varTable[9] = target->
actorType == 49;
23API_CALLABLE(N(func_802A1280_72A9D0)) {
34API_CALLABLE(N(func_802A12E0_72AA30)) {
44 effect = fx_cold_breath(0, a, b, c, 1.0f, 30);
60#include "battle/move/item/insecticide_herb.png.h"
61INCLUDE_IMG(
"battle/move/item/insecticide_herb.png", battle_item_insecticide_herb_png);
62INCLUDE_PAL(
"battle/move/item/insecticide_herb.pal", battle_item_insecticide_herb_pal);
65 { .v = { .ob = {-16, -16, 0}, FALSE, .tc = {0, 0}, .cn = {0, 0, 0, 255} } },
66 { .v = { .ob = {15, -16, 0}, FALSE, .tc = {1024, 0}, .cn = {0, 0, 0, 255} } },
67 { .v = { .ob = {15, 15, 0}, FALSE, .tc = {1024, 1024}, .cn = {0, 0, 0, 255} } },
68 { .v = { .ob = {-16, 15, 0}, FALSE, .tc = {0, 1024}, .cn = {0, 0, 0, 255} } },
71Gfx N(displayList)[] = {
73 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
74 gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
75 gsDPSetTexturePersp(G_TP_PERSP),
76 gsDPSetTextureDetail(G_TD_CLAMP),
77 gsDPSetTextureLOD(G_TL_TILE),
78 gsDPSetTextureLUT(G_TT_NONE),
79 gsDPSetTextureFilter(G_TF_AVERAGE),
80 gsDPSetTextureConvert(G_TC_FILT),
81 gsDPSetTextureLUT(G_TT_RGBA16),
82 gsDPLoadTLUT_pal16(0, battle_item_insecticide_herb_pal),
83 gsDPLoadTextureTile_4b(battle_item_insecticide_herb_png, G_IM_FMT_CI, battle_item_insecticide_herb_png_width, battle_item_insecticide_herb_png_height, 0, 0, battle_item_insecticide_herb_png_width - 1, battle_item_insecticide_herb_png_height - 1, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
84 gsSPClearGeometryMode(G_LIGHTING),
85 gsSPClearGeometryMode(G_SHADING_SMOOTH),
87 gsSP1Triangle(0, 1, 2, 0),
88 gsSP1Triangle(0, 2, 3, 0),
100 Call(MoveBattleCamOver, 15)
117 Call(InitTargetIterator)
143 Call(InitTargetIterator)
145 Call(N(func_802A123C_72A98C))
150 Call(InitTargetIterator)
152 Call(N(func_802A1280_72A9D0))
#define sfx_play_sound_at_position
struct ColdBreathFXData * coldBreath
#define STANDARD_ENTITY_MODEL_SCRIPT(gfx, renderMode)
@ BS_FLAGS1_TRIGGER_EVENTS
s32 evt_get_variable(Evt *script, Bytecode var)
void dispatch_event_actor(Actor *, s32)
Actor * get_actor(s32 actorID)
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
ApiStatus PlaySound(Evt *script, b32 isInitialCall)
ApiStatus CreateVirtualEntity(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityPosition(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityJumpGravity(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityScale(Evt *script, b32 isInitialCall)
ApiStatus DeleteVirtualEntity(Evt *script, b32 isInitialCall)
ApiStatus VirtualEntityJumpTo(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityRotation(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define Sub(VAR, INT_VALUE)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#define EndIf
Marks the end of an if statement or an else block.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define SetF(VAR, FLOAT_VALUE)
Sets the given variable to a given value, but supports Floats.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define PlayEffect(args...)
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Loop(TIMES)
Marks the beginning of a loop.
#define SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
#define Return
Kills the current EVT thread.
BattleStatus gBattleStatus