View Single Post
Old 01-26-2015, 08:17 PM   #1
Join Date: Jan 2015
Posts: 6

moraru.cosmin1981 has little to show at this moment (0)

Default New hero - but how do i create/ or view his raw code?

hello all

i created a custom hero, called BloodKnight

he is derived from the regular Human Paladin model - except that my custom hero uses the Spell breaker unit as a body design, and the face of the Blood Mage hero

his abilities are allmost identical to the regular Human Paladin, except instead the Devotion aura (more armor to friendly units) he has Drain Mana

he works very well, is not some OP monster or anything, so in this regard i succeesed

but since i am also creating a new race, a custom race the naga, as a 5th selectable race, i need the RAW CODE of my custom hero!

this is where i need the code:
library HumanSetup initializer Init requires CustomRaceSystem
    private function Init takes nothing returns nothing
        local CustomRace c = CustomRace.create("Human",RACE_HUMAN,1.0)
        call c.setTownHall('htow')                  // Town Hall
        call c.addWorkerType('hpea',c.NEAR_MINE,5)  // Peasant
        call c.addHeroType('Hpal')                  // Paladin
        call c.addHeroType('Hamg')                  // Archmage
        call c.addHeroType('Hmkg')                  // Mountain King
        call c.addHeroType('Hblm')                  // Blood Mage
        call c.setAIScript("")

see? all regular heroes have raw codes do i see or add a custom hero raw code?

i used RMPQEx on the map with my custom hero, but there was no mention of my custom hero

many thanks
moraru.cosmin1981 is offline   Reply With Quote
Sponsored Links - Login to hide this ad!