- Joined
- Dec 31, 2007
- Messages
- 780
well... i wanted to make a simple trigger... whenever a hero uses an item (with or without charges) in my map (AoS type of map) The item becomes undroppable, after the cooldown finishes, it becomes droppable again... but i have 2 problems...
The first one is... that the item sometimes (after cooldown is ready) is still undroppable
And the second is that i have an item that may be recharged... but if i recharge it or try to drop it after using it some times... warcraft gives a critical error and closes... if it is lan... every computer gives the same error... what could be hapening?
here goes my triggers
Undroppable item trigger
Thx in advance for Ideas
The first one is... that the item sometimes (after cooldown is ready) is still undroppable
And the second is that i have an item that may be recharged... but if i recharge it or try to drop it after using it some times... warcraft gives a critical error and closes... if it is lan... every computer gives the same error... what could be hapening?
here goes my triggers
Undroppable item trigger
-
P1 Item Triggers
-
Events
- Unit - A unit owned by Player 1 (Red) Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Celestial Revestment (Avatar)
-
Actions
- Unit Group - Add (Casting unit) to Spell_Imunity_Group
- Set SacredGemStone[1] = (Casting unit)
- Item - Make (Item carried by (Casting unit) of type Sacred Gemstone) Undroppable
- Wait 8.00 game-time seconds
- Item - Make (Item carried by (Casting unit) of type Sacred Gemstone) Droppable
- Unit Group - Remove SacredGemStone[1] from Spell_Imunity_Group
-
Events
-
Recharge Sacred Gemstone
-
Events
- Unit - A unit Acquires an item
- Unit - A unit Pawns an item (to shop)
-
Conditions
- ((Item-type of (Item being manipulated)) Equal to |c008080c0Sacred Gemstone) or ((Item-type of (Sold Item)) Equal to |c008080c0Sacred Gemstone)
- ((Triggering unit) has an item of type Sacred Gemstone) Equal to True
- ((Triggering unit) has an item of type |c008080c0Sacred Gemstone) Equal to True
-
Actions
- Item - Remove (Item carried by (Triggering unit) of type |c008080c0Sacred Gemstone)
- Item - Remove (Item carried by (Triggering unit) of type Sacred Gemstone)
- Hero - Create Sacred Gemstone and give it to (Triggering unit)
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |c008080c0Sacr...
- Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\AIim\AIimTarget.mdl
- Special Effect - Destroy (Last created special effect)
-
Events
Thx in advance for Ideas