[Solved] Custom Race System Bugs

Status
Not open for further replies.
Okay,I got another question.I created my own custom race jass script and to play it,I must use 90% handicap with undead race.But,it doesn't seems to be working (for me at least).Even though I use 90% handicap when testing choosing undead,both undead race and my own race show up.And my worker .NEAR HALL spawn in the middle of the map.

Here's the jass codes:
JASS:
library DarklingSetup initializer Init requires CustomRaceSystem

    private function Init takes nothing returns nothing
        local CustomRace c = CustomRace.create("Darkling",RACE_UNDEAD,0.9)
        call c.setTownHall('u007')                  // Chaos Fortress
        call c.addWorkerType('e002',c.NEAR_MINE,4)  // Lost Soul
        call c.addWorkerType('u00F',c.NEAR_HALL,1)  // Extractor
        call c.addHeroType('U00E')                  // Empath
        call c.addHeroType('H000')                  // Council Overlord
        call c.addHeroType('U00O')                  // Soulmonger
        call c.addHeroType('H001')                  // Night Assasin
        call c.setAIScript("undead.ai")
    endfunction
    
endlibrary
 
Okay,I got another question.I created my own custom race jass script and to play it,I must use 90% handicap with undead race.But,it doesn't seems to be working (for me at least).Even though I use 90% handicap when testing choosing undead,both undead race and my own race show up.And my worker .NEAR HALL spawn in the middle of the map.

Here's the jass codes:
JASS:
library DarklingSetup initializer Init requires CustomRaceSystem

    private function Init takes nothing returns nothing
        local CustomRace c = CustomRace.create("Darkling",RACE_UNDEAD,0.9)
        call c.setTownHall('u007')                  // Chaos Fortress
        call c.addWorkerType('e002',c.NEAR_MINE,4)  // Lost Soul
        call c.addWorkerType('u00F',c.NEAR_HALL,1)  // Extractor
        call c.addHeroType('U00E')                  // Empath
        call c.addHeroType('H000')                  // Council Overlord
        call c.addHeroType('U00O')                  // Soulmonger
        call c.addHeroType('H001')                  // Night Assasin
        call c.setAIScript("undead.ai")
    endfunction
    
endlibrary

Modify the Undead version script to fix everything
 
Status
Not open for further replies.
Back
Top