• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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