| 12-27-2002, 05:39 AM | #1 |
Guest | whats the simplest way to make it so a hero carrying a certian item cant be hurt by a hero carrying a certian different item? |
| 12-27-2002, 05:50 AM | #2 |
Guest | make two regions Events: Peridodical Event: Every 0.2 seconds Condisions: None Actions: Move Region = Position of [unit matching condision[item[hero1] is holding [item1] equal to true]]] Move Region = Position of [unit matching condision[item[hero2] is holding [item2] equal to true]]] ----------------------------------------------------------------------------------- Events: Unit enters [region1] Condisions: [Entering Unit] equal to [hero2] Actions: Make [random unit from unitgroup[all units in [region1] owned by [player#]] invincable ----------------------------------------------------------------------------------- Events: Unit leaves [region1] Condisions: [Triggering Unit] equal to [hero2] Actions: Make [random unit from unitgroup[all units in [region1] owned by [player#]] vaulnerable ----------------------------------------------------------------------------------- Events: Unit enters [region2] Condisions: [Entering Unit] equal to [hero1] Actions: Make [random unit from unitgroup[all units in [region2] owned by [player#]] invincable ----------------------------------------------------------------------------------- Events: Unit leaves [region2] Condisions: [Triggering Unit] equal to [hero1] Actions: Make [random unit from unitgroup[all units in [region2] owned by [player#]] vaulnerable There that should do it |
| 12-27-2002, 06:07 AM | #3 |
Guest | ok, this is good. I think I have a way to inprove on it too. bbiaf with the results |
| 12-27-2002, 06:27 AM | #4 |
Guest | hmm, ok. theres a problem with this. I would like the units, other than the hero, to be able to damage the first hero. making him invulnerable isnt quite what I want |
| 12-27-2002, 09:31 AM | #5 |
I think the best event to use would be w unit owned by player is attacked (repeat the event once for each player, all in the same trigger), and then for the condition test if attacking unit is a hero with item1 and test if attacked unit is a hero with item 2, then for action order attacking unit to stop. That will only stop attacks, and not spellcasting (I dont think spells count as attacking). |
| 12-27-2002, 09:38 AM | #6 |
Guest | No they dont. :) |
| 12-27-2002, 07:05 PM | #7 |
Guest | I did that except I made the attacked unit invulnerable but it did not do anything. Ill try it this way |
