Jump to content


Photo

Upgrading Spell


  • Please log in to reply
17 replies to this topic

#1 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 20 January 2015 - 11:33 PM

hey guys I've been trying to duplicate the upgrading spell from the Isengard Fractions spellbook into the elven fraction of rj and although I and the creator can't seem to tell what I possibly did wrong the problem persists that the spells cursor ingame remains red and when put over the specified units in the object filters its still red and when clicked on top of the unit it says nothing has been selected when the units health bar is even showing ! there fore i'm completely baffled and desperately require the help of the the  3rd age modding gods :D

 

PS: the files attach to this is merely a text document recording what I did to the ini files since for some strange reason I've never been able to copy paste on revora...

Attached Files



#2 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 20 January 2015 - 11:36 PM

and thank you to any provided assistance in advance :grin:



#3 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 21 January 2015 - 11:25 PM

Lotr.str:


CONTROLBAR:ElvenGiftsUpgrades
"Elven Gifts"
END

CONTROLBAR:ToolTipElvenGiftsUpgrades
"Fully upgrades the selected Lothlorien battalion \n \n Does not apply to Elite units such as the Galadhrim Warriors \n Left click on icon then left click on selected unit"
END

Attributemodifier:

ModifierList SpellBookElvenGiftsUpgrades_ForgedBlades
    Category = SPELL
    Duration = 0
    Upgrade  = Upgrade_ElvenForgedBlades Delay:10
    ;FX	     = FX_ZuchtpferdeFX
End

ModifierList SpellBookElvenGiftsUpgrades_Silverthornarrows
    Category = SPELL
    Duration = 0
    Upgrade  = Upgrade_ElvenSilverthornArrows Delay:10
    ;FX	     = FX_ZuchtpferdeFX
End

ModifierList SpellBookElvenGiftsUpgrades_Banner
    Category = SPELL
    Duration = 0
    Upgrade  = Upgrade_ElvenBasicTraining Delay:10
    ;FX	     = FX_ZuchtpferdeFX
End


Commandbutton.ini:

CommandButton Command_SpellBookElvenGiftsUpgrades
    Command             = SPELL_BOOK
    SpecialPower        = SpellBookElvenGiftsUpgrades
    Options             = NEED_TARGET_POS 
    TextLabel           = CONTROLBAR:ElvenGiftsUpgrades
    ButtonImage         = SBGood_ElvenGifts
    ButtonBorderType    = ACTION 
    DescriptLabel       = CONTROLBAR:ToolTipElvenGiftsUpgrades
    RadiusCursorType	= ElvenAlliesRadiusCursor
    CursorName          = EvilAbilityObj ;AttackObj
    InvalidCursorName   = GenericInvalid  
End

CommandButton Command_PurchaseSpellElvenGiftsUpgrades
	Command			= PURCHASE_SCIENCE
	ButtonBorderType	= UPGRADE
        ButtonImage		= SBGood_ElvenGifts
        Science			= SCIENCE_ElvenGiftsUpgrades
        TextLabel		= CONTROLBAR:ElvenGiftsUpgrades
	DescriptLabel		= CONTROLBAR:ToolTipElvenGiftsUpgrades
End


CommandSet.ini:

CommandSet ElvesSpellBookCommandSet
	1	= Command_SpellBookAerialView_Elves 
	2	= Command_SpellBookGeneralView_Elves 
	3	= Command_SpellBookCommanderView_Elves 
	4	= Command_SpellBookUnitView_Elves  
	5	= Command_SpellBookGroundView_Elves 

	6	= Command_SpellBookRallyingCall
	7	= Command_SpellBookHeal
	8	= Command_SpellBookFarsight
	
	9	= Command_SpellBookElvenGiftsUpgrades ;Command_SpellBookGeschenkeLoriens ;Command_SpellBookTomBombadil		; Resolve of the Firstborn
	10	= Command_SpellBookEnshroudingMist
	11	= Command_SpellBookArrowVolleyGood
	12	= Command_SpellBookElvenWood

	13	= Command_SpellBookCloudBreak
	14	= Command_SpellBookEntAllies		; This need to change eventually
	15	= Command_SpellBookEagleAllies

	16	= Command_SpellElvenVanyarAllies 
	17	= Command_SpellBookSunflare
End

