View Single Post
  #1    
Old May 26th, 2009, 10:08 PM
RaycrowX's Avatar
RaycrowX
Beginning ROM Hacker
 
Join Date: Apr 2009
Location: Jenison, MI
Gender:
I haven't seen this anywhere, so I thought I'd post my own here. Basically, it is a #define list to make using movements easier. I started out using PKSV and then moved to XSE, which I like better, but I miss the easy movements that PKSV allowed me to do. But luckily, HackMew has made some XSE commands that make adding user-friendliness and readability very easy.

The list:

It is in this spoiler and and also attached.
Spoiler:
#define look_up 0x01
#define look_left 0x02
#define look_right 0x03
#define look_down 0x04

#define step_down_very_slow 0x08
#define step_up_very_slow 0x09
#define step_left_very_slow 0x0a
#define step_right_very_slow 0x0b
#define step_down_slow 0x0c
#define step_up_slow 0x0d
#define step_left_slow 0x0e
#define step_right_slow 0x0f
#define step_down 0x10
#define step_up 0x11
#define step_left 0x12
#define step_right 0x13
#define jump_down2 0x14
#define jump_up2 0x15
#define jump_left2 0x16
#define jump_right2 0x17
#define step_down_fast 0x1d
#define step_up_fast 0x1e
#define step_left_fast 0x1f
#define step_right_fast 0x20
#define step_in_place_down 0x21
#define step_in_place_up 0x22
#define step_in_place_left 0x23
#define step_in_place_right 0x24
#define step_in_place_down_fast 0x25
#define step_in_place_up_fast 0x26
#define step_in_place_left_fast 0x27
#define step_in_place_right_fast 0x28
#define step_in_place_down_very_fast 0x29
#define step_in_place_up_very_fast 0x2a
#define step_in_place_left_very_fast 0x2b
#define step_in_place_right_very_fast 0x2c
#define look_down_delayed 0x2d
#define look_up_delayed 0x2e
#define look_left_delayed 0x2f
#define look_right_delayed 0x30
#define slide_down 0x31
#define slide_up 0x32
#define slide_left 0x33
#define slide_right 0x34

#define slide_down_on_right_foot 0x3d
#define slide_up_on_right_foot 0x3e
#define slide_left_on_right_foot 0x3f
#define slide_right_on_right_foot 0x40
#define slide_down_on_left_foot 0x41
#define slide_up_on_left_foot 0x42
#define slide_left_on_left_foot 0x43
#define slide_right_on_left_foot 0x44

#define face_player 0x4a
#define face_away_from_player 0x4b
#define jump_down 0x4e
#define jump_up 0x4f
#define jump_left 0x50
#define jump_right 0x51
#define jump_in_place_face_down 0x52
#define jump_in_place_face_up 0x53
#define jump_in_place_face_left 0x54
#define jump_in_place_face_right 0x55
#define jump_in_place_face_down_to_up 0x56
#define jump_in_place_face_up_to_down 0x57
#define jump_in_place_face_left_to_right 0x58
#define jump_in_place_face_right_to_left 0x59
#define hide_sprite 0x60
#define show_sprite 0x61
#define say_! 0x62
#define say_? 0x63
#define say_x 0x64
#define say_!! 0x65
#define say_ 0x66

#define stop 0xfe

This list was originally found in the applymovement section of diegoisawesome's XSE tutorial and edited manually and with regular expressions.

Use:
1. Do one of the following:
  • Save the contents of the spoiler to a file called stdmove.rbh in your XSE directory.
  • Download the attached stdmove.txt and rename it to stdmove.rbh, saving it in your XSE directory.
  • Download the file located here to your XSE directory.
It should look like this:
Spoiler:

2. Use this code in your script:
Spoiler:
#include stdmove.rbh

#dynamic 0x800000

#org @walkandjump
applymovement 0x1 @move
waitmovement 0x1
end

'You must use #raw before the defined word
#org @move
#raw jump_down
#raw step_down
#raw step_right
#raw jump_up2
#raw face_player
#raw step_up
#raw hide_sprite
#raw stop

I hope this helps out somebody. I found it a lot easier to write my movement scripts using this list.
Attached Images
File Type: png stdmove.png‎ (27.4 KB, 912 views) (Save to Dropbox)
Attached Files
File Type: txt stdmove.txt‎ (2.3 KB, 115 views) (Save to Dropbox)
Reply With Quote