标题: 【转贴】CEUTHONYMUS'S PHANTASY STAR IV SAVE-STATE TWEAKING [打印本页] 作者: Ken_Tse 时间: 2011-3-12 10:00 标题: 【转贴】CEUTHONYMUS'S PHANTASY STAR IV SAVE-STATE TWEAKING
XXXXXXXXXXXXXX CEUTHONYMUS'S PHANTASY STAR IV SAVE-STATE TWEAKING
version 1.0
PURPOSE
This is intended as a supplement to Thundergod's PSIV Save State Hacking
Guide (v1.1).
See that for basics of save-state files, hexadecimal, working with offsets,
etc.
This guide contains:
-info on character stats
-info on enemy stats
-analysis of some spells
-an attempt to analyze how attacks work
-a convenient technique/skill summary
-a guide to weapons and armor
-a hexadecimal index to all items, techs and skills
-other fun facts
_______________________________________
INFO ON STATS
STRENGTH, MENTAL, AGILITY, DEXTERITY (str, mtl, ag, dex)
Along with HP and TP, these are your characters primary stats.
Roughly:
strength - determines attack power
mental - determines magic efficacy and resistance
agility - determines defense power and position in tournament
dexterity - determines ability to strike enemy
Now each of these appears in three forms in the save-state file:
1) base. This reflects your characters intrinsic ability, independent
of equipment. It is incremented when you advance a level
2) equipped. Certain equipment (such as psy-shield swift-helm) will add
to your base stat. The equipped stat is the sum of the base stat
and whatever is added by your equipment. It is recalculated
whenever you equip or unequip an item.
This is the value that appears in the stat window during the
game. To see your base stats, just unequip everything.
3) in-battle. During battle, the power of some of your chars actions
are base on this stat.
Certain enemy/friendly magics (such as saner, vision)
may modify this stat.
This stat is initialized to your equipped stat at the beginning
of a battle.
ATTACK POWER, DEFENSE POWER, MAGIC DEFENSE POWER (atk, dfs, mdfs)
These stats are based on the others. Roughly,
atk - your attack power when attacking with a weapon
dfs - your protection from enemy attacks
mdfs- your protection from enemy magic
Now magical defense is a 'hidden' stat that does not appear in the stat
window.
It looks to me like the game was designed with the idea that mdfs would
act
like the other stats, but was later removed from view for some reason,
maybe
just to make things simpler. It appears to work similarly to dfs,
and is almost as important. Below I list the mdfs values for armor and
shields.
Each equippable item may add to these stats. They are set as:
atk = base str + equipments attack power
dfs = base ag + equipments defense power
mdfs= base mtl + equipments magical defense power
Each of these stats appears in 2 forms in the save state file
1) standard. This is recalculated as above whenever you equip or unequip
an item.
atk and dfs appear in your stat window.
2) in-battle. This is initialized to the standard stat at the beginning
of
a battle. It may be modified by certain enemy/friendly magics
(such as shift, deban) during fighting.
_______________________________________
STAT-MODIFYING SKILLS AND TECHNIQUES
res adds 16 + mtl (equipped) of caster to one humanoid
gires 80 + mtl
nares 240 + mtl
sar adds 0 + mtl to all humanoids
gisar 64 + mtl
nasar 160 + mtl
miracle adds 80 + mtl to all
recover adds 240 + str to android caster
medic pwr adds 0 + str to all humanoids, revives
medice adds 128 + mtl to one
ataraxia adds 0 + mtl technique points to all
regen max hp one humanoid, revives
monomate adds 48 to one humanoid
dimate adds 96
trimate adds 320
woodcane adds 32 to one humanoid
guard rod adds 64 to all humanoids
moon dew revive one humanoid at 1/4 max hp
sol dew max hp one humanoid, revive
star dew adds 128 hp all humanoids
___________________________________
THE OFFSETS
11888 - 118AF items. 40 items max. see item index below.
118B0 - 118B3 money
118BC - 1195B macros are stored here
_____________
CHAZ OFFSETS
11980,1 level
11982-11985 experience
11986,7 current HP
11988,9 maximum HP
1198A,B cTP
1198C,D mTP
1198E condition (00=normal 01=poisioned 03=paralyzed 04=dying ..)
11990 str base
11991 str equipped
11992 str in battle
11993 mtl base
11994 mtl
11995 mtl ib
11996 ag base
11997 ag
11998 ag equipped
11999 dex base
1199A dex
1199B dex ib
1199C,D atk
1199E,F atk ib
119A0,1 dfs
119A2,3 dfs ib
119A4,5 mdfs
119A6,7 mdfs ib
119A8 - 119C3 sensitivity factors (probably similar to enemy's, see below)
119C4 weapon slot 1
119C5 weapon slot 2
119C6 headgear slot
119C7 armor slot
119CA-119D9 possessed techniques (max 16). see index below.
you can give a character any tech you want, but it may
not work right.
119DA-119E1 possesed skills (max 8, only 7 display properly)
Changing these is less likely to work correctly. see index below.
119E2-119F1 skill amounts. alternates current/maximum number,
in the same order as they are possesed
119F8-119FB alys's name. letters are stored as
A=01 B=02 ... (not ascii)
119FE,F alys's occupation
___________________________
OTHER CHARACTERS
The arrangement of the other character's stats is the same as for chaz.
chaz 11980 offset of first byte of experience
alys 11a00
hahn 11a80
rune 11b01
gryz 11b80
rika 11c00
demi 11c80
wren 11d00
raja 11d80
kyra 11e00
seth 11e80
____________________
ENEMY STATS
1st enemy: (=leftmost on screen)
name 6678- (terminated by FF)
cHP 6686,7
mHP 6688,9
tech seal? 668E
ag 6697
ag ib 6698
atk 669C,D
atk ib 669E,F
dfs 66A0,1
dfs ib 66A2,3
mdfs 66A4,5
mdfs ib 66A6,7
sensitivity factors 66A8-66C2 (see section on damage)
exp 66D8,9 (changing this is the easiest way to gain
levels early in the game)
money 66DA,B
_________________________________________________
DAMAGE AND SENSITIVITY FACTORS
How is the damage inflicted calculated?
Each kind of enemy has a certain degree of susceptibility to
different weapons, techniques and skill attacks. This is determined
by 14 'sensitivity factors', numbers usually between 0 and 4.
Each weapon and most offensive techs and skills is associated with
one of these factors. I refer to the weapons and spells associated with
the first factor (offset 66A8 in the first enemy) as
"group 1" or "G1" weapons, etc.
(for weapons)
G1 stun-shot torndagger tt dagger
G2 laser-sword plasma-sword lac-sword
G6 psy-wand silver-tusk elsydeon
(i list the group of each weapon in my weapons guide below)
note each of these is 1 byte. the odd offsets in 66A9-66C3 are always
repetitions of the even offsets 66A8-66C2. The odd offsets dont
appear to do anything and i dont know why theyre there.
Offensive skills work in several different ways- some behave like
techniques,
some are dependent on the weapon equipped, a few (like rayblade) act like a
tech
but must have a weapon equipped to be used (but which weapon doesnt matter).
I sometimes refer to techs and tech-like skills as just 'magics' or
'spells'.
If the associated sensitivity factor of a given weapon or spell
is 0, such an attack will invariably do only 1 damage. Some bosses and
creatures (such as dimension worms) exploit this and are susceptible to
only a few kinds of attacks. Look for high values to choose which attacks to
use.
Instant-death, freezing, and enemy-stat modifying spells also have
sensitivity factors- the higher the number the better the probability of
success (with a 0 factor making it impossible). Note there are 5
different instant-death groups, and 2 freeze groups.
Skills such as crosscut, dblslash, etc do not have their own
sens. factor, but instead depend on the sensitivity factor of the weapon
equipped.
A) damage done by magic attacks:
the damage inflicted on an enemy by magic Y can be predicted by
this number is then randomly perturbed and subject to constraints:
1) any attack which strikes does at least 1 damage
2) no attack does more than 999 damage
(this goes for all kinds of attacks)
D) damage done by weapon-based attacks:
the damage inflicted by weapon Y appears to run as (?)
damage= [5/8 * fighters ib atk * enemys Y-factor] - enemys ib dfs
this is just a first guess.
chaz'z attack, crosscut, airslash are based in some way on:
ib atk, enemys sensitivity factor for the sword chaz is using, enemys ib
dfs.
And vortex, doubslash, dirupt, sweeping are probably similar.
The important thing to note here is that the value of a weapon to you
cannot be measured just by its atk power- you must also consider which
group it belongs to. In fact since the sensitivity factor acts
multiplicatively,
the group is usually the primary consideration. This accounts for the
great power of
weapons like elsydeon and silver tusk.
E) combos:
i think the damage done by most of the (non instant-death) combos is
damage= [ sum of base values of spells involved (as in part A)
+1/2 sum of mtl's of casters ]
* enemy's combo factor - enemys mdfs
None of the above is certain. It was inferred experimentally, using a few
trials and intuition (not through analysis of the ROM).
________________________________
BIOS VS MECHS
Bios and mechs are differentiated by their sensitivity factors.
Consider how the factors (66A8-66C2) differ
for some different bios and mechs:
- put A4 in your itemlist. It will be named 'wat' in your list and when used
as an item during battle it will do 999 damage to every enemy on screen
(for most enemies). Actually the damage done is about 80 * the numerical
value of the first letter of the enemys name, so creatures whose name
starts early in the alphabet are somewhat resistant.
- put 8C in your itemlist. It gives you a little MAP.
- the SHADOWBLADE _decreases_ your stats. this happens because the sword is
so powerful a rollover error occurs when your stats are recalculated. If
you equip level 1 chaz with it (when his stats are very small) it will
give him mtl 255 dex 254 , until he advances a level.
- if your emulator crashes when fighting LASHIEC, you can get around it by
giving him 5 hit points and killing him in one hit.
- you choose the characters: your current fighters are stored at
11882-11886.
chaz 00 you can change these to get whoever you want. you
alys 01 can even duplicate a character (although the copies
hahn 02 wont be independent). Resurrect alys! Have 5 rajas!
rune 03
gryz 04 you may have to reorder or enter a battle to get them
rika 05 to display right after editing.
demi 06
wren 07 of course, it doesnt work perfectly, but have fun.
raja 08
kyra 09
seth 0A
term FF
- even if you kill zio the first time (by fooling with his stats), he still
kills
alys.
__________________________________________
GUIDE TO TECHNIQUES AND SKILLS
W = a weapon must be equipped to use this skill
* = a skill which doesnt require a weapon
Healing (# = works on androids)
3 res +hp one ch ha ri ra ky
6 gires
9 nares
12 sar +hp all ri ra
24 gisar
36 nasar
* recover +hp android # de wr
* medicpwr +hp all, revive de
* ataraxia +tp all ra
* miracle +hp all # ra
* medice +hp one # ky
36 regen max hp one, revive ra
Special Healing
9 arows cure sleep (all) ru ra
2 anti cure posion ch ha ra ky
5 rimpa cure paralysis ch ha ra ky
12 rever resurrect ch ru ra
Freeze
W earth one ch
W moonshade all al
* stasis beam one de
10 rimit all ha ra
* hijammer all wr
* bindwa one ky
Augmentation
7 shift +atk (one) al ri
6 saner +ag al ri
5 gelun -enemy atk ha
* vision +dex ha
4 doran -enemy ag ha
* illusion -enemy ag ri
* barrier +mdfs de wr
5 deban +dfs ri
* war cry +atk (gryz) gr
8 seals prevents enemy techs ru ra
* blessing +dfs ra
* telele -enemy atk ky
* warla +dfs ky
Single enemy attacks
3 foi fire al ru ky
6 gifoi
9 nafoi
W vortex al
4 wat ice ha ru
7 giwat
10 nawat
6 tsu beam ch
11 githu ch
15 nathu ch
* flaeli fire ru ky
W crosscut 2x ch
W doubleslash 2x ri
* flare wr
W rayblade ch
* astral ha
All enemy attacks
10 gra gravity ru ky
15 gigra
19 nagra
* hewn tornado ru ky
8 zan tornado ch al ha
12 gizan
16 nazan
W airslash ch
W disrupt ri
* st fire holy ra
* phononmzr de
* burst rock wr
* efess holy ru
* tandle energy drain ru ky
* positronbolt wr
* sweeping gr
30 megid super attack ch
* legeon ru
Instant death attacks
16 brose all ch gr
W crash one gr
8 vol one ha
16 savol all ha
W death one al
* spark one de wr
W eliminate one ri ha
* holyword one ra
* diem one ru
* negatis all ru
* explode one ch
Seths skills
* dthspell instant death (one)
* mindblst freeze (all)
* corrosion all-enemy attack
* shadow -enemy ag
______________________________________________
GUIDE TO WEAPONS AND ARMOR
Shields dfs mdfs weight
ltr 2 L
cb 5 L
tt 7 H
gr 11 L
crc 15 H
laser bar 18 12 L
psy 21 11 L mtl 1
plasma field 22 11 M
sl 25 4 L
rf 23 16 M
power 24 0 H str 10, atk 10, shift
lac 29 5 H
mahlay 28 12 hahn only
guard 30 18 H
H=Ch Al Gr Ri
M=Ch Al Gr Ri Ha Ky
L=Ch Al Gr Ri Ha Ky Ru Ra
Headgear
crowns: (alys rika kyra)
dfs mdfs mtl
ltr crown 1
cb crown 3 1
tt crown 7
gr crown 11
psy crown 13 4 3
sl crown 16 4
lac crown 19 6
mota ring 21 10 ag 1, rika only
helms: (chaz gryz)
ltr helm 1
cb helm 4
tt helm 7
crc helm 12
sl helm 14 3 2
swift helm 19 3 ag 6
lac helm 22 5
algo ring 24 12 2 str 2, ag 2, dex 2, chaz only
gears: (demi wren)
head gear 7 1
tt gear 10 2
crc gear 13 3
zr gear 16 4
comp gear 18 5
el gear 22 6
lac gear 25 7
palma ring 28 10 wren only
circlets: (hahn rune raja)
lthr band 1
circlet 2 1
psy circlet 5 6 5
sl circlet 10 5 3
lac circlet 12 8 4
dezo ring 20 13 3 rune only
mahlay ring 18 10 2 hahn only
Armor dfs mdfs mtl
(Ch Al Gr Ri Ha Ky)
ltr cloth 2
cb suit 10
cyber suit 50 str 5, atk 5
gr suit 16 Ha Ri Ky
mahlay mail 65 17 hahn only
(Ch Al Gr Ri)
tt mail 15
crc mail 25
psy mail 35 4 2
sl mail 49 4
rf mail 53 14
lac mail 64 9
guard mail 76 12
These are the skills chaz can use (without crashing the program):
crosscut, rayblade, doublslash (sort of), flare, astral, airslash,
disrupt (so), sweeping, corrosion, explode, eliminate (so), spark?,
dthspell, illusion (so), shadow, earth, crash (so), stasisbeam,
mindblast, barrier, recover, vision.
_________________________________
DISCLAIMER
i make no claims of ownership to this guide. anyone who wants
to post, exchange, emend, modify, supplement, plagiarize, or butcher
it can do want they want. hopefully other people who are interested
in this sort of thing will post corrections and additions.作者: yzb 时间: 2011-3-12 12:54