Hi, for an upcoming map of mine there will be a spell in which a scourge is created for the current player. The player can move the scourge for x amount of time after that time the player will teleport to wherever they moved the scourge. Now, i can't test something right now, but what would happen if the scourge was- over water? or on top of a building? anywhere that a unit normally couldn't walk on. would they just go to the nearest shore of the water? next to the building? if anyone has experimented with this i would like to know in order to save me some time.
I don't want to have to use a different method, but if anyone knows good triggers for a personal teleport with limited range i would like to hear it.
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
if the terrain under the scourge is walkable, your hero will be teleported there. if units/buildings block that position, he will be moved near that position. if there are to many units around that he cannot be moved near that position, he won't be teleported.
if the terrain under the scourge is not walkable, the hero won't be moved there.
Or you can check, by moving a unit underneath the scourge. Like say, a sieged siege tank. When you fire the trigger to move it, then you detect if it is under the scourge. If its not, its an unwalkable place.
None.
I don't want to have to use a different method, but if anyone knows good triggers for a personal teleport with limited range i would like to hear it.
In my opinion, the best "limited" teleport would be a caster system. Best used when the character is a Defiler, but can also work with a floating Corsair.
Always Center Location HERO on [Terran Marine]. (Relative to unit size)
Always Center Location WARP1 on [Terran Marine]. (This should be a relatively large location)
Always Center Location WARP1x
Player 1 casts TELEPORT,
Create exactly one [Corsair] for player 1 at location HERO.
---> Disruption web teleport
Player 12 brings at least one Disruption Web to location WARP1, Player 1 commands at least one [Terran Marine] at location WARP1.
Move all [Terran Marine] at location HERO to location WARP1x.
Preserve
Player 1 commands at most 0 [Corsair] at location HERO,
Move all Corsair owned by Player 1 to location HERO,
Display Text: You must teleport within range.
Preserve
And then there's more... but this should be sufficient.
None.
A similar teleport is used in Great Wizards. You may want to check that out.
None.
You can also use a Mutalisk and tell the player to press the one of the morph buttons when they want to teleport. This way, they aren't stuck waiting for a few seconds to teleport, and don't get screwed up if they click the wrong place. You can also test if the Mutalisk is over somewhere where the player can teleport to (Constantly move a burrowed Zergling or something under the mutalisk and check if it moved) and remove the player's Greater Spire if it's in an invalid teleport location. You should remove the muta (and maybe refund the cost) if the player doesn't morph the mutalisk in a few seconds.
Basically, doing this gives the player a bit more control of their teleporting and lets you block invalid teleports.
None.
Wow, that is a very nice idea. I may use it instead of what i'm currently trying to do, thank you.
None.
It can also help to use the right action trigger:
Using 'remove' and 'create' isn't very good because it might get you more frequently errors.
Using 'move' is much better because if the terrain under isn't walkable, it'll set the unit to the nearest walkable spot. Now, it's all about to know how far SC can go get a "near walkable terrain" piece
None.
Also, Create spams you with error messages, which gets annoying because you can't use the chat function and because it makes an annoying noise. So use Move for the win.
Do you want me to make an example map of my Mutalisky thing?
Post has been edited 1 time(s), last time on Dec 16 2008, 8:34 pm by TassadarZeratul. Reason: Since when is Mutalisky a word?
None.
Of course I am using move
An example map wont be necessary either, I sorta know how to do what you said.
None.