Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Spell-Triggered Action
Spell-Triggered Action
Nov 9 2007, 12:25 am
By: FredFredBurger_  

Nov 9 2007, 12:25 am FredFredBurger_ Post #1



well.. not just any spells

Distruption Field or Dark Swarm, how can one make a condition in relation to these?

Ex. MTG where the black defiler uses dark swarm and the location centers into it and heals all units in it.

P.S. Command/Bring triggers dont work. i tried -.-... well for corsairs nyways

Post has been edited 5 time(s), last time on Nov 10 2007, 4:14 pm by FredFredBurger_.



None.

Nov 9 2007, 12:38 am Roy Post #2

An artist's depiction of an Extended Unit Death

Okay, I'll make a simple trigger system for you.

Requirements:
-Starforge OR SCMDraft2 OR (Maybe...) Xtra-Editor
-Some trigger background

Okay, using one of the editors above (preferably SCMD2) create the following triggers (The example will be for Dark Swarm). (Note: You need the editor to select units such as "Dark Swarm" and "Disruption Field" in the trigger unit listing - StarEdit.exe will not work!)

Trigger
Players

  • Player 8 (Or w/e you want)
  • Conditions

  • Always (OR* "All Players brings at least 1 'Dark Swarm' to 'Anywhere')
  • Actions

  • Center location labelled 'CenterLoc' on 'Dark Swarm' owned by 'All Players' at 'Anywhere'
  • (Optional*) Kill all 'Dark Swarm' for 'All Players'
  • Preserve Trigger

  • *Do this if you want the swarm to disappear after you cast it. If you choose to do this, use the alternative condition, and the location will stay wherever you chose to create the dark swarm, but there won't be a dark swarm.


    I think you can figure out the rest (Requirement #2 Lol). Basically, if you want the units inside the location to heal, make a healing trigger with "Bring to Location" as the condition.

    This is very customizable; you can add things like a custom time-limit for the dark swarm or whatever you choose. The above trigger just tells you how to move a location using dark swarm.

    To do this with Disruption Field, replace the unit 'dark swarm' with 'disruption field.' Nothing special needs to be changed.

    Reply if this post failed to answer your topic, or if you want to say how impressed you were with my answer :P




    Nov 9 2007, 12:42 am FredFredBurger_ Post #3



    does it have to be "all players" ?

    Quote
    -Kill all 'Dark Swarm' for 'All Players'-

    nvm im guessing the dark swarm and distruption web spells are given to another player.

    Post has been edited 1 time(s), last time on Nov 9 2007, 12:50 am by FredFredBurger_.



    None.

    Nov 9 2007, 12:51 am Roy Post #4

    An artist's depiction of an Extended Unit Death

    Dark Swarm and Disruption Field are always owned by Neutral (Player 12)

    So... Instead of using 'All Players,' You can use 'Neutral' (OR 'Player 12' if you use StarForge)

    If you intend on using more than one dark swarm at the same time, then use "Kill at location" instead of "Kill"

    Sample:

    Kill all 'Dark Swarm' for 'Neutral' at 'CenterLoc'




    Nov 9 2007, 1:38 am Falkoner Post #5



    Is there any difference between how it looks if you remove or kill a spell?



    None.

    Nov 9 2007, 1:49 am FredFredBurger_ Post #6



    im having a problem with hyper triggers

    well... ill tell you what im doing.

    im making a trigger where a corsair summons a distruption web all units get sucked into it. also making scourage hallutionations and killing it for some special effects (with the Order trigger). I gave it a given time limit (5 seconds). but it keeps making and killing scourage hallutionations + ordering units after 5 seconds. never stops. i tripple check everything it should stop. some triggers that worked fine before also never stops. dunno whats happening any help?



    None.

    Nov 9 2007, 2:13 am NudeRaider Post #7

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Quote from FredFredBurger_
    does it have to be "all players" ?

    Quote
    -Kill all 'Dark Swarm' for 'All Players'-

    nvm im guessing the dark swarm and distruption web spells are given to another player.
    AFAIK All Players does NOT include P12 (Neutral) which is the player who always owns every swarm and web.




    Nov 9 2007, 2:15 am NudeRaider Post #8

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Quote from FredFredBurger_
    im having a problem with hyper triggers

    well... ill tell you what im doing.

    im making a trigger where a corsair summons a distruption web all units get sucked into it. also making scourage hallutionations and killing it for some special effects (with the Order trigger). I gave it a given time limit (5 seconds). but it keeps making and killing scourage hallutionations + ordering units after 5 seconds. never stops. i tripple check everything it should stop. some triggers that worked fine before also never stops. dunno whats happening any help?
    All this sounds a bit odd but the most common problem with hypers is wait blocks.
    To solve those make sure to give the hypertriggers to a player which does not execute ANY wait. Then everything should work fine.




    Nov 9 2007, 2:21 am Falkoner Post #9



    http://Falkoner.CoW.GooglePages.com/Hyper_Triggers.html



    None.

    Nov 9 2007, 2:29 am NudeRaider Post #10

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Quote from Falkoner
    Is there any difference between how it looks if you remove or kill a spell?
    One would expect a "collapsing animation" on killing a spell (or when its duration is over) but since I never saw such an animation when those spells timed out I'm quite sure both killing and removing look the same: It just vanishes.




    Nov 9 2007, 2:54 am Roy Post #11

    An artist's depiction of an Extended Unit Death

    Quote from NudeRaider
    Quote from FredFredBurger_
    does it have to be "all players" ?

    Quote
    -Kill all 'Dark Swarm' for 'All Players'-

    nvm im guessing the dark swarm and distruption web spells are given to another player.
    AFAIK All Players does NOT include P12 (Neutral) which is the player who always owns every swarm and web.
    O.o All Players covers P12... I've used it in my maps all the time and it worked right... Also a great example of this is Level Up Bound, where if someone leaves when their ling is ordered to go on the beacon, all the levels with "All players brings at least 1 men to location" get skipped. It stops at level 99 because the condition was changed to "Force 1 brings at least..."

    Quote from NudeRaider
    Quote from Falkoner
    Is there any difference between how it looks if you remove or kill a spell?
    One would expect a "collapsing animation" on killing a spell (or when its duration is over) but since I never saw such an animation when those spells timed out I'm quite sure both killing and removing look the same: It just vanishes.
    They have animations O.o they do the opposite of how they spawned; they shrink out of existence.

    Back to the problem...

    Quote from NudeRaider
    All this sounds a bit odd but the most common problem with hypers is wait blocks.
    To solve those make sure to give the hypertriggers to a player which does not execute ANY wait. Then everything should work fine.

    Gg...




    Nov 9 2007, 4:25 am FredFredBurger_ Post #12



    gawd i tried everything. no works for me ---- im still getting "wait blocks"



    None.

    Nov 9 2007, 4:49 am FredFredBurger_ Post #13



    dklsjfa;lkjlsdf these wait blocks are killing me god... need some help. i tried both complex and hyper triggers. none of the players i put in has no wait time to execute. i tried almost everything i could think of... still getting long ass delays of wait times. anything else should i add? yea this is annoying? asdljfsdlkjfasld;fj help!



    None.

    Nov 9 2007, 4:56 am Falkoner Post #14



    Were your triggers sped up when you used the Complex ones, or were they never sped?



    None.

    Nov 9 2007, 6:39 am FredFredBurger_ Post #15



    i never touched them when i sped them up with the complex hyperspeed trigger



    None.

    Nov 9 2007, 11:59 am NudeRaider Post #16

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    I suggest you attach your map... Obviously there is a mistake where you don't expect it. But more eyes find more. ;)

    Eyes.... good catch-word... it seems I have to go to the eye specialst that I can see those collapsing animations... O.o

    And about all players include P12: Yes, it DOES include P12... sry for that.
    But some actions simply do not run for P12. I didn't consider that in my map; Thats what led me to the wrong conclusion. :blush:




    Nov 10 2007, 12:49 am FredFredBurger_ Post #17



    sorry but where do i attach it?



    None.

    Nov 10 2007, 12:58 am who Post #18



    When you click Reply, there's an "Attach File" option.



    None.

    Nov 10 2007, 1:12 am Moose Post #19

    We live in a society.

    Quote from NudeRaider
    AFAIK All Players does NOT include P12 (Neutral) which is the player who always owns every swarm and web.
    All Players includes Player 12. You might have to use Remove instead of Kill, though.




    Nov 10 2007, 4:24 am Falkoner Post #20



    Well, if you did the Complex Hyper Triggers right, your waits should either move normally and your triggers going at normal speed, or all your triggers should be sped up, which one is happening?



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [09:38 pm]
    NudeRaider -- Ultraviolet
    Ultraviolet shouted: NudeRaider sing it brother
    trust me, you don't wanna hear that. I defer that to the pros.
    [07:56 pm]
    Ultraviolet -- NudeRaider
    NudeRaider shouted: "War nie wirklich weg" 🎵
    sing it brother
    [06:24 pm]
    NudeRaider -- "War nie wirklich weg" 🎵
    [2024-4-27. : 3:33 pm]
    O)FaRTy1billion[MM] -- o sen is back
    [2024-4-27. : 1:53 am]
    Ultraviolet -- :lol:
    [2024-4-26. : 6:51 pm]
    Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
    [2024-4-26. : 6:50 pm]
    NudeRaider -- Vrael
    Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
    sounds like moisture control is often a pressing concern in your city
    [2024-4-26. : 6:50 pm]
    Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
    [2024-4-26. : 6:49 pm]
    Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
    [2024-4-26. : 6:48 pm]
    Vrael -- On this Topic, I could definitely use some Introductions.
    Please log in to shout.


    Members Online: Roy, Dem0n, C(a)HeK