HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Two questions about the Experience Gain Rate and giving uber spells to other heroes.

07-07-2003, 12:58 AM#1
Sardius
1.) Can I set the experience gain rate for a paticular hero rather then a paticular player? I have it set up so when a hero gains a level, the experience gain rate is decreased to a certain %...
Problem is it effects every hero that the player controls when I want it to only effect that one hero....

2.) Can I give spells like star fall and eartquake to other heroes that don't normally have them which are controlled by computer and will they cast them now? In 1.04 I tried doing this, but the computer would never cast those spells. I would take control over the computer to test it and see the spell was available and castable, but they would never cast it, even when I made a trigger telling them to cast it.
07-07-2003, 01:46 AM#2
Sardius
3.) Also, how do I make it so I can place ALL neutral creeps in a map and not be limited by the tileset.
07-07-2003, 01:59 AM#3
Dinadan87
1.) I'm pretty sure you can't
2.) I have no idea maybe you have to do something with AI triggers.
3.) Just get TFTWE and you'll be able to place all the units on one tileset. I think it was stickied so go look for it up there somewhere...
07-07-2003, 02:31 AM#4
Guest
1) You could do something like this (I'm gonna pseudo-code it cause I don't wanna look up all the exact stuff, kay?):

Events:
Unit - A unit dies.
Condition:
((Dying unit) is an illusion) Equal to False
(Unit-type of (Killing unit)) Equal to {your hero}
Action:
Set intExperienceRate = 100 / (Level of (Killing unit))
Hero - Add (-1 * experience value of (Dying Unit)) to (Killing unit)
Hero - Add (experience value of (Dying Unit) * intExperienceRate)) to (Killing unit)

Ya know, something like that. Ensure that your hero made the kill, then deduct the experience gained from it and add on the modified value (using whatever type of formula you want for that.)

If you wanted to get really messy, you could go into forming spur-of-the-moment unit groups from the units within a radius of the kill and finding the heros amongst them [Maybe with 'Units in Range Matching condition'] and tallying their own experience gain from it.


2) Should work.. I've never heard of such an issue, and 1.04 was so long ago that Blizzard must've fixed that by now.

3) When in the Unit Palette, select 'Neutral' units.. it'll default to show you the ones pertaining to the tileset you're using, but you can change that combo box to select from any tileset.[u]