| 04-16-2003, 11:43 AM | #1 |
Guest | Hi, iam trying to make the Defend ability, that footman and The Cpatian unit have, to a Hero spell with 3 levels. I have directly copied the defend spell and named the Alias and uberalais to Ashi and the code is Adef. I named the spell Shield. I have put a "1" in Hero ability, sorted it as a "hero" spell with 3 lvls and req lvl as 1. data 11, 12 and 13 has the number 0,3; 1; 0,3 and on lvl 2 as in data 21,22 and 23 ihave 0,4; 1; 0,2 and then on lvl 3 as in data 31, 32 and 33 i have the numbers 0,5; 1; 0,2. That's in the AbilityData.slk In the HumanFunc.txt i have the settings for the "Shield" spell like this: // Sheild [Ashi] Art=ReplaceableTextures\CommandButtons\BTNDefend.blp Unart=ReplaceableTextures\CommandButtons\BTNDefendStop.blp Researchart=ReplaceableTextures\CommandButtons\BTNDefend.blp Researchbuttonpos=0,0 Buttonpos=0,2 Unbuttonpos=0,2 Casterart=Abilities\Spells\Human\Defend\DefendCaster.mdl Order=defend Unorder=undefend and in the HumanString.txt i have the settings like this: // Shield [Ashi] Name=Shield Tip=|cffffcc00D|refend Ubertip="Activate to take only <Ashi,Data11,%>% of the damage from Piercing attacks, but have <Ashi,Data13,%>% reduced movement speed." Untip=Stop |cffffcc00D|refend Unubertip="Deactivate to move at normal speed, but take regular damage from Piercing attacks." Hotkey=D Unhotkey=D without Tip for lvl 1, 2 and 3 but i make them when the spell works. but the problem is that when i test in the game the spell apear to the hero but when reasearch to lvl 1 the number of lvl on the spell doesn't change and you can reasearch the spell unlimited times without the spell get's to new lvl. I don't understand what's wrong. PLEASE HELP! I have attached a test map so you can see what's wrong if you want to help. This is just a test map with 10 heroes eatch with different levels. |
| 04-16-2003, 11:46 AM | #2 |
somebody who has Mod access on this page please move to map dev section. In response to the question. This has come up before, for some reason everybody that tried has had problems with turning defend into a multiple level hero spell. It never seemed to function right. Nor were they able to add mana costs, yet alone cooldowns to this spell. |
| 04-19-2003, 02:50 AM | #3 |
Heres a question for ya, did you say you changed the code? |
| 04-20-2003, 10:32 AM | #4 |
Guest | Nope it's the same as Defend that is the spell iam making the new throught. |
| 04-20-2003, 10:57 PM | #5 |
Check if you added a mana cost. If you even ADD a mana cost to an ability which doesn't have one, like Defend, it WILL NOT WORK! I tried something simmilair, I added a mana cost to my new defend based spell, and it didn't work, that is until I removed the mana cost. :D |
