| 06-27-2006, 06:40 AM | #1 |
I want to have a Scroll of Town Portal ability that doesn't make the hero invulnerable when they are casting it. I figure if I can just find an ability that targets town halls like SoTP, but without the invulnerability side-effect, I can trigger the rest. Does anybody know of one? |
| 06-27-2006, 06:54 AM | #2 |
Have you tried a modified Mass Teleport configured to allow only the same targets as Item Town Portal? Also, it's completely possible to trigger the ability to stop if there are no town halls in range of the spell target, I've actually done something similar in a map I've been working on. |
| 06-27-2006, 07:46 AM | #3 | ||
Quote:
And how do you suppose I would do that? Quote:
Do you mean you ordered the Teleporting unit to stop and then gave a hand-made error message? Because I don't wan't something sloppy like that. I want it to behave just like the real thing, so if you don't target near a TH it will just ignore your command, give an error. Note that with a real targetting error the unit is not stopped from doing whatever other command they may currently be doing and the player is still in targeting mode for the spell. |
| 06-27-2006, 08:19 AM | #4 | |||
Quote:
I was assuming you would just set targets to require townhalls, but apparently townhall isn't a unit classification useable for targets, so I guess that wouldn't work. Quote:
Sorry, I can't help you with that, I think a system to do that might be more elaborate than you want, but for some reason it seems it like it's been done before. I just can't remember where I might have seen it. |
| 06-27-2006, 09:57 AM | #6 | |
Quote:
That is the basis on which SimError was created. And let me assure you it is far from sloppy. |
| 06-28-2006, 01:13 AM | #7 |
Sorry Anvilsmith that doesn't help me at all with what I want. And Rising_Dusk: SimError is great but all it does is display an fake error message, which is half the battle at most. I already explained in detail what is a sloppy about triggering your own targetting system. A while back on a different ability I tried forcing the Cancel button and then forcing the hotkey for the ability instead of just ordering the unit to stop but it majorly bugged out for some reason. It got stuck in some sort of loop. But maybe I could revisit that method. |
| 06-28-2006, 01:29 AM | #8 |
Base it off of any ground targetting spell. THen when cast, make a group of units for all units within (what ever the range of AOE on TP is ) x range and if it finds a town hall, tree of life, great hall, or necropolis continue with the teleport else, pause the unit, cancel the order, unpause the unit and then use SimError to display "No base nearby". f there is a cooldown issue with that, then just remove and readd the item.... |