CommandSet ElvesSpellStoreCommandSet
	1	= Command_PurchaseSpellRallyingCallMP
	2	= Command_PurchaseSpellHeal
	3	= Command_PurchaseSpellFarsight
	
	4	= Command_PurchaseSpellEnshroudingMistMP
	5	= Command_PurchaseSpellArrowVolleyGood
	6	= Command_PurchaseSpellElvenWood
	7	= Command_PurchaseSpellElvenGiftsUpgrades ;Command_PurchaseGeschenkeLoriens;Command_PurchaseSpellTomBombadil	; Resolve of the Firstborn

	8	= Command_PurchaseSpellEntAllies	; This needs to change
	9	= Command_PurchaseSpellCloudBreak
	10	= Command_PurchaseSpellEagleAllies

	11	= Command_PurchaseSpellSunflare
	12	= Command_PurchaseSpellElvenVanyarAllies 
End


Objectcreationlist:

;------------------------------------------------------------------------
ObjectCreationList OCL_SpellBookElvenGiftsUpgrades
    CreateObject
        ObjectNames     = SpellBookElvenGiftsUpgradesPing
	Count		= 1
	Disposition	= LIKE_EXISTING
    End
End	
; ---------------------------------------------------------------------------------------

Science:

Science SCIENCE_ElvenGiftsUpgrades
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ELVES SCIENCE_Farsight
  SciencePurchasePointCost = GOOD_RANK_2_COST
  SciencePurchasePointCostMP = 1;2
  IsGrantable = Yes
End


SpecailPower.ini:

;------------------------------------------------------------------------------
SpecialPower SpellBookElvenGiftsUpgrades
    Enum                        = SPECIAL_SPELL_BOOK_CHILL_WIND
    RadiusCursorRadius          = 40 ;15
    RequiredSciences            = SCIENCE_ElvenGiftsUpgrades
    ReloadTime                  = SPELL_RECHARGE_TIME_TIER_2
    ;InitiateAtLocationSound     = GesegnetesBannerEffect
    Flags                       = RESPECT_RECHARGE_TIME_DISCOUNT NEEDS_OBJECT_FILTER
    ObjectFilter                = ANY +ElvenLorienWarriorHorde +ElvenLorienSpearHorde +ElvenLorienArcherHorde +ElvenLorienMarchWardenHorde +ElvenLorienArcherDoubleComboHorde +ElvenWarriorArcherComboHorde +ElvenLorienSpearArcherComboHorde +ElvenLorienMarchWardenDoubleComboHorde +ElvenLorienWarriorDoubleComboHorde +ElvenLorienSpearDoubleComboHorde   ALLIES           
End
;------------------- good spells T1 ----------------------------------------------


Weapon.ini:

;------------------------------------------------------------------------------
Weapon SpellBookElvenGiftsUpgradesWeapon
    RadiusDamageAffects   = ALLIES
    LeechRangeWeapon      = Yes
    AttackRange           = 50.0
    MeleeWeapon           = No
    DelayBetweenShots     = 5000
    PreAttackDelay        = 0
    PreAttackType         = PER_SHOT 
    FiringDuration        = 0

AttributeModifierNugget
	       AttributeModifier   = SpellBookElvenGiftsUpgrades_ForgedBlades
	       Radius	           = 14
	       SpecialObjectFilter = ANY +ElvenLorienWarriorHorde +ElvenLorienSpearHorde +ElvenWarriorArcherComboHorde +ElvenLorienSpearArcherComboHorde +ElvenLorienWarriorDoubleComboHorde +ElvenLorienSpearDoubleComboHorde  ALLIES           
        End

AttributeModifierNugget
	       AttributeModifier   = SpellBookElvenGiftsUpgrades_Silverthornarrows
	       Radius	           = 14
	       SpecialObjectFilter = ANY +ElvenLorienArcherHorde +ElvenLorienMarchWardenHorde +ElvenLorienArcherDoubleComboHorde +ElvenWarriorArcherComboHorde +ElvenLorienSpearArcherComboHorde +ElvenLorienMarchWardenDoubleComboHorde  ALLIES                      

        End

AttributeModifierNugget
	       AttributeModifier   = SpellBookElvenGiftsUpgrades_Banner
	       Radius	           = 14
	       SpecialObjectFilter = ANY +ElvenLorienWarriorHorde +ElvenLorienSpearHorde +ElvenLorienArcherHorde +ElvenLorienMarchWardenHorde +ElvenLorienArcherDoubleComboHorde +ElvenWarriorArcherComboHorde +ElvenLorienSpearArcherComboHorde +ElvenLorienMarchWardenDoubleComboHorde +ElvenLorienWarriorDoubleComboHorde +ElvenLorienSpearDoubleComboHorde   ALLIES                    

        End

