Added scene-related builtins
This commit is contained in:
parent
1824b97f98
commit
d24894dd85
2 changed files with 85 additions and 0 deletions
|
@ -17,3 +17,4 @@ builtin print(...);
|
|||
import "system.sun";
|
||||
import "talk.sun";
|
||||
import "sound.sun";
|
||||
import "scene.sun";
|
||||
|
|
84
stdlib/scene.sun
Normal file
84
stdlib/scene.sun
Normal file
|
@ -0,0 +1,84 @@
|
|||
/* ================================================= *\
|
||||
* scene.sun
|
||||
*
|
||||
* ssc standard include utility
|
||||
* 2015-2016 arookas
|
||||
\* ================================================= */
|
||||
|
||||
builtin setNextStage(num, b);
|
||||
|
||||
buitlin getAddressFromViewObjName(name);
|
||||
builtin getNameRefHandle(name);
|
||||
builtin getNameRefName(handle);
|
||||
|
||||
builtin getNPCType(npc);
|
||||
|
||||
builtin setTransScale(name, tx, ty, tz, sx, sy, sz);
|
||||
|
||||
// cubes
|
||||
builtin isInsideCube(a);
|
||||
builtin isInsideFastCube(a, b);
|
||||
|
||||
// appear
|
||||
builtin appear8RedCoinsAndTimer();
|
||||
builtin appearMushroom1up(a);
|
||||
|
||||
// dummy
|
||||
builtin connectDummyNpc(a);
|
||||
builtin onTalkToDummyNpc();
|
||||
|
||||
// nerves
|
||||
builtin checkCurNerve4Npc(a, b);
|
||||
builtin checkLastestNerve4Npc(a, b);
|
||||
builtin pushNerve4LiveActor(a, b);
|
||||
|
||||
// crates
|
||||
builtin checkWoodBox(a, b);
|
||||
builtin refreshWoodBox(box);
|
||||
builtin killWoodBox(a, b);
|
||||
|
||||
// distance checks
|
||||
builtin isNearActors(actor, distance, ...); // variadic requires at least one
|
||||
builtin isNearSameActors(a, b, c);
|
||||
|
||||
// shine
|
||||
builtin appearShine(a, b);
|
||||
builtin appearShineForWoodBox(a);
|
||||
builtin appearShineFromKageMario(a, b, c);
|
||||
builtin appearShineFromNpc(shine, npc, cam);
|
||||
builtin appearShineFromNPCWithoutDemo(shine, npc);
|
||||
builtin killShine(handle);
|
||||
|
||||
// NPC
|
||||
builtin setCollision(actor, collision);
|
||||
|
||||
builtin setFlagNPCCanTaken(npc, flag);
|
||||
builtin setFlagNPCDead(npc, flag);
|
||||
builtin setFlagNPCDontTalk(npc, flag);
|
||||
builtin setFlagNPCDontThrow(npc, flag);
|
||||
builtin isOnLiveActorFlag(actor, flag);
|
||||
|
||||
builtin setHide4LiveActor(actor, hide);
|
||||
builtin setDead4LiveActor(actor, dead);
|
||||
|
||||
builtin setNpcBalloonMessage(a, b, c);
|
||||
builtin setNpcTalkForbidCount(a, b);
|
||||
|
||||
builtin npcDanceOffHappyOn(npc);
|
||||
builtin npcDanceOn(npc);
|
||||
|
||||
builtin isNpcSinkBottom(npc);
|
||||
|
||||
// shadow mario
|
||||
builtin startEMarioDisappear(emario);
|
||||
builtin startEMarioGateDrawing(emario);
|
||||
builtin startEMarioRunAway(emario);
|
||||
|
||||
builtin isEMarioDownWaitingToTalk(emario);
|
||||
builtin isEMarioReachedToGoal(emario);
|
||||
|
||||
// misc
|
||||
builtin isWaterMelonIsReached(melon);
|
||||
builtin killMushroom1up(handle);
|
||||
builtin checkMonteClear(a);
|
||||
builtin raiseBuilding(a);
|
Loading…
Reference in a new issue