Unregistered
|
Members · 164 posts · joined 26-November 07
Various Codes: NOTE the value next to all of them added to them. As stated above, this value is for the newest version of epsxe since it is WIP. In case it changes later it is easy for everyone to update it.
(NOTE: if one doesn't work TELL ME! I'm probably off by a digit)
//the number of rooms explored so far (located in start menu)
extern SHORT rooms = { "", 0x005f35a0 +3951e0};
//are you using alucard (0) or Richter (1)
extern BYTE character = { "", 0x005f37e0 +3951e0};
//if > 0 game freezes.... think of when alucard levels up. In richters game there is a bug where the game will actually do the dagger crash if this value is > 0 for too long... I will cover this later.
extern SHORT actionfrozen = { "", 0x0064e260 +3951e0};
//1 = paused, 0 = not
extern BYTE paused = { "", 0x006f24d0 +3951e0};
////button values: none pressed= 255, all pressed= 0, square = -128, X = -64, 0= -32, triangle = -16, r1= -8, l1 = -4, r2 = -2, l2 = -1. For each button pressed subtract the amount specified from 255.
extern BYTE buttonpress = { "", 0x005be3b3 +3951e0};
//same thing as button press above. Start and select are included here, as well as pushing the analog sticks in (l3 and r3)
extern SHORT padpress = { "", 0x005f009d +3951e0};
//RICHTER ONLY: if > 0, next forward tap makes him dash. Basically set it to 3 or 4, and instead of walking he always runs.
extern BYTE Dashtimer = { "", 0x00629d50 +3951e0};
//if the # is odd, your on the ground.. If even in the air. It also changes based on whether your standing against a wall or on an incline or decline. But the odd/even rule remains true regardless. Useful if you want to add in new moves and make sure they work right.
extern BYTE ontheground = { "", 0x00629d60 +3951e0};
// How much character is affected in water, 0 = not in it, > 16 damages player if relic not present (richter takes no dmg even without relic it seems). The higher this is, the less mobile you are too. It also causes bubbles to spawn from the player's head if high enough (like when udnerwater).
extern SHORT underwater = { "", 0x0064e288 +3951e0};
//RICHTER ONLY: used for tackle. 1 means you tapped up, 2 means your in mid fireball motion, 3 means hitting the button does the move. Freeze at 3, and hitting square will ALWAYS do the tackle.
extern BYTE tapuptimer = { "", 0x0072c720 +3951e0};
//RICHTER ONLY: used for rising whip: 1 means you tapped down, 2 means you tapped up and hitting the button does a rising whip. Freeze at 2 and guess what happens.
extern BYTE tapdowntimer = { "", 0x0072c724 +3951e0};
//ALUCARD ONLY: used for wing smash... 7 = smash. However, if set to 7 the minute you change to bat he does the move. To delay it hold x. In other words, you would basically want to code something that says when buttonpress = x, this number = 7. The minute you let go of x he would do the move.
extern BYTE wingsmashtimer = { "", 0x006eee34 +3951e0};
//ALUCARD ONLY: wolf DASH (double tap forward)... freeze it to a non zero value (preferably one over 2, since it decreases) and when you press forward he runs instead of walk. I used this to make him ALWAYS move faster.
extern BYTE wolfdashtimer= { "", 0x006ef26c +3951e0};
//ALUCARD ONLY: used for super jump... same premise as the one behind richters. But for alucard, Double jump first, then next jump is super. OR duck then tap jump to superjump off the ground with one button.
extern BYTE tapdowntimer2 = { "", 0x006efe00 +3951e0};
//ALUCARD ONLY: 255 for special move
extern BYTE wolfchargetimer= { "", 0x006efe04 +3951e0};
//ALUCARD ONLY: used for hellfire... take a guess what to do here? 4 for spell.
extern BYTE hellfiretimer= { "", 0x006efe0c +3951e0};
//ALUCARD ONLY: used for tetra spirit... take a guess what to do here? But for this one... you MUST be ducking for the spell to spawn when you hit the button. 7 for spell
extern BYTE tetraspirittimer= { "", 0x006efe10 +3951e0};
//ALUCARD ONLY: yup. 7 for spell
extern BYTE soulstealtimer= { "", 0x006efe18 +3951e0};
//ALUCARD ONLY: 8 for spell, must be ducking
extern BYTE swordbrotherstimer= { "", 0x006efe24 +3951e0};
//ALUCARD ONLY: DOY! Guess? (must be ducking). 4 for spell
extern BYTE summonspirittimer= { "", 0x006efe38 +3951e0};
//ALUCARD ONLY: yup. 5 for spell
extern BYTE darkmetamorphosistimer= { "", 0x006efe3c +3951e0};
//used to determine brightness of screen when map is up. 7 means map is up... 8 means map is closing... 6 is a dark screen with no map. Freeze at 7 to have the screen dim and the map up while alucard/richter are in motion.
extern BYTE selectmenu = { "", 0x006ee7e4 +3951e0};
//these are used to determine the players horizontal and vertical position in the current room. 128 for either one means the player is centered either horizontally, vertically, or both.
extern SHORT hroompos = { "", 0x0064e230 +3951e0};
extern SHORT vroompos = { "", 0x0064e234 +3951e0};
//these next 2 are a bit different than the above 2 though they may sound similar. These are the player's actual ON SCREEN position. A standard room is 256*256. -1 means the player exited the left side, 257 means they exited the right side of the screen. These are very useful for scripting.
extern SHORT hscreenpos = { "", 0x00629ece+3951e0};
extern SHORT vscreenpos = { "", 0x00629ed2+3951e0};
//these are used to determine the players current vertical and horiz position on the MAP screen (what room your in) . The first 2 determine what room the player will be in if he exits the left side of the screen. 2nd set are for the right side.
extern SHORT hroomnum1 = { "", 0x00629ef0+3951e0};
extern SHORT vroomnum1 = { "", 0x00629ef4+3951e0};
extern SHORT hroomnum2 = { "", 0x00629ef8+3951e0};
extern SHORT vroomnum2 = { "", 0x00629efc+3951e0};
//if > 0 player cannot be hit. The 1st one is almost NEVER used. The 2nd one is used 99% f the time.
extern SHORT canbehit1 = { "", 0x00629d5a +3951e0};
extern SHORT canbehit2 = { "", 0x00629d5c +3951e0};
//if > 0 player cannot move or use any attacks (can still pause or bring up map)
extern SHORT canmove = { "", 0x00629d3c+3951e0};
//if this is NOT set to 0 and the canmove address above is > 0 so player can't move, This controls what direction the player will walk on or what it will do. Used for "cut scenes" and also the boss tactics found in the librarian's menu.
extern SHORT automove = { "", 0x00629d34+3951e0};
//an odd one... basically determines when you walk off a ledge how much time you have till you can't jump (think of how when you walk off a platform you have a small time frame to still jump even though you are technically in mid air). > 0 means you can do it. This is why after a tackle in mid air richter can jump again.
extern SHORT candoairjump = { "", 0x00629d4a +3951e0};
//affects the color of the box that says PAUSED for richter, and the color behind the 2nd digit for alucards hp.
extern BYTE pausebox = { "", 0x0064e066 +3951e0};
//determines the color of richters hp gauge (unknown use for alucard)
extern BYTE hpgaugecolor = { "", 0x0064e19e +3951e0};
//RICHTER ONLY: time till whip power up ends.
//ALUCARD ONLY: time till poison ends
extern SHORT whippowerup = { "", 0x00629d40 +3951e0};
//ALUCARD ONLY: time till curse ends
extern SHORT cursetimer = { "", 0x00629d42 +3951e0};
//ALUCARD ONLY: number of hits/shakes till you are free of stone
extern SHORT stonenumhits = { "", 0x00629dbe +3951e0};
//affects the color of boss life gauges, their horizontal position on screen, and the percent each is filled (richter game). Use for alucard unknown
extern SHORT mpgaugecolor = { "", 0x0064e16e +3951e0};
extern SHORT mpgaugehpos = { "", 0x006ee7c0 +3951e0};
extern SHORT mpgauge1pct = { "", 0x006ee7c8 +3951e0};
extern SHORT mpgauge2pct = { "", 0x006ee7cc +3951e0};
//CREDITS TO AMIHIRO FOR THIS CODE:
//Determines the type of dmg inflicted on the player
extern WORD dmgtype = { "", 0x0062a25c+3951e0};
IMPORTANT: MEMORIZE THESE VALUES since they effect the element type inflicted on enemies too, and also stand for the elements used in absorb, weakness, immune and strong to factors as well. They are also used for weapons and items.
32= hit dmg 64 = cut dmg 128 = psn dmg 256= cur dmg 512 = stone dmg 1024 = h20 dmg 2048 = dark dmg 4096 = holy dmg 8192 = ice dmg 16384 = thu dmg 32768 = fire dmg 16 = breaks spikes (ARMOR ONLY), for enemies does dmg based on players maxhp (1/8th)
Combining them equals multi elements. for example: 96 = cut and hit dmg, 41216 = ice, fire and cur dmg. These multi element numbers will mostly be used on armors, and to determine what effects enemies in what manner.
Adding certain numbers to each one as well results in other effects on the player:
add 2 = move PUSHES back (like when you take 1 pt of dmg), add 4: flies back with no SLAM into wall dmg
add 5 = fly back WITH slam into wall dmg 6 = drains hp like water does
|