View previous topic :: View next topic |
Author |
Message |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Dec 27, 2015 8:51 am Post subject: |
|
|
Inject at a spot that is constantly accessing your currently selected unit's health.
Code: | label(super_toggle)
label(enable)
registersymbol(super_toggle)
newmem:
cmp byte ptr [super_toggle],1
jne code
mov byte ptr [super_toggle],0
cmp [?max_hp?],#999999
jl enable
sub [?max_hp?],#999999
jmp code
enable:
add [?max_hp?],#999999
add [?cur_hp?],#999999
code:
// original crap |
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sat Jan 09, 2016 2:41 am Post subject: |
|
|
Oh,this script working very nice .
But when making script for super unit's(current&max health) how to make script for reset unit's(come back to first max value and change current to max).
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Jan 09, 2016 9:50 am Post subject: |
|
|
Keep that same script enabled and execute your toggle script a second time.
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Jan 21, 2016 4:11 am Post subject: |
|
|
Script for Reset Unit's : making script that will affect the Unit. This will heal the unit and reset it from being weak or a super unit.(this only works on SINGLE UNITS.)
The better write and info for you to help me.
|
|
Back to top |
|
 |
|