- Joined
- Jan 9, 2016
- Messages
- 1,487
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:
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