• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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
 
Level 12
Joined
Dec 25, 2010
Messages
972
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.
Top