Trigger doesn't work

skyblader

You're living only because it's illegal killing.
Reaction score
159
Trigger:
  • Magic Touch
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • -------- Lightning Touch --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Lightning Touch
        • Then - Actions
          • Set MagicTouchChance = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • MagicTouchChance Less than or equal to (((Level of Lightning Touch for (Triggering unit)) x 5) + 5)
            • Then - Actions
              • Set TempPoint = (Position of (Triggering unit))
              • Unit - Create 1 dummy unit for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
              • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
              • Unit - Add Stun to (Last created unit)
              • Unit - Set level of Stun for (Last created unit) to (Level of Lightning Touch for (Triggering unit))
              • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
            • Else - Actions
        • Else - Actions
      • Custom script: call RemoveLocation (udg_TempPoint)


The stun ability is a unit ability, 99999 cast range, 0 cooldown, 0 mana cost.

Anything wrong in there?
Its supposed to have a percentage chance to stun every time the spell is casted. The spell is an autocast spell with no cooldown and I've tried casting a lot of times and nothing was stunned.

Edit: Targets allowed air, ground, enemy, neutral.
 
Notes:
Move the custom script into the If/Else
Use Starts the effect of an Ability


What is Lightning touch based off? How have you modified "Stun"?
 
this is what you should do, see below
right after you create the dummy, make new variance , unit variance
eg. Set DummyMagicTouch = Last Created Unit
then replace all the Last created unit with DummyMagicTouch, your trigger should 100% work.
 
Autocasted spells won't trigger that event, you'llhave to make it so that the unit is added to a group when he issues the order (the autocast order). Then make the trigger event a unit is attacked and check if the attackeris in the group and do the rest.

On phone, so I can't make the triggers
 
Use [ljass]BJDebugMsg[/ljass] or just [ljass]DisplayTextToForce[/ljass] (I forget the GUI equiv., I think it`s just Display Message.) so you know what each value is throughout the trigger.

That will help narrow it down.
 
Trigger:
  • Add to group
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(flamingarrows))
    • Actions
      • Unit Group - Add (Ordered unit) to Magic_Touch_Group


Trigger:
  • Remove from group
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unflamingarrows))
    • Actions
      • Unit Group - Remove (Ordered unit) from Magic_Touch_Group


Trigger:
  • Magic Touch
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
      • ((Casting unit) is in Magic_Touch_Group) Equal to True
    • Actions
      • -------- Actions --------
 
Yeah. You're right. Autocast spells don't trigger it. Nut what I don't understand from your trigger is that, isn't it the same? Only just narrowing down from a smaller group? Because I think the problem here is with the event. I've inserted a text to display after the chance, but nothing cameo out.
 
Woah fail, why did I post that third trigger?

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is in Magic_Touch_Group) Equal to True
    • Actions
      • -------- Actions based on Attacking Unit ---------
 
As for the order, I have no idea what string to type in. The skill I based it off is poison arrows, and I made another spell which is similar to this. So I also need the string part, I based it off searing arrows.

Ok I need the string for 4 spells.

Black arrow
Poison arrows
Searing arrows
Cold Arrows (Not frost arrows)
 
the strings are also called base order ID... its usually a drop down menu thing in the ability editor for each ability!

it'll say On and Off order strings!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I'm now realizing I could have cut out like 99% of this print and it would have been fine cuz I just need to see if a frame will fit over an LCD
  • Varine Varine:
    Oh well
  • Varine Varine:
    I'm not an engineer
  • Varine Varine:
    Although this filament is kind of expensive, I should probably be a bit more wary of that.
  • The Helper The Helper:
    I love the whole concept of 3D Printers and am very happy you have one so I can hear about them
  • The Helper The Helper:
  • Varine Varine:
    I have a couple of them, but I only have room for one to be set up at the moment
  • Varine Varine:
    So I picked the biggest one. When I bought it, I didn't realize that they used a lot of proprietary parts. So, I want to use these Volcano nozzles that are really cheap and easy to find instead of what they have, which are like, modified Volcano nozzles
  • Varine Varine:
    They are just a little bit longer than the regular ones. Like, we're talking .5mm or some shit. But that little bit makes the nozzle just long enough to extrude past the rest of the hardware on the extrusion system, I can't find my notes on it but I think it's like a .25mm gap from the end of the nozzle to the bed mesh sensor. Very small.
  • Varine Varine:
    So I bought a bunch of different parts to try and figure out how to make this work, and in the process changed some of the electrical components like the thermistors, but never got around to figuring out how to make the firmware account for the different hardware. Resulting in it not interpreting the voltage change to mean that the thermistor was above temperature, so it didn't shut off the heating core and it just kept pumping heat out
  • Varine Varine:
    I have most of the stuff I need to build an enclosure so I can heat the chamber for different plastics that need to have a pretty consistent temperature through the whole model, and then I can get my other ones set up too. I have a shitty Ender but that one is super easy to modify, but it's also very outdated and kind of a nightmare to work with. I think I'm going to cannibalize it for parts and just run my big one and another little one.
  • Varine Varine:
    I think I solved my problem with digitizing reels tho!
  • Varine Varine:
    Like Super 8 reels. Actual equipment to do it is like, thousands and thousands of dollars, and the cheap ones are useless, so I'm trying to build one so I can just use the same camera I use for slides and negatives. Much cheaper
  • Varine Varine:
    Anyway, it kind of works, but the take up reel is kind of tricky because you need to spin it directly to wind the tape onto it. And as it fills, you need to slow it down, and that's kind of complicated. More complicated than I wanted to try and account for, anyway.
  • Varine Varine:
    So I have the first motor that has gearing pull it from the original reel, through a set of pullies to keep some tension, and then a second motor synced with the first to guide it through the projection port so I can capture the images
  • Varine Varine:
    All that's easy enough, I just need to make sure I don't get too much force onto the film itself so I don't accidentally tear it.
  • Varine Varine:
    Then I think my solution to the take up reel is to have a kind of dancing lever on a spring in between two limit switches
  • Varine Varine:
    So, as the tape comes towards the take up reel and makes slack, that lever is pulled up by a spring to keep the tension on the film, it hits a limit switch to engage the take up reel motor at some point, and as that winds in the film, the film pushes the lever back down to a second limit switch to disengage the motor again. Slack builds up, spring pulls it back, ad infinitum
  • Varine Varine:
    Well, until the reel is empty anyway.
  • Varine Varine:
    I'm guessing it's going to be much harder than I feel like it is going to be right now, but I think it's a pretty elegant solution that doesn't rely on software to control it. The less software I need to use the better
  • Varine Varine:
    I'm just not a very good programmer, as much as I want to be I suck at it
  • The Helper The Helper:
    Programming that printer is going to be similar to programming a big machine like in a machine shop. There is good money in programming CNC machines.
  • The Helper The Helper:
    +1
  • Varine Varine:
    They are pretty similar, but this one is much less involved than a real CNC. A lot less moving parts
    +1
  • The Helper The Helper:
    Happy Monday!

      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