Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
SetSpinSmashable.inc.c
Go to the documentation of this file.
1
#include "
battle/battle.h
"
2
3
API_CALLABLE(N(
SetSpinSmashable
)) {
4
s32
canSpinSmash
=
evt_get_variable
(
script
, *
script
->ptrReadPos);
5
Actor
* actor =
get_actor
(
script
->owner1.actorID);
6
7
if
(!
canSpinSmash
) {
8
actor->
actorBlueprint
->
spinSmashReq
= 4;
9
}
else
{
10
actor->
actorBlueprint
->
spinSmashReq
= 0;
11
}
12
13
return
ApiStatus_DONE2
;
14
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
Actor::actorBlueprint
struct ActorBlueprint * actorBlueprint
Definition
common_structs.h:1858
Actor
Definition
common_structs.h:1855
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1689
get_actor
Actor * get_actor(s32 actorID)
Definition
actor_api.c:155
battle.h
ActorBlueprint::spinSmashReq
u8 spinSmashReq
Definition
battle.h:145
src
common
SetSpinSmashable.inc.c
Generated by
1.10.0