HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with trigger enchanced spell

07-03-2005, 02:13 PM#1
SrPrez
Well, its prob a pretty stupid question but it has been bugging me for like a week so I figured I'd ask the pros.. Basically I have two questions the first and foremost is how do I make (in GUI) it so when a unit is killed by a trigger based spell, XP is given to the hero (also what is the algorithm for determining xp in wc3?), ive tried alot of stuff and nothing is working too well.... Secondly, this kind of ties into my first concern which, if was fixed wouldnt be an issue, I was just wondering how I can delay a spell to deal dmg when I choose to. (like ie. I have an invisible storm bolt that is shot for one spell acting as a dummy to trigger the animation and about halfway through the animation the targeted unit takes the dmg as the storm bolt hits, yet I want him to take the dmg after the animation). Again if the XP problem was reconciled I could easily take out the dummy and just make it deal dmg through triggers. Anyways thx for help to anyone that does
07-04-2005, 05:31 AM#2
Limb_Smasher
for number 1:
Code:
Hero - Add 1000 experience to (Triggering unit), Hide level-up graphics
and then just check how much you want to give per level.

for number 2: detail would help. one suggestion is that you could slow the missile speed on strombolt, but if the target was running it would screw the whole thing over. you could create a casting time on the strombolt, which could be better. What I would suggest doing is creating a unit to use a normal attack, and if you want the stun effect give that unit a 100% bash ability, and have it attack the second you want it to.

Hope this helps
07-04-2005, 11:45 AM#3
Setreal
Quote:
Originally Posted by Limb_Smasher
for number 1:
Code:
Hero - Add 1000 experience to (Triggering unit), Hide level-up graphics
and then just check how much you want to give per level.

This is a very bad way of doing it. If the spell doesn't kill anything he'll get xp, if spelll kills different types / amounts of units he'll get whatever base xp he set in the trigger instead of the correct amount. Also this means he'll have to seperatly trigger the gold bounty off each unit as well. Unless he wants to turn off xp gain altogether and give xp based on unit kills from their point value then this generally isn't the best way to go.

Using dummy units that are unclickable and invisible to the eye to deal damage that are owned by the caster (either suicidal, or casters of a seperate damage spell) will award correct xp to the player's hero. Also I believe the Unit - Damage Target / Damage Area awards correct xp as well though I'm not positive ( might just want to check first ).
07-04-2005, 12:05 PM#4
SrPrez
Hmm, yeah ill try doing that, it's difficult due to the fact that the spell is an area drain ;/ therefore when I tried slipping in an add xp in there whenever a unit dies (I had it if his life was at 0) it would keep firing giving the hero mass xp. Ill search for these damage target/damage area triggers as it would be quite useful. Also @ smasher, what can I do to add a cast delay on a spell? Cuz thats a good solution to my problem with damage/xp as well
07-04-2005, 05:40 PM#5
Limb_Smasher
Quote:
Originally Posted by SrPrez
Hmm, yeah ill try doing that, it's difficult due to the fact that the spell is an area drain ;/ therefore when I tried slipping in an add xp in there whenever a unit dies (I had it if his life was at 0) it would keep firing giving the hero mass xp. Ill search for these damage target/damage area triggers as it would be quite useful. Also @ smasher, what can I do to add a cast delay on a spell? Cuz thats a good solution to my problem with damage/xp as well

when select your ability in the object editor theres this thing called "Stats - Casting Time" set that number to the delay of time you want on the spell.
07-04-2005, 06:32 PM#6
SrPrez
Quote:
Originally Posted by Limb_Smasher
when select your ability in the object editor theres this thing called "Stats - Casting Time" set that number to the delay of time you want on the spell.

Whoa, thanks so much! both of u get some rep for this good deed ^_^