thirst for knowledge Cheater Reputation: 0
Joined: 15 Jan 2014 Posts: 28 Location: Russia
|
Posted: Sat May 26, 2018 2:16 pm Post subject: Divinity - Original Sin 2 |
|
|
Hi guys. Help me find the solution of the problem. How to make a script so that the value changes only in the player if the structure is shared.
How to write a script so that the number of effects from the weapon only worked for the player if the structure is general, if I changed the value to the moves, then the value changes also for the enemy
newmem:
code:
cmp r12,0
jne @f
jmp return
@@:
push r8
mov r8, [r12+120]
cmp [r8+340],44E74000 //Id Enemy-44B54000;// Id Player-44E74000
pop r8
jne @f
push rdi
mov rdi,(float)30 // % percentage probability of weapon effect "Add 30%"
movd xmm11,rdi
addps xmm9,xmm11 // >> xmm9 original meaning %
mov [r13+2C],(float)18 //Number of effect duration from the weapon
pop rdi
@@:
lea r14,[rsi+rcx*8] // Original Instruction
cmp r14,rsi
jmp return
|
|