Skip to content

How to make heal skill on 5x5 range #61

Answered by armoha
armoha asked this question in Q&A
Discussion options

You must be logged in to vote

epScript example)

  • Zergling has heal skill, which costs 20 Energy and heals Hydralisks by 10 HP at 5x5 square, and uses Train Broodling button under the scenes.
  • Hydralisk has HP regeneration so we'll ignore max hp.
// BuildCheckConst : https://cafe.naver.com/edac/98602
import bcc.BuildCheckConst;

function healSkill() {
    var healCenter = 0;
    var healPlayer;

    // we'll cache unit selections because they're seldom changed 
    const ptrCache = EUDVArray(8 * 12)();
    const epdCache = EUDVArray(8 * 12)();
    const vr1, vr2 = EUDVArrayReader(), EUDVArrayReader();
    var ptr, epd;
    DoActions(
        vr1.seek(ptrCache, EPD(ptrCache), ptr), 
        vr2.seek(epdCache, EPD(epdCache)

Replies: 1 comment 8 replies

Comment options

armoha
Apr 25, 2022
Maintainer Author

You must be logged in to vote
8 replies
@armoha
Comment options

armoha Apr 27, 2022
Maintainer Author

@TAEKHi
Comment options

@TAEKHi
Comment options

@armoha
Comment options

armoha Apr 28, 2022
Maintainer Author

@TAEKHi
Comment options

Answer selected by armoha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants