HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Scroll of Town Portal sans invulnerability.

06-27-2006, 06:40 AM#1
Moss
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
Naakaloh
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
Moss
Quote:
Have you tried a modified Mass Teleport configured to allow only the same targets as Item Town Portal?

And how do you suppose I would do that?

Quote:
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.

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
Naakaloh
Quote:
Quote:
Have you tried a modified Mass Teleport configured to allow only the same targets as Item Town Portal?

And how do you suppose I would do that?

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:
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

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:18 AM#5
Anvilsmith
Trigger:
Test Wyvern
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Tree of Life
(Unit-type of (Target unit of ability being cast)) Equal to Town Hall
(Unit-type of (Target unit of ability being cast)) Equal to Necropolis
(Unit-type of (Target unit of ability being cast)) Equal to Great Hall [and so on]
(Ability being cast) Equal to [insert teleport spell name here]
Collapse Actions
Wait 5.00 game-time seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current order of (Triggering unit)) Equal to (Order([ability's order string]))
Collapse Then - Actions
Collapse Unit Group - Pick every unit in (Units within 512.00 of (Position of (Triggering unit))) and do (Actions)
Collapse Loop - Actions
If ((Owner of (Picked unit)) Equal to (Owner of (Triggering unit))) then do (Unit - Move (Picked unit) instantly to (Position of (Target unit of ability being cast))) else do (Do nothing)
Else - Actions
God, I hate the GUI... Hope you find this framework useful, though.
06-27-2006, 09:57 AM#6
Rising_Dusk
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.

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
Moss
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
harshateja
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....