[skip all navigation]

[SOLVED] Making a Terran Turret un-selectable?

Creator: Oo.DaMeiN.oO
Time: Jun 11 2012, 6:28 pm
Topic Locked
Topic Locked
This topic has been locked!
Reason: Solved
Closed by: Roy

Post #1     Oo.DaMeiN.oO Jun 11 2012, 6:28 pm

[Avatar]
offlinecontact
Rank: Member
I have a map that the players have a "base" that consists of two turrets and a flag. The turrets are vision placers for each team, but aren't used for anything else. So I was wondering if there was a way to make them un-selectable to where they can't interfere with anything.

Top

Post #2     Sacrieur Jun 11 2012, 6:40 pm

[Avatar]
offlinecontact
Rank: Regular
No can do, not if they're for detection. If you just need vision, then map revealers would do.

× ÷ ± · ∫ ƒ | ⅛ ¼ ⅓ ⅜ ½ ⅝ ⅔ ¾ ⅞ | π φ ∞ | ≡ ≈ ≥ ≤ ∴ ¬ ∩ Ø | √ ª ⁿ º ¹ ² ³ | ✓ ✗ | א
α β Γγ ∆∂ ε ζ η Θθ Ιι κ Λλ μ Ξξ Π ρ Σσς τ υ Φ Ψψ Ωω
(user posted image) (user posted image)
Top

Post #3     Dem0n Jun 11 2012, 6:45 pm

[Avatar]
:awesome:
offlinecontact
Rank: Regular
If you've got free player slots, you could just give the turrets to a computer player and then have the human player share vision with it.

(user posted image)
Top

Post #4     Sacrieur Jun 11 2012, 6:58 pm

[Avatar]
offlinecontact
Rank: Regular
Quote from Dem0nS1ayer
If you've got free player slots, you could just give the turrets to a computer player and then have the human player share vision with it.

How would that keep them from selecting it?

× ÷ ± · ∫ ƒ | ⅛ ¼ ⅓ ⅜ ½ ⅝ ⅔ ¾ ⅞ | π φ ∞ | ≡ ≈ ≥ ≤ ∴ ¬ ∩ Ø | √ ª ⁿ º ¹ ² ³ | ✓ ✗ | א
α β Γγ ∆∂ ε ζ η Θθ Ιι κ Λλ μ Ξξ Π ρ Σσς τ υ Φ Ψψ Ωω
(user posted image) (user posted image)
Top

Post #5     Dem0n Jun 11 2012, 7:33 pm

[Avatar]
:awesome:
offlinecontact
Rank: Regular
True, but I was under the impression that he just didn't want the players to be in control of the turrets. If you give them to another player, all they can do is click on it, and nothing else. ;o But maybe he doesn't want you to be able to click on it at all. In that case, I don't know. :teehee:

(user posted image)
Top

Post #6     Mini Moose 2707 Jun 11 2012, 7:39 pm

[Avatar]
Everything was beautiful and nothing hurt.
offlinecontact
Rank: Elite
Have a trigger that gives the turrets owned by the player to some other player and back again right away. (two consecutive actions) This will deselect the turrets every trigger cycle.

NEW! :: Überena v033 :: File -- Thread
** VIVA LA MAP NIGHT!! **
Top

Post #7     NudeRaider Jun 11 2012, 8:43 pm

[Avatar]
You're not old until the past seems more fun than the future.
offlinecontact
Rank: Veteran
I'd try using sprites or unit sprites.

(user posted image)
Devilesk: "AND OUT OF THE GOODNESS OF MY HEART [...]" - wait what??
Top

Post #8     Roy Jun 11 2012, 10:54 pm

[Avatar]
An artist's depiction of an Extended Unit Death
offlinecontact
Rank: Veteran
Is there a reason you cannot use Map Revealers instead of turrets?

Top

Post #9     Sacrieur Jun 11 2012, 11:05 pm

[Avatar]
offlinecontact
Rank: Regular
I suppose you could cover the missile turret with a doodad sprite and apply Moose's method.

× ÷ ± · ∫ ƒ | ⅛ ¼ ⅓ ⅜ ½ ⅝ ⅔ ¾ ⅞ | π φ ∞ | ≡ ≈ ≥ ≤ ∴ ¬ ∩ Ø | √ ª ⁿ º ¹ ² ³ | ✓ ✗ | א
α β Γγ ∆∂ ε ζ η Θθ Ιι κ Λλ μ Ξξ Π ρ Σσς τ υ Φ Ψψ Ωω
(user posted image) (user posted image)
Top

Post #10     LoveLess Jun 12 2012, 2:01 am

[Avatar]
offlinecontact
Rank: Veteran
Disabling will not do jack if you want players to have it's vision, ordering it to move to an unacceptable position will only make it glitch out when a target leave's the attack range, etc. Using a turret sprite will only lead to crashing.

I am pretty sure what he wants is it's ability to detect or at least it's sight, which means he will have to either:

1. Have it owned by an allied player that has the enemies as allies.

2. Use an alternative detector (ex. an Overlord), give the turret to a neutral player and have the alternative detector removed when the turret is destroyed.

Top

Post #11     staxx Jun 12 2012, 2:13 am

[Avatar]
offlinecontact
Rank: Member
Quote
The turrets are vision placers for each team, but aren't used for anything else.
Use map revealers.

Top

Post #12     Vrael Jun 12 2012, 5:08 am

[Avatar]
onlinecontact
Rank: Veteran
Quote from staxx
Quote
The turrets are vision placers for each team, but aren't used for anything else.
Use map revealers.
He may mean vision as in revealing cloaked units, which map revealers won't do. Also with moose's method there may be intermittent flickers where the vision turns off for a split second. I know this happens when you create/remove a unit, but I'm not sure about give/give back.

Top

Post #13     Sacrieur Jun 12 2012, 5:28 am

[Avatar]
offlinecontact
Rank: Regular
Quote from Vrael
Quote from staxx
Quote
The turrets are vision placers for each team, but aren't used for anything else.
Use map revealers.
He may mean vision as in revealing cloaked units, which map revealers won't do. Also with moose's method there may be intermittent flickers where the vision turns off for a split second. I know this happens when you create/remove a unit, but I'm not sure about give/give back.

Solution: use EUDs to detect when the turret is selected and execute the give trigger:

Conditions:
Memory(161889, Exactly, 5885096);

Actions:
Give Units To Player("Player 8", "Player 7", "Terran Missile Turret", 1, "Location 0");
Give Units To Player("Player 7", "Player 8", "Terran Missile Turret", 1, "Location 0");
Preserve Trigger();
This post was edited 1 time, last edit by Sacrieur: Jun 12 2012, 5:36 am.

× ÷ ± · ∫ ƒ | ⅛ ¼ ⅓ ⅜ ½ ⅝ ⅔ ¾ ⅞ | π φ ∞ | ≡ ≈ ≥ ≤ ∴ ¬ ∩ Ø | √ ª ⁿ º ¹ ² ³ | ✓ ✗ | א
α β Γγ ∆∂ ε ζ η Θθ Ιι κ Λλ μ Ξξ Π ρ Σσς τ υ Φ Ψψ Ωω
(user posted image) (user posted image)
Top

Post #14     staxx Jun 12 2012, 6:50 am

[Avatar]
offlinecontact
Rank: Member
Quote from Vrael
Quote from staxx
Quote
The turrets are vision placers for each team, but aren't used for anything else.
Use map revealers.
He may mean vision as in revealing cloaked units, which map revealers won't do. Also with moose's method there may be intermittent flickers where the vision turns off for a split second. I know this happens when you create/remove a unit, but I'm not sure about give/give back.

Yes you're correct, but from what i gather he didnt mention anything about a need for detection.

Anyways, with Moose's method there wont be any flickers as the next trigger cycle will have given the unit back again before the delay from vision to no vision has expired. I personally would advise against this method though as having too many triggers constantly being activated on every trigger cycle can cause the game to lag.

If Detection is NEEDED
If detection is needed i would propose he uses a pair of invincible observers that have triggers to make them remain in place if they suddenly get moved from their original location. These should be owned by a computer player to ensure that human players dont have control over them and any players who need detection should be allied to this computer player. These units would not be visible to enemies so the only players who will be able to "Click" on the units would be players allied.

If Detection is NOT NEEDED
Use map revealers.

Top

Post #15     Vrael Jun 12 2012, 7:29 am

[Avatar]
onlinecontact
Rank: Veteran
Quote from staxx
Anyways, with Moose's method there wont be any flickers as the next trigger cycle will have given the unit back again before the delay from vision to no vision has expired.
Did you test this out yourself? When you create/remove a unit like so:

Conditions:
Always
Actions:
Create 1 Zerg Scourge at Vision for Player 1
Remove 1 Zerg Scourge at Vision for Player 1
preserve trigger

The scourge is created and removed within the same trigger cycle like Moose's method, but the vision flickers. I haven't tested it with give actions instead of create/remove actions though. You may be right, but I don't accept your explanation of your justification for why it won't flicker.

Top

Post #16     staxx Jun 12 2012, 7:51 am

[Avatar]
offlinecontact
Rank: Member
Yes i'm speaking from experience.

Order of sequence is important for this. Also 2 triggers are needed, not just 1. And of course hyper triggers.

Top

Post #17     Roy Jun 12 2012, 1:18 pm

[Avatar]
An artist's depiction of an Extended Unit Death
offlinecontact
Rank: Veteran
Quote from staxx
Also 2 triggers are needed, not just 1.
No. Give/Give can be done in one trigger. Splitting it into two triggers gains you virtually nothing unless the conditions vary (which they shouldn't in this case).

Top

Post #18     Oo.DaMeiN.oO Jun 12 2012, 4:26 pm

[Avatar]
offlinecontact
Rank: Member
Alright, sorry I let this go so long without replying.

The turrets are vital to the experience of the game play. They have been there for ~10 years now, and if I were to remove them the community would freak xD

I guess I should start by saying this is for Snipers Bald Locks, if you've ever played you know the turret situation.

I will test out the EUD situation, but I could see this being problematic and becoming annoying.

Top

Post #19     Sacrieur Jun 12 2012, 4:36 pm

[Avatar]
offlinecontact
Rank: Regular
Quote from Oo.DaMeiN.oO
Alright, sorry I let this go so long without replying.

The turrets are vital to the experience of the game play. They have been there for ~10 years now, and if I were to remove them the community would freak xD

I guess I should start by saying this is for Snipers Bald Locks, if you've ever played you know the turret situation.

I will test out the EUD situation, but I could see this being problematic and becoming annoying.

A few things. That trigger is written for index ID #0 and player 1.

I highly suggest you read [EUD] A Mapmaker's Guide for Creating EPDs to understand what's going on.

× ÷ ± · ∫ ƒ | ⅛ ¼ ⅓ ⅜ ½ ⅝ ⅔ ¾ ⅞ | π φ ∞ | ≡ ≈ ≥ ≤ ∴ ¬ ∩ Ø | √ ª ⁿ º ¹ ² ³ | ✓ ✗ | א
α β Γγ ∆∂ ε ζ η Θθ Ιι κ Λλ μ Ξξ Π ρ Σσς τ υ Φ Ψψ Ωω
(user posted image) (user posted image)
Top

Post #20     staxx Jun 12 2012, 5:57 pm

[Avatar]
offlinecontact
Rank: Member
Quote from Roy
Quote from staxx
Also 2 triggers are needed, not just 1.
No. Give/Give can be done in one trigger. Splitting it into two triggers gains you virtually nothing unless the conditions vary (which they shouldn't in this case).

I can also speak from experience that yes 2 triggers are needed. Try making it in 1 trigger and tell me how that turns out for you ;)

Anyways, i'll attach proof seeing as everyone always disregards my knowledge on these forums. Both kill/create and give/give are on this proof and both function perfect without flicker. The turret vision takes a couple seconds before it activates at the game start.
Attachments:
scm file
turret test.scm (38.78 kb)
2 hits.

Top
Topic Locked
Topic Locked
This topic has been locked!
Reason: Solved
Closed by: Roy
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[05:08 am]
Sylph-Of-Space -- Weird.
[05:08 am]
Sylph-Of-Space -- Just kind of figured it'd always be around.
[05:07 am]
Sylph-Of-Space -- I mean I'm glad people are still here. Just stayed out of SEN for the longest time and I never got around to even buying SC2.
[05:07 am]
Sylph-Of-Space -- It makes me sad to see how dead this place has gotten...
[03:37 am]
jjf28 -- noice
[03:28 am]
Wing Zero -- in magic boxes
[03:28 am]
Wing Zero -- went from +148 to -228 minerals
Please log in to shout.