End


System.ini:

Behavior   = OCLSpecialPower ModuleTag_SpellBookElvenGiftsUpgrades
        SpecialPowerTemplate    = SpellBookElvenGiftsUpgrades
        OCL                     = OCL_SpellBookElvenGiftsUpgrades
        CreateLocation          = CREATE_AT_LOCATION
        AvailableAtStart        = No
        RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
        RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End



;------------------------------------------------------------------------------

Object SpellBookElvenGiftsUpgradesPing
    Draw = W3DScriptedModelDraw ModuleTag_Draw
        DefaultModelConditionState
            Model = None
        End
    End
    KindOf = INERT IMMOBILE UNATTACKABLE
    
    Body = ActiveBody ModuleTag_MakesKillWork
        MaxHealth = 1
    End
    Behavior = LifetimeUpdate ModuleTag_HatchTrigger
        MinLifetime = 0.0
        MaxLifetime = 0.0
    End
    Behavior = SlowDeathBehavior ModuleTag_HatchProcess
        DestructionDelay    = 0
        Weapon              = MIDPOINT SpellBookElvenGiftsUpgradesWeapon
    End
End

;------------------------------------------------------------------------------



#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 24 January 2015 - 12:04 PM

Does it work if the take away the filter?


Ridder Geel

#5 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 02:01 PM

Which one

#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 24 January 2015 - 02:15 PM

Oh right sorry, the SpecialPower one :)


Ridder Geel

#7 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 24 January 2015 - 04:02 PM

Right if you remove the filter change:

Flags = RESPECT_RECHARGE_TIME_DISCOUNT NEEDS_OBJECT_FILTER

to

Flags = RESPECT_RECHARGE_TIME_DISCOUNT


Ridder Geel

#8 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 04:11 PM

still no change  its as if theres nothing selected . well atleast that's what its telling me



#9 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 04:18 PM

;------------------------------------------------------------------------------

SpecialPower SpellBookElvenGiftsUpgrades
  Enum                        = SPECIAL_SPELL_BOOK_CHILL_WIND
    RadiusCursorRadius          = 40 ;15
    RequiredSciences            = SCIENCE_ElvenGiftsUpgrades
    ReloadTime                  = SPELL_RECHARGE_TIME_TIER_2
    Flags                       = RESPECT_RECHARGE_TIME_DISCOUNT 
End



#10 MorguLord

MorguLord
  • Members
  • 124 posts
  • Location:Serbia
  • Projects:"The Battles of the Third Age" Mod

Posted 24 January 2015 - 04:35 PM

change the radius in AttributeModifierNugget to 40 also, see if that works..


BOTTAsig.jpg

 

 

 


#11 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 05:02 PM

again sadly there is no change :/



#12 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 24 January 2015 - 05:03 PM

Change the enum to SPECIAL_SPELL_BOOK_WAR_CHANT maybe?

You still can't cast it right?


Ridder Geel

#13 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 05:28 PM

exactly I can buy it move the cursor but when it comes to casting it on the units it just doesn't work its just red stating I have no units selected but i'll try the warchant



#14 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 05:33 PM

still no effect :blink:



#15 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 24 January 2015 - 10:05 PM

may be an entirely new route could do the trick? but how to even begin i'm not sure



#16 saruman_the_wise

saruman_the_wise

    SarumanTheWise

  • Project Team
  • 281 posts
  • Location:Orthanc - Bitchez
  • Projects:Proud Beta/Alpha-tester of SaF and AotR

Posted 25 January 2015 - 01:23 AM

WOOPIE!!! I don't know how I did but I deleted everything concerning the power and then read did it following the code I originally posted and IT WORKED :thumbsupxd: my only explanations is that I must have placed the code in the wrong areas of the ini's but thanks so much Morgulord and Ridder Geel for taking your time to help me



#17 MorguLord

MorguLord
  • Members
  • 124 posts
  • Location:Serbia
  • Projects:"The Battles of the Third Age" Mod

Posted 25 January 2015 - 07:06 AM

oh thank god :D

BOTTAsig.jpg

 

 

 


#18 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 25 January 2015 - 12:26 PM

Ghehe, well good to hear its working :p


Ridder Geel




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users