User:Sanky/Scripting

From Wikifang, a definitive guide to Telefang, Dino Device and Bugsite
Jump to navigation Jump to search

Dumping the stuff I have figured out.

00 - end script (return to control to the player)
01 [bank] [id] - display text (not sure about bank mappings)
02 ? - also text
03 - nothing?
04 [frames] - sleep.  this is used very often
05 - wait for A
06 - nothing?
07 [map?] [position?] - change map/warp
08 [map?] [position?] - warp antenna tree?  (tries to open a small box with position)
09 ? - another warp
0a ? - another warp
0b ? - another warp
0c [direction] - turn Shigeki
0d [direction] - turn Shigeki (this one seems to be used)
0e - *hop* Shigeki
0f [direction] - *hop* Shigeki one space away
23 [npc] [xy] [speed] - make an npc move
25 [npc] - hide sprite
27 [npc] - *hop* this NPC
28 [npc] - *hop* this NPC
2c [direction] - *hop* partner Denjuu one space away
31 [party id] [t-fanger class] [enemy type] - battle!  enemy type can be 0 (wild denjuu), 1 (t-fanger) or 2 (solo denjuu)?
32 same as above?
33 same as above?
44 [id] - sound effect
45 [id] - change music
4d [id] [??]? - cutscene
  00 = opens menu (like select)
  01 = opens evolution screen
  02 = flying baseball
  03 = looking up the antenna tree
  04 = Kai cutscene: This guy is one of my "soldiers".
  05 = [http://img7.imagebanana.com/img/o40vfohg/20120612T214317bgbTELEFANGPWBXTJ.png UNUSED CUTSCENE] (wrong text)
  07 = Possibly a nuked cutscene.  Loads GB menu graphics into memory (they probably used to be something else), shows a nearly blank screen with a blue palette, after a few seconds, then continues *
  there definitely WAS something here, but it's probably gone.
  09 = Index full!
  0a = finally, we're connected & falling
  14 = Full image 1 (Sanaeba & Yarrow) [DISABLED]
  15 = Full image 2 (Shigeki) [DISABLED]
  16 = Full image 3 (Shigeki x Doomsday) [DISABLED]
  64 = shigeki drop on head
  65 = get key
  66 = anjios flying?
  67 = something?
  68 = create glowy glowy ring/teleporter?
  96 = Crypto GET

The first T-Fanger script (inside the spring) begins at 0x150c38. The script dissected:

04 04 - sleep 4 frames
45 26 - change music
01 03 aa - print text (Phew, it's hot outside…)
0d 03
04 0a
0d 01
04 0a
0d 03
04 0a
0d 01
04 0a
0d 02 - this is Shigeki's "turn body from side to side to display negation"
04 28 - sleep
01 03 ab - text - "Yeah, that's too bad…"
04 32 - sleep
33 00 27 01 - battle, t-fanger, class 27, party id 0
04 32 - sleep
28 00 - *hop*
04 32 - sleep
01 03 ac - text "S-strong…"
23 00 11 78 - move npc 0 in 1, 1 speed 78
57 00 - I don't know
23 00 13 78 - move
57 00 - ?
23 00 03 78 - move
57 00 - ???
25 00 - hide npc sprite
14 06 0d - this might be setting a flag so the npc doesn't appear any more
00 - end script

intro starts somewhere long above 0x150962 (this exact address is for its cutscene param)