OK Skill Erase done with AI effect...
push_event // skill_name_id
push_const 180
add
fetch_i4
push_const 256
div
push_const 1395 //<--- id skill ERASE
equal
push_reg_sp
fetch_i
branch_false L64129
push_event // gg
push_const 632
add
fetch_i
push_const 100
func_call 218169344 // func[Rand]
shift_sp -1
push_const 30 //<--- % of landing skill
less
branch_false L64129
push_event // myself
push_const 704
add
fetch_i
func_call 184549616 // func[Despawn]
shift_sp -1
L64129
Now my problem is to make Betray effect on AI for summon...
(summon should attack his summoner) this is AI i've done:
push_event // skill_name_id
push_const 180
add
fetch_i4
push_const 256
div
push_const 1380 //<--- id skill BETRAY
equal
push_reg_sp
fetch_i
branch_false L64130
push_event // gg
push_const 632
add
fetch_i
push_const 100
func_call 218169344 // func[Rand]
shift_sp -1
push_const 70 //<--- % of landing skill
less
branch_false L64130
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // master
push_const 552
add
fetch_i // id
push_const 36
add
fetch_i4
push_const 1
push_const 1
push_const 1000000
func_call 184811530 // func[AddAttackDesireEx]
shift_sp -4
shift_sp -1
L64130
I think code are correct but summon didn't attack his summoner... some AI coder better then me can help ??
I will release my pack when a solution will be found. I'm annoyed by only leechers and not dev that help community...
|