| 10-26-2007, 02:18 PM | #1 |
Ok i have a problem, using GUI triggers (Dont know Jass), i have created a dummy spellcasting building along with a bloodlust ability. I have changed the range of both so they allow for it to be casted the entire map. Although for some reason i am not seeing the effect. This is what i have as the trigger Trigger: ![]() Unit - A unit Dies
![]() KillCounter Less than 10
![]() (Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
![]() Set KillCounter = (KillCounter + 1)
![]() Set KillFont = (KillFont + 1.00)
![]() Unit Group - Pick every unit in (Units in InvisibleBuildings <gen> matching (((Unit-type of (Picked unit)) Equal to Spell Caster) and ((Owner of (Picked unit)) Equal to (Owner of (Killing unit))))) and do (Unit - Set level of Bloodlust for (Picked unit) to KillCounter)
![]() Unit Group - Pick every unit in (Units in InvisibleBuildings <gen> matching (((Unit-type of (Picked unit)) Equal to Spell Caster) and ((Owner of (Picked unit)) Equal to (Owner of (Killing unit))))) and do (Unit - Order (Picked unit) to Orc Shaman - Bloodlust (Killing unit))Is anyone know the reason its not working? |
| 10-26-2007, 04:39 PM | #2 |
The unit(s) that is ordered to cast bloodlust needs to have Bloodlust added to them in the Oject Editor. |
| 10-26-2007, 06:41 PM | #3 |
Always check these things when making a dummy spell: 1. Make sure it's a unit ability 2. Give the ability the maximum range (9999) 3. Set the mana cost of the ability to 0 4. Set Cooldown to 0 As far as your specific code: I'm assuming from your code that every 10 kills, all units of 'Spell Caster' type will be blood lusted? I'm also assuming you have an invisible building with the bloodlust ability? The problem could be using a building instead of a unit. Try to just make a neutral critter with 'locust' ability and set it's model to "none.mdl". Next add the bloodlust ability with the aforementioned dummy spell criteria. |
| 10-26-2007, 07:13 PM | #4 |
Trigger: ![]() KillCounter Less than 10
![]() (Owner of (Dying unit)) Not equal to (Owner of (Killing unit))Was that supposed to be an if/then/else or what? |
| 10-26-2007, 07:31 PM | #5 | |
Quote:
|
| 10-26-2007, 11:41 PM | #6 |
Spell Caster is the Dummy Caster Building, Im trying to get it to cast bloodlust on a specific hero anywhere in the map. The hero is the 'killing unit'. I have also set up all those values correctly and still no cookie. To give you a more thorough understanding. This hero Kills a unit, Its kill counter increases. When its kill counter increases so does the Bloodlust spell level. Eg( if the hero has killed 4 enemys the Bloodlust Spell would be level 4). And The bloodlust spell is automatically cast upon the hero. So in otherwords, as the hero kills more enemys his size attack rate and movement speed increase up to a maxium of 10 kills. |
