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



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



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.
[02:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[02:47 am]
Symmetry -- I'll check it out this weekend!
[02:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[02:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[01:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[01:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[01:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
[01:31 am]
Ultraviolet -- Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Is it forbidden to have a large avatar?
actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
[12:20 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: https://staredit.net/profile/133367/ dude's avatar is massive
Is it forbidden to have a large avatar?
[12:04 am]
Ultraviolet -- https://staredit.net/profile/133367/ dude's avatar is massive
Please log in to shout.


Members Online: Mr.BurnLiquid, Moose