• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Trigger Help

Status
Not open for further replies.
Level 12
Joined
Jun 10, 2008
Messages
1,043
I'm making this spell, called "Prone", which is basically just "Defend" without any factors. Instead, I have triggered the spell using:

  • Prone
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Prone
    • Actions
      • Unit - Set (Casting unit) movement speed to 50.00
      • Unit - Add Prone Effect to (Casting unit)
      • Unit - Add Prone Effect II to (Casting unit)
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Prone Undo <gen>
and

  • Prone Undo
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Prone
    • Actions
      • Unit - Remove Prone Effect from (Triggering unit)
      • Unit - Remove Prone Effect II from (Triggering unit)
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Prone <gen>
The problem is the movement speed does not change, and Prone Effect/II are not added. I was wondering why this is, and if there is a better way to trigger this.
 
Level 15
Joined
Jul 9, 2008
Messages
1,552
well the base spell is defend right try using

  • prone
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Level of prone 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
          • add effects
        • 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
          • remove effects
        • Else - Actions
this will also make the spell MUI and more sufficent
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
lol
1.00 = 0% speed (the footman wont move at all)
0.00 = 100% speed (normal speed)
-10 = +1000% speed (seriously?)

How the fuck would -10 = +1000% speed? I thought this was %s

That's wierd. Maybe you should check the condition. I think it could be that 50 is close to the movement speed of the unit. If it doesn't work, then maybe try restarting WE. If that doesn't work then you could try to store the movement speed into a variable. I know these sound stupid but just try them.

There normal movement speed is 270. I'll try your variable idea
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
This doesn't work darkzealot.
  • Prone
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Prone
    • Actions
      • Unit - Set (Casting unit) movement speed to 50.00
      • Wait 0.10 seconds
      • Unit - Add Prone Effect to (Casting unit)
      • Wait 0.10 seconds
      • Unit - Add Prone Effect II to (Casting unit)
      • Wait 0.10 seconds
      • Trigger - Turn off (This trigger)
      • Wait 0.10 seconds
      • Trigger - Turn on Prone Undo <gen>

  • Prone Undo
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Prone
    • Actions
      • Unit - Remove Prone Effect from (Triggering unit)
      • Wait 0.10 seconds
      • Unit - Remove Prone Effect II from (Triggering unit)
      • Wait 0.10 seconds
      • Trigger - Turn off (This trigger)
      • Wait 0.10 seconds
      • Trigger - Turn on Prone <gen>
 
Level 11
Joined
Aug 6, 2009
Messages
697
  • Actions
    • Unit Group - Add YourUnit to YourUnitGroup
    • Unit Group - Pick every unit in YourUnitGroup and do (Actions)
      • Loop - Actions
        • Unit - Set (Picked unit) movement speed to ((Current movement speed of (Picked unit)) / 2.00)
        • Unit Group - Remove (Picked unit) from YourUnitGroup
Proven to have worked by this trigger.

  • Events
    • Time - Every 2.00 seconds of game time
  • Actions
    • Game - Display to (All players) for 0.50 seconds the text: (String((Current movement speed of Footman 0001 <gen>)))
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
^ Doesn't work for me. Actually, right now no trigger is working, not even the ones I got from the Konstrukt models on how to attach weapons to the units... what the fuck is wrong with my world editor?
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
Since my World Editor was fucked up, maybe it messed up my C&P aswell... could somebody try to C&P the terrain/triggers from Mission 1 to a new map? I know there isn't much on it but I'd appreciate it. I'm going to reinstall my WE.
 

Attachments

  • Future Campaign.w3n
    1.9 MB · Views: 30
Level 11
Joined
Aug 1, 2009
Messages
714
Why don't you check millzy's post?
well the base spell is defend right try using

  • prone
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Level of prone 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
          • add effects
        • 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
          • remove effects
        • Else - Actions
this will also make the spell MUI and more sufficent
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
Ok lol... I got the triggers working.

However, now when they are in prone they take 0 damage for some reason. The "Miss" sign doesn't even come up... anybody have any ideas?
 
Status
Not open for further replies.
Top