HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Giving "Charge gold and lumber" based spells tech requirements

04-12-2008, 05:10 AM#1
holyadvocate
im having trouble.. i did the basic object editor add requirements, and looked at other spells that needed requirements, but it looks like this is another stupid bug, if any of you know the solution to my problem, please enlighten me!
04-12-2008, 05:16 AM#2
darkwulfv
Uhh.. What's your problem? What are you trying to do? You didn't really provide enough information for us to help you.
04-12-2008, 06:35 AM#3
Gorman
did u check the "check techtree requirements" box?

(i think his probelm is he wants to add requrements to the "Charge gold and lumber" skills (these will be used as bases for other skills) but it isnt working, and he wants to know why.)
04-12-2008, 10:30 AM#4
Anitarf
There are many abilities that techtree requirements don't work with (personaly, I can confirm this for damage and armour bonus item abilities), it seems Charge gold and lumber is one of them.
04-12-2008, 04:32 PM#5
Valdez
If your trying to make it cost lumber/gold per cast then u could just use triggers.

Trigger:
Spell Cost
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Animate Dead
Collapse Actions
Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) - 250)

or if you want to be more exact..

Trigger:
Spell Cost
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Animate Dead
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than or equal to 250
Collapse Then - Actions
Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) - 250)
Collapse Else - Actions
Unit - Order (Casting unit) to Stop

GL :P