HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How can I do this trigger?! bah..

08-05-2005, 05:50 PM#1
Optional
You know how in DOTA when you attack a teammate, you get polymorphed? Whats the trigger for that? Ive tried it out but i cant seem to get it to work.

And, how can I stop pooling resources, like in dota again. These triggers are a mystery to me. Thanks in advance.
08-05-2005, 06:21 PM#2
Vexorian
I don't see why a map needs features from dota.

Actually to avoid ally attacks you can just disable ally from allowed targets.

But you can do this

Events: A unit is attacked
Conditions: Owner of attacked unit is an ally of Owner of attacking unit
Actions:
-- Use a dummy unit to cast polymorph on attacked unit ---

I don't get what Resource pooling is. sorry
08-05-2005, 06:40 PM#3
Optional
Sorry, didnt make that clear enough mate.

I dont want anyone to be able to go into the allies screen (f11) and be able to give anyone gold or wood. Dota has disabled that, and probably with a trigger.

And whats a dummy unit? sorry

What!!? Oh shit, im a bloody idiot... I didnt even think of taking it off allowable targets
08-05-2005, 07:50 PM#4
duckduck
somewhere in the game constants thing, you can change how much gold you can give by clicking and (shift or ctrl - forgot which one) clicking. just set both values to 0

have a unit w/ .1 size, invulnerable, locus, and polymorph ability.
**Make sure polymproh affects allied units**

TRIGGERS:
Quote:
Event:
Unit is attacked
Conditions:
(Owner of (Attacking unit)) is an ally equal to True
Actions:
Unit - Create one (dummy caster) for (owner of (attacked unit)) facing (default degress(270.00))
Order - Order (last created unit) to (Human - Polymorph) (Attacking unit)
Unit - Remove (last created unit)
08-10-2005, 06:28 PM#5
Optional
Thanks man...what exactly is Locus? and do I need to make this unit called "dummy caster" was that just a place holder name for w/e unit I make it with?
08-10-2005, 07:16 PM#6
Tim.
Locus is an ability that causes the unit that has the abilty to be unselectable, invulnerable, and uncontrolable without triggers.

'Dummy Caster' is an invisble unit that has no model file, no collision size, etc. Just clone a Wisp and get rid of everything. Then give it polymorph. However I agree with Vex, just disable allies from the target list.