Register and log in to move these advertisements down
Adding A Spell Book Power To A Hero
Elric
|
Category: |
Code |
Level: |
Beginner
|
Created: |
Monday December 13, 2010 - 18:42 |
Updated: |
Wednesday December 15, 2010 - 13:29 |
Views: |
12936 |
Summary: |
Here is How To Add A Spell Book Power To A Hero |
|
Rating
Staff says
-
|
Members say
4.5
|
Average
4.5/5.0
|
4 votes
|
Hero.ini
Saurons in this case before the Behavior Paste this:
Code |
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_EarthquakewUnpause
SpecialPowerTemplate = Earthquake
TriggeredBy = Upgrade_Earthquake
End |
Replace
Code |
AvailibleAtStart = Yes |
With
then in Upgrade ini Make a new upgrade called:
Code |
Upgrade Upgrade_Earthquake
Type = Object
End |
Then In Experiencelevels.ini
Find Sauron Or What Ever Hero and Under the Level you want If There isnt Upgrades make a code Line like this:
Code |
Upgrades = Upgrade_Earthquake |
Know Go Test it Out!
Comment Please and thanks for reading...
CommentsDisplay order: Newest first THEVALAR - Monday June 22, 2015 - 11:55 Your Guide is not working. Did everything what you said and the spells not visible in the palantir. witch is interesting cos I aded this line quiet well to the coding InPalantir = Yes so i have no idea whats the problem, probably the command button but realy dont know. I send you here the codes:
Galadriel.ini
;------- Chill-Wind --------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_ChillWindUnpause
SpecialPowerTemplate = ChillWind
TriggeredBy = Upgrade_ChillWind
End
Behavior = OCLSpecialPower ModuleTag_ChillWind
SpecialPowerTemplate = ChillWind
OCL = OCL_SpellBookChillWind
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = Yes
StartsPaused = Yes
End
;------- Sunflare -----------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_SunflareUnpause
SpecialPowerTemplate = Sunflare
TriggeredBy = Upgrade_Sunflare
End
Behavior = OCLSpecialPower ModuleTag_Sunflare
SpecialPowerTemplate = Sunflare
OCL = OCL_SpecialPowerSunflare
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = Yes
AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES
ReEnableAntiCategory = Yes
AttributeModifierWeatherBased = Yes
WeatherDuration = SPELL_SUNFLARE_DURATION
ChangeWeather = SUNNY
StartsPaused = Yes
End
Command Button:
CommandButton Command_ChillWind
Command = SPECIAL_POWER
SpecialPower = ChillWind
Options = NEED_TARGET_POS
TextLabel = CONTROLBAR:ChillWind
ButtonImage = KUChillWindIcon
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipChillWind
RadiusCursorType = ChillWindRadiusCursor
CursorName = AttackObj
InvalidCursorName = GenericInvalid
InPalantir = Yes
End
CommandButton Command_Sunflare
Command = SPECIAL_POWER
SpecialPower = Sunflare
Options = NEED_TARGET_POS
TextLabel = CONTROLBAR:Sunflare
ButtonImage = SBGood_Sunflare
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipSunflare
RadiusCursorType = SunflareRadiusCursor
CursorName = AttackObj
InvalidCursorName = GenericInvalid
InPalantir = Yes
End
Special Power:
;------------------------------------------------------------------------------
SpecialPower ChillWind
Enum = SPECIAL_SPELL_BOOK_CHILL_WIND
RadiusCursorRadius = 300 ; Match the radius in FXList TaintFX
RequiredSciences = SCIENCE_ChillWind
ReloadTime = 1 ; in milliseconds
InitiateAtLocationSound = ChillWind
Flags = RESPECT_RECHARGE_TIME_DISCOUNT
ViewObjectDuration = 10000
ViewObjectRange = 200
End
;------------------------------------------------------------------------------
SpecialPower Sunflare
Enum = SPECIAL_SPELL_BOOK_SUNFLARE
Flags = WATER_OK RESPECT_RECHARGE_TIME_DISCOUNT
RadiusCursorRadius = 300
RequiredSciences = SCIENCE_Sunflare
ReloadTime = 4000 ;// in milliseconds
ViewObjectDuration = 10000
ViewObjectRange = 200
InitiateAtLocationSound = SpellSunflareMS
End
Upgrade:
Upgrade Upgrade_ChillWind
Type = OBJECT
End
Upgrade Upgrade_Sunflare
Type = OBJECT
End
I know the command set and the experiance coding how to add them. could you pplease chek it what might be the problem? clank234 - Wednesday December 15, 2010 - 13:20 you need the InPalantir = Yes OR Radial = Yes otherwise how is your hero gonna use it??? Elric - Wednesday December 15, 2010 - 13:14 No, you don't need That code for Earthquake I don't think...and i didn't memorize the Codes tags thats why it isnt like that and i had to write the tutorial in a hurry... (Dad got mad ehhh... I couldnt fix it till know...) Ill Put in the code anyway just in case... clank234 - Wednesday December 15, 2010 - 5:59 a good tutorial,
but...
1) in the commandbutton you need to include
2) use the code tags e.g. [*code][*/code] without the "*"
3) can you make what your writing clearer. I can understand because it's nothing that hard but there are some beginers that need more understanding.
Otherwise it's a very good tutorial :)
Go to top
|