Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Detecting player casting a spell from neutral building
Detecting player casting a spell from neutral building
11-10-2007, 03:06 PM
#1
abriko
How to detect, by conditions, which player is casting a spell from a neutral building ?
11-10-2007, 03:39 PM
#2
cohadar
You can't
You theoretically could if all your spells were triggered,
and all spells on neutral building are dummy spells based on charge gold.
11-10-2007, 04:40 PM
#3
abriko
Of course, my spells are triggered, spell on the neutral building are custom spell and not based on gold. So i can do it "theoretically" ?
11-10-2007, 05:14 PM
#4
cohadar
Do you use both limber and gold in your map or only one resource?
11-10-2007, 09:03 PM
#5
Jazradel
Use items. Make them free, longish cooldown and when someone buys an item from the building search for the owner of the bought item and.
11-11-2007, 11:16 AM
#6
abriko
Hum nice idea, i'll try something with this... the spells targeting a point... Humm i will need to add a dummy buyer because i wanted make a spell so the player can cast it when he is very far from the shop.
11-11-2007, 05:18 PM
#7
Ammorth
give the shop a large range?