gradius12 wrote: ↑Mon Oct 09, 2023 10:19 pm
okay charges work now and it affects the general train quest again
The cmp is comparing -C which is the type of Wind seal, does the general train quest have the same values at -C? Otherwise, just deactivate it on the general train quest, it isn't needed there this script.
_______________
Edit
For the 10000 used of SS. I tried to make something specific for the medal opossite to the original which is to master the skills. Try if it work as I already have the medal and I am lazy to load an old save right now. This is for eveyrone whos ays the original script doesn't give them the medal.
Use Same SS 4 times.
Code: Select all
[ENABLE]
aobscanmodule(WeaponArt,$process,66 89 53 04 66 3B C2) // should be unique
alloc(newmem,$1000,WeaponArt)
label(code)
label(return)
newmem:
cmp dx,#99
jl Step1
cmp dx,#999
jl Step2
cmp dx,#9999
jl Step3
jmp code
Step1:
mov dx,#99
jmp code
Step2:
mov dx,#999
jmp code
Step3:
mov dx,#9999
jmp code
code:
mov [rbx+04],dx
cmp ax,dx
jmp return
WeaponArt:
jmp newmem
nop 2
return:
registersymbol(WeaponArt)
[DISABLE]
WeaponArt:
db 66 89 53 04 66 3B C2
unregistersymbol(*)
dealloc(*)
{
// ORIGINAL CODE - INJECTION POINT: sao_lr-Win64-Shipping.exe+12BB69A
sao_lr-Win64-Shipping.exe+12BB671: 45 33 C9 - xor r9d,r9d
sao_lr-Win64-Shipping.exe+12BB674: 88 44 24 38 - mov [rsp+38],al
sao_lr-Win64-Shipping.exe+12BB678: 44 8B C7 - mov r8d,edi
sao_lr-Win64-Shipping.exe+12BB67B: C6 44 24 30 3E - mov byte ptr [rsp+30],3E
sao_lr-Win64-Shipping.exe+12BB680: C6 44 24 28 3D - mov byte ptr [rsp+28],3D
sao_lr-Win64-Shipping.exe+12BB685: 48 89 74 24 20 - mov [rsp+20],rsi
sao_lr-Win64-Shipping.exe+12BB68A: E8 81 B7 E0 FF - call sao_lr-Win64-Shipping.exe+10C6E10
sao_lr-Win64-Shipping.exe+12BB68F: 66 89 7B 04 - mov [rbx+04],di
sao_lr-Win64-Shipping.exe+12BB693: EB 0E - jmp sao_lr-Win64-Shipping.exe+12BB6A3
sao_lr-Win64-Shipping.exe+12BB695: B8 10 27 00 00 - mov eax,00002710
// ---------- INJECTING HERE ----------
sao_lr-Win64-Shipping.exe+12BB69A: 66 89 53 04 - mov [rbx+04],dx
// ---------- DONE INJECTING ----------
sao_lr-Win64-Shipping.exe+12BB69E: 66 3B C2 - cmp ax,dx
sao_lr-Win64-Shipping.exe+12BB6A1: 77 1D - ja sao_lr-Win64-Shipping.exe+12BB6C0
sao_lr-Win64-Shipping.exe+12BB6A3: 0F B7 03 - movzx eax,word ptr [rbx]
sao_lr-Win64-Shipping.exe+12BB6A6: 48 8D 4C 24 40 - lea rcx,[rsp+40]
sao_lr-Win64-Shipping.exe+12BB6AB: 66 89 44 24 40 - mov [rsp+40],ax
sao_lr-Win64-Shipping.exe+12BB6B0: E8 8B 50 FF FF - call sao_lr-Win64-Shipping.exe+12B0740
sao_lr-Win64-Shipping.exe+12BB6B5: 84 C0 - test al,al
sao_lr-Win64-Shipping.exe+12BB6B7: 74 07 - je sao_lr-Win64-Shipping.exe+12BB6C0
sao_lr-Win64-Shipping.exe+12BB6B9: B1 01 - mov cl,01
sao_lr-Win64-Shipping.exe+12BB6BB: E8 C0 4D FB FF - call sao_lr-Win64-Shipping.exe+1270480
}
In theory after having used the same SS 4 times with this on, you should get it. Please, if you have modified the value before, go to the pointer and set it to 99 or lower before using.
Edit2: Confirmed on old save that works after using 4 times. The affinity one I am getting it automatically on old save after killing a couple of things, so I don't think a specific script for the medal is needed.
Edit3: I am not sure if the script I put of the Chaing Burst actually does something or it is purely visual.