Sorry for the double post. Here's all the stuff I've added:
To CommandButton.ini:
CommandButton Command_SpecialAbilityGaladrielVision
Command = SPECIAL_POWER
SpecialPower = SpecialAbilityGaladrielVision
TextLabel = CONTROLBAR:GaladrielVision
ButtonImage = HSGaladrielVision
Options = NEED_TARGET_POS
RadiusCursorType = PALANTIR_VISION
CursorName = Bombard
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipPalantirVision
InPalantir = Yes
PresetRange = 30.0
End
To CommandSet.ini (3rd entry):
CommandSet GaladrielCommandSet
1 = Command_SpecialAbilityGaladrielHeal
2 = Command_GaladrielLeadership
3 = Command_SpecialAbilityGaladrielVision
4 = Command_ElvenGaladrielLight
5 = Command_SpecialAbilityGaladrielSphere
6 = Command_SpecialAbilityGaladrielQueen
13 = Command_AttackMove
14 = Command_Stop
15 = Command_Guard
End
To ExperienceLevels.ini (Level 5):
ExperienceLevel GaladrielLevel5
TargetNames = ElvenGaladriel
RequiredExperience = Galadriel_LVL5_EXP_NEEDED
ExperienceAward = Galadriel_LVL5_EXP_AWARD
AttributeModifiers = HeroLevelUpDamage4
Rank = 5
LevelUpFx = FX:GandalfLevelUp1FX
;LevelUpOCL = OCL_GandalfLevelUp1OCL
Upgrades = Upgrade_GaladrielVision
SelectionDecal
Texture = decal_hero_good
Style = SHADOW_ALPHA_DECAL
OpacityMin = 50%
OpacityMax = 100%
MinRadius = 40;16
MaxRadius = 200;16
MaxSelectedUnits = 40;1
End
END
To ObjectCreationList.ini:
;;;;;GALADRIEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;
; ---------------------------------------------------------------------------------------
ObjectCreationList OCL_SpawnGaladrielVisionEgg
CreateObject
ObjectNames = PalantirVisionPing
Count = 1
End
End
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;
To SpecialPower.ini:
;------------------------------------------------------------------------------
SpecialPower SpecialAbilityGaladrielVision
Enum = SPECIAL_SPAWN_OATHBREAKERS
ReloadTime = 150000
PublicTimer = No
RadiusCursorRadius = 200.0
InitiateAtLocationSound = SpellPalantirVision
End
To Upgrade.ini:
Upgrade Upgrade_GaladrielVision
Type = OBJECT
End
This is where I think you've made your error (as I can't find anywhere in your code the object coding for "SpecialPowerHugePalantir". You've made one for your PalantirVisionPing2, but not for SpecialPowerHugePalantir. Notice how above, in my own ObjectCreationList stuff, I have SpawnGaladrielVisionEgg? This is in the same spot as your SpecialPowerHugePalantir. As a result, you'll need similar coding here:
To NewProjectiles.ini (this is an ini I've made myself. You can put this bit of code in GoodFactionSubobjects.ini if you want)
;--------------- Galadriel Vision --------------------------------------------------------------------------
Object SpawnGaladrielVisionEgg
Draw = W3DScriptedModelDraw ModuleTag_Draw
DefaultModelConditionState
Model = None
End
End
VisionRange = 200
KindOf = INERT IMMOBILE UNATTACKABLE
Body = ActiveBody ModuleTag_MakesKillWork
MaxHealth = 1
End
Behavior = LifetimeUpdate ModuleTag_HatchTrigger
MinLifetime = 10000
MaxLifetime = 10000
End
End
And to Galadriel.ini:
;-------------------------Visions------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_AragornOathbreakersEnabler
SpecialPowerTemplate = SpecialAbilityGaladrielVision
TriggeredBy = Upgrade_GaladrielVision
End
Behavior = OCLSpecialPower ModuleTag_OCLSpecialPower
SpecialPowerTemplate = SpecialAbilityGaladrielVision
OCL = OCL_SpawnGaladrielVisionEgg
CreateLocation = CREATE_AT_LOCATION
StartsPaused = No
SetModelCondition = ModelConditionState:LEVELED
SetModelConditionTime = 8.1
End
You'll of course have to change quite a few things to suit your needs, but this is the basis of what you'll need. Unfortunately, the Palantir "object" can only be summoned directly beside Galadriel. However, since you are making your's reveal the entire map, this shouldn't be an issue. I have not yet figured out how to make it so you don't have to click a target to use the ability and it will just be activated when the button is clicked (I'm looking for this as I'm going to do something very similar to what you're doing with your Saruman).
Edited by Celeglin, 08 July 2005 - 01:34 PM.