| 07-31-2004, 11:40 PM | #1 |
Hey guys, I'm making a new map and I'm having trouble with setting spells at autocast automaticly. I've created two custom upgrades; "Bloodlust Upgrade" and "Phase Shift Upgrade", and a custom unit of mine has two abilities; 'Bloodlust" and "Phase Shift". The upgrades must be researched before the abilities may be used. I've done that and it works. The problem is, both abilities can be set to autocast, but I want them to be set to autocast automaticly, so when a unit with those abilities is created it will already have these abilities on autocast. How do I achieve that? Thanks, Cat. P.S. If this is possible ONLY in JASS, can somebody please link me to a tutorial where I can learn how to create it, or create it for me? (Only if its relativaly easy to create of course) |
| 08-01-2004, 01:12 AM | #2 |
Unfortuantely, it is impossible to havve two auto-cast abilties on at the same time. Sorry... |
| 08-01-2004, 01:47 AM | #3 |
You could make phase shift autocast using triggers Code:
Event: Unit is attacked Condition: Unit type of attacked unit = phaseshifter AND Phase shift upgrade level = 1 Action: Unit- Issue order with no target: Order attacked unit to <Night Elf-Phase Shift> That's the kinda trigger you would wanna use. |
| 08-01-2004, 01:51 AM | #4 |
Does "A unit is attacked" run when the unit is hit, or before the unit is hit; a.k.a: when the attacker begins to attack? |
| 08-01-2004, 02:21 AM | #5 |
When the attacker begins it's attack animation. Hmm... good point. It's possible to calculate the delay for the projectile using arithmetic. |
| 08-01-2004, 07:42 AM | #6 |
I actually think that two autocasts can be on at once, but only specific ones. I remember once I had two... I think it was heal and orb of annihilation. Something like that. Test around with all the autocasts I'm sure you'll find the combo that I played with. |
| 08-01-2004, 10:32 AM | #7 |
That trigger's looking good but the problem is there are 12 players on the map, each of them with his own research of plane shift. So I want only "planeshifters" controlled by a player who researched plane shift to automaticly plane shift. Is there a way to do that? |
| 08-01-2004, 03:31 PM | #8 |
Because of the complexity involved, I would suggest you research into having two spells autocasting at one time. There is an ordercode to turn on/off autocasting, you might try issuing the units with that order thereby causing them to autocast both spells. |
