Help me with Spell +rep

Volkof

Well-Known Member
Reaction score
31
i believe you can set berserk to hav 0% move speed.


If that doesnt work, add another action into your trigger
Code:
Unit - Pause Triggering Unit
 

havefaith

New Member
Reaction score
2
Defend Into an Ability? +repp!!

Alright, iv been having a hard time with this trigger i am making where i start the effect of an ability and when i do it sets my movment speed to 0. the problem is the ability is based off of defend, and for some reason Defend is not treated as an ability, it works with every other spell but defend.. of course! can any one help me???? +REPP!
 

havefaith

New Member
Reaction score
2
the problem now is that yes if i change the ability to something like beserk it will work... but i want to be able to take the ability of at any time so i can return my movement speed back to normal... and only Defend allows me to turn off and on with out any conditions.
 

havefaith

New Member
Reaction score
2
Defend isnt an ability?

Alright, iv been having a hard time with this trigger i am making where i start the effect of an ability and when i do it sets my movment speed to 0. the problem is the ability is based off of defend, and for some reason Defend is not treated as an ability, it works with every other spell but defend.. of course! can any one help me???? +REPP!
 

havefaith

New Member
Reaction score
2
lol... that isnt the problem... i can find the ability just find but my trigger is this....

Trigger:
  • Take Cover Remake
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Take Cover!
    • Actions
      • Unit - Add Taking Cover! to (Casting unit)
      • Unit - Create 1 Cover for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by 140.00 towards 110.00 degrees) facing Default building facing degrees
      • Unit - Set (Casting unit) movement speed to 1.00


and it doesnt work with Defend because its not treated as an ability... i wanna know if any one can work around this?



PS. I know the trigger works cause it works with other spells just not the spell i need it to work with..
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Use the Event:
Code:
Unit - A unit Starts the effect of an ability
And if the unit is casting Take Cover!, why are you adding Take Cover! to the unit that already has it :confused: ?
 

havefaith

New Member
Reaction score
2
im adding Taking Cover! Completly different spell.... all i want is the ability Defend to be treated like an ability so my trigger works... but its not... when i activate the ability i want my movment speed to be set to 0... when i cancel the ability it goes back to normal!!!!!

get it?
 

vypur85

Hibernate
Reaction score
803
Code:
Melee Initialization
    Events
        Unit - A unit Is issued an order with no target
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Issued order) Equal to (Order(defend))
            Then - Actions
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Issued order) Equal to (Order(undefend))
            Then - Actions
            Else - Actions

Use orders to detect casting. 'defend' is the order to activate, while 'undefend' is the order to cancel off. The actions are up to you.

Edit:
Anyway, Defend itself allows you to adjust the unit's movement speed. You no need trigger to set it's movement speed.
 

havefaith

New Member
Reaction score
2
wow your amazing Vypur.... the problem is, Undefend isnt a seperate ability... how would i make a trigger to issue the order to undefend?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
When you deactivate Defend, the order is undefend.
Enter your actions into vypur's trigger;
I'm 99.5% sure it will work.

PS: Bedtime for me though :rolleyes: .
 

vypur85

Hibernate
Reaction score
803
Code:
Melee Initialization
    Events
        Unit - A unit Is issued an order with no target
    Conditions
        [B]Unit-Type of (Triggering unit) Equal to YourUnitType[/B]
        [B]Level of YourDefend for (Triggering unit) Greater than 0[/B] <-- [I]Either one condition would work[/I]
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Issued order) Equal to (Order(defend))
            Then - Actions
                [B]Unit - Set (Triggering unit) movement speed to 0.00[/B]
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Issued order) Equal to (Order(undefend))
            Then - Actions
                [B]Unit - Set (Triggering unit) movement speed to Default movement speed of (Triggering unit)[/B]
            Else - Actions

What Wolfie said is correct. I'll just add example just to make sure you don't confuse. So basically the trigger is used for both turning the ability on and off. It's also good to add the additional condition just to make sure it doesn't mess up with other Defend ability.


But:
Me said:
Anyway, Defend itself allows you to adjust the unit's movement speed. You no need trigger to set it's movement speed.


Edit:
> hrmmm noope.. undefend is not there =\!!! damit this is so frusturating.

You don't understand. The trigger IS for Defend. Just set up the trigger and then order your unit to cast/off the spell. Then you can see the difference.


Edit2:
Watta... Ace...
 

havefaith

New Member
Reaction score
2
this is the trigger so far....

Trigger:
  • Take Cover
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Steven Booth
      • (Level of Take Cover! for (Triggering unit)) Greater than 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order((Name of Take Cover! )))
        • Then - Actions
          • Unit - Add Taking Cover! to (Casting unit)
        • Else - Actions
          • Unit - Create 1 Cover for (Owner of (Casting unit)) at ((Center of (Playable map area)) offset by 256.00 towards 0.00 degrees) facing Default building facing degrees


its not working though -.-'
 

vypur85

Hibernate
Reaction score
803
Code:
    * Take Cover
          o Events
                + Unit - A unit Is issued an order with no target
          o Conditions
                + (Level of Take Cover! for (Triggering unit)) Greater than 0
          o Actions
                + If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      # If - Conditions
                            * (Issued order) Equal to (Order(([B]defend[/B])))
                      # Then - Actions
                            * Unit - Add Taking Cover! to ([B]Triggering[/B] unit)
                      # Else - Actions
                            * Unit - Create 1 Cover for (Owner of ([B]Triggering[/B] unit)) at ((Center of (Playable map area)) offset by 256.00 towards 0.00 degrees) facing Default building facing degrees

Now try. =.= Follow my trigger... Don't change to something else... Triggering unit... defend and undefend...


Edit:
Also, if you happen to feel weird when you press the 'Stop' button, don't be. You really need to follow the trigger I've provided in Post#76.
 

havefaith

New Member
Reaction score
2
WOW it worked....! you are truely a genius.... you have no clue how many people iv asked and they all couldnt figure it out =} give your self a pat on the back... but now that iv got it set up to create the unit and give me the spell how would i get it to remove the unit and spell when i cancel the ability?

Trigger:
  • Take Cover
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Level of Take Cover! for (Triggering unit)) Greater than 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order((Name of Defend)))
        • Then - Actions
          • Unit - Add Taking Cover! to (Triggering unit)
          • Unit - Create 1 Cover for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 140.00 towards 110.00 degrees) facing Default building facing degrees
        • Else - Actions
 

vypur85

Hibernate
Reaction score
803
> give your self a pat on the back

I'm scratching my head profusely now! You're still doing the trigger differently. :p

Now, follow the below trigger. Don't change any single damn thing. Even the 'defend'.

Code:
    Events
        Unit - A unit Is issued an order with no target
    Conditions
        (Level of Take Cover! for (Triggering unit)) Greater than 0
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Issued order) Equal to (Order(defend))
            Then - Actions
                Unit - Add Taking Cover! to (Triggering unit)
                Unit - Create 1 Cover for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 140.00 towards 110.00 degrees) facing Default building facing degrees
                Set UnitVariable = (Last created unit)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Issued order) Equal to (Order(undefend))
            Then - Actions
                Unit - Remove [B]UnitVariable[/B] from the game
            Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top