Staredit Network > Forums > SC2 Assistance > Topic: Spell filters
Spell filters
Aug 26 2010, 3:41 am
By: payne  

Aug 26 2010, 3:41 am payne Post #1

:payne:

I can't find any filter/event/action/ANYTHING that permits me to delete the things such as Force Fields, Spider Mines and Turret (the Raven's spell).
How do I detect and remove those via triggers? :(

Also, an additional question, what is wrong with this:
Code
       General - Pick each integer from 1 to 6, and do (Actions)
           Actions
               Unit - Create 1 Orbital Command for player (Picked integer) at (Start location of player (Picked integer)) using default facing (No Options)
               Unit - Make (Last created unit) Invulnerable
               Variable - Set OrbitalCommand[((Picked integer) - 1)] = (Unit group((Last created unit)))
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 1 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 2 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 3 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 4 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 5 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 6 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 7 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 8 for player (Picked integer)
               Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 9 for player (Picked integer)

I'm trying to create OCs at Start Locations and automatically set their hotkey, but none gets created. :(



None.

Aug 26 2010, 4:26 am Temp Post #2



Is it the OC's that are not being created or the control groups? I'll look into the first bit later when I have the time.



None.

Aug 26 2010, 5:13 am payne Post #3

:payne:

Quote from Temp
Is it the OC's that are not being created or the control groups? I'll look into the first bit later when I have the time.
How am I supposed to determinate this? :S



None.

Aug 26 2010, 5:50 am Sand Wraith Post #4

she/her

Try using "For Integer Each Integer" and a local variable (short name such as "i" for "index" works well, or like "i_pods"). Then, instead of referring to "Picked Integer," just use the index variable.
(This shouldn't have an effect, but it's good practice to do so; also, seriously try this. If my suggestion works, then either the current function "Pick Each Integer" is broken or something else is wrong with your trigger. Perhaps, even, the assbackwards lobby system is screwing with your game, in case of online testing.)

Also, use a nested variable to do your control grouping actions please. It's a massive waste of time to do what you just did. Srsly, any time you have anything that repeats roughly the same action, automate the process. It might take up a bit of processing power, but on top of what SC2 already uses, who the Hell cares?

okay actually burn this I can't even tell what you're trying to do, you don't even have the entire trigger posted

While I'm here: any time you have more than 1 action acting on "Last Created Unit, Triggering Unit," or similar, set a local variable to the unit in question first, and then proceed to refer to that unit using previous variables so that the trigger is multi-instanceable (e.g. 2 players use the trigger at once), AKA MUI.




Aug 26 2010, 10:55 am payne Post #5

:payne:

Quote from Sand Wraith
While I'm here: any time you have more than 1 action acting on "Last Created Unit, Triggering Unit," or similar, set a local variable to the unit in question first, and then proceed to refer to that unit using previous variables so that the trigger is multi-instanceable (e.g. 2 players use the trigger at once), AKA MUI.
You completely lost me. D:

Btw, all my trigger is missing is a "Map Initialization" Event. ;o

EDIT: Don't forget I have an other question too in the OP! It's about "how to detect and kill spider mines/turret/force field". :/

Post has been edited 1 time(s), last time on Aug 26 2010, 4:24 pm by payne.



None.

Aug 27 2010, 3:46 am Sand Wraith Post #6

she/her

I'm pretty sure all you have to do is include Missiles in your unit field. I know that it's possible to remove and kill projectiles, so triggers should definitely definitely be able to detect mines/turrets/force fields.

I think they are regarded as normal units but with different flags set. Maybe. I dunno.




Aug 27 2010, 4:19 am payne Post #7

:payne:

Quote from Sand Wraith
I'm pretty sure all you have to do is include Missiles in your unit field. I know that it's possible to remove and kill projectiles, so triggers should definitely definitely be able to detect mines/turrets/force fields.

I think they are regarded as normal units but with different flags set. Maybe. I dunno.
My filter is "Exclude: Buildings". :/

Oh, btw, I solved my OC problem: I just had to "Ignore Placement". :P



None.

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?
[2024-4-25. : 7: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: Roy, jun3hong