Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Making a unit appear anywhere on a map
Making a unit appear anywhere on a map
Apr 18 2014, 11:23 pm
By: DoomDoomDoom  

Apr 24 2014, 4:56 pm Sacrieur Post #21

Still Napping

Quote from Azrael
You could also place burrowed units (let's say Zerg Drones) for Player 9 at 64 different positions. Then when you want to teleport to a random position, you'd randomize 6 switches, and have these 6 triggers:

Condition: Switch 1 is Set.
Action: Give 1 Zerg Drone owned by Player 9 at Anywhere to Player 10.

Condition: Switch 2 is Set.
Action: Give 2 Zerg Drone owned by Player 9 at Anywhere to Player 10.

Condition: Switch 3 is Set.
Action: Give 4 Zerg Drone owned by Player 9 at Anywhere to Player 10.

Condition: Switch 4 is Set.
Action: Give 8 Zerg Drone owned by Player 9 at Anywhere to Player 10.

Condition: Switch 5 is Set.
Action: Give 16 Zerg Drone owned by Player 9 at Anywhere to Player 10.

Condition: Switch 6 is Set.
Action: Give 32 Zerg Drone owned by Player 9 at Anywhere to Player 10.

Then you'd just need to move the "teleport" location to "Zerg Drone owned by Player 9 at Anywhere".

This will result in the location being randomly centered on 1 of your 64 burrowed units.

To reset the system, you'd want to add a trigger that clears all 6 switches (or you could clear each one in its own "___ is set" trigger). Also, after moving the location at the end, you'd need to "Give all Zerg Drone owned by Player 10 at Anywhere to Player 9".

This system has the benefit of making the destination unpredictable, and the player cannot manipulate it to get a destination of their choice. Additionally, if two different players use their teleport ability at the same time, they'll both get a unique random destination, as opposed to a global method of randomization which would teleport both players to the same area.

I endorse this method as being both the simplest and least prone to error, my method would include a mobile grid of sorts and thus be susceptible to air units.



None.

Apr 24 2014, 6:42 pm Azrael Post #22



Mobile grid would be the best way to make a truly random teleport, without any predetermined destinations or preplaced units.

But yeah, it won't work if there's air units on the map.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: lil-Inferno