![]() |
#1 |
User
Join Date: Jan 2015
Posts: 6
![]() |
![]() 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: 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("human.ai") endfunction endlibrary see? all regular heroes have raw codes ....how 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 |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
Procrastination Incarnate
Development Director
|
![]() In the object editor, press ctrl+D to switch between name view and rawcode view. You could also use the unit type in a trigger and then convert that trigger to custom text, but the object editor approach is simpler.
__________________ |
![]() |
![]() |
![]() |
#3 |
default string
|
![]() Isn't that a jngp feature?
|
![]() |
![]() |
![]() |
#4 |
PhD
Cinematics Moderator
|
![]() Nope. Not that I remember. Should work in normal editor.
__________________ |
![]() |
![]() |
![]() |
#5 |
default string
|
![]() Yup, you're right.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|