| 04-27-2006, 09:17 PM | #1 | |
Hey gang, It's been a while since I've mapped, but I've returned to work on my epic map.. anyhow, it has custom spells (no JASS or anything) and I've run into a big problem. I have a 'recruit' ability which turns a villager of another player into a villager for the owner of the casting unit. Simple. Well, apparently not. I've tried a dozen base spells for this custom spells, and what it has come down to is that the value 'Target unit of ability being cast' doesn't work. I can't even get a variable to have that value. Any help would be MONSTEROUSLY appreciated, as this is one of the fundamentals of my map. Here's what I'm trying to make fly: Quote:
|
| 04-27-2006, 09:19 PM | #2 |
Huh, a unit FINISHES casting an ablity? Why not starts the effect of an ability? Finishes only applies to channeling abilities. Is that what your spell does? channeling? Because of it's not, than the trigger won't even fire. Btw another thing: why are you putting -1 on the player number? the gui functions already set it to -1 by default, so basically you are not setting the integer variable of the casting unit, but rather a unit before that, -1... |
| 04-27-2006, 09:36 PM | #3 |
Ah! Thank you, I changed it to 'starts the effects of an ability' and now the trigger works. I didn't know that 'finishes casting an ability' applied only to channeling. The jist of the map is that you have to produce food every day for your army, but your hero does not eat up food (hence the -1). |
| 04-27-2006, 10:42 PM | #4 |
finishes works for every ability, but it only triggers if the unit has succesfully finished casting it, it also does not have any Event response besides triggering unit and GetSpellAbilityId() |
