Trigger not firing Properly

Slayerxx

You can change this now in User CP.
Reaction score
3
Ok so i am making a (Sexiest) ability for my support woman (Tower builder) it is to make a sandwich and depending on the different sandwich it gives the eater different effects. I have the "Sandwich's" as buildings and what i want to happen is that the Woman buys the ingredients (Items) and then goes to build a "sandwich". now i have a trigger to once run removes corresponding ingredients and give the desired sandwich. this is what i have so far and the problem is that i dont know what to have as teh Unit conditions ie Triggering unit, Ordered unit etc.

Trigger:
  • Woman Goes to make a Sandwich
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Suport Woman
    • Actions
      • Game - Display to (All players) the text: (Name of Woman)
      • Set Woman = (Triggering unit)
      • Set Bread = (Item carried by (Triggering unit) of type Bread)
      • Set Cheese = (Item carried by (Triggering unit) of type Cheese)
      • Set Ham = (Item carried by (Triggering unit) of type Ham)
      • Set Lettuce = (Item carried by (Triggering unit) of type Lettuce)
      • Set Tomato = (Item carried by (Triggering unit) of type Tomato)
      • Unit - Kill (Constructing structure)
      • If ((Unit-type of (Constructing structure)) Equal to Tasty Sandwich) then do (Trigger - Run Tasty Sandwich <gen> (checking conditions)) else do (Do nothing)
      • If ((Unit-type of (Constructing structure)) Equal to Frozen Sandwich) then do (Trigger - Run Frozen Sandwich <gen> (checking conditions)) else do (Do nothing)
      • If ((Unit-type of (Constructing structure)) Equal to Flaming Sandwich) then do (Trigger - Run Flaming Sandwich <gen> (checking conditions)) else do (Do nothing)
      • If ((Unit-type of (Constructing structure)) Equal to Shadow Sandwich) then do (Trigger - Run Shadow Sandwich <gen> (checking conditions)) else do (Do nothing)



there is alot to do with this still, i just cant think of how to do it. also once working i am hoping to remove "Changes" on items as ingredients have charges so each sandwich uses 2 slices of bread so 2 charges are removed from "Bread"
 

Extes

Cool Member
Reaction score
5
I keep reading your post, and I get the feeling I 'may' be able to help, but I am not exactly sure what the problem is... the trigger looks like its fetching data from other variables not seen here, as well as other triggers. Are you trying to remove the items from the woman's inventory? Or trying to make her go away? You want the person eating the sandwiches (hamburglar) to get a buff after destroying the building/eating the sandwich?
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Constructing a structure will never return you the building unit. All structure events (begins, finishes, cancels) will always return the structure as the triggering unit.

I would advice you not to use a construction but rather an ability. Maybe the ivory tower ability if you really want them to be structures.
When using an ability you can easily refer to the casting unit.
 

Slayerxx

You can change this now in User CP.
Reaction score
3
Sorry for not being specific enough. Basicly Like alchemy i want to make somthing from multi able things in this case Making a Tasty Sandwich from Bread, cheese, ham, tomato and lettuce. The sandwich is an item and so are the ingredients. so The woman Buys the ingredients (Items) and makes the sandwich. I hope to do this by in the woman's build Selections there are the different Sandwich's that can be made granted you have the right ingredients. So i have dummy buildings for each sandwich, and what i want the triggers to do is when the woman goes to make a sandwich they select it from the build screen and then just place it anywhere, This is what i want as the trigger event. So When you go to build a Tasty Sandwich you start to build it and then the trigger scans your inventory and if you have the correct ingredients then the respected amount of ingredients is removed and the sandwich is placed in the woman's inventory.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
As i said before, i would definitely not advice you to use structures for this purpose, since all the events which base upon constructing a structure will never grant you a event response which gives you the building unit.
I would rather use abilities for it.
If you want a sub menu i would use a spellbook filled with channel based abilities.

Structures are a bad choice for many purposes.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
i lold when i saw that your ability was "sexy" by having the woman making a sandwich
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    Sticking with the desserts for now the latest recipe is Fried Apple Pies - https://www.thehelper.net/threads/recipe-fried-apple-pies.194297/
  • The Helper The Helper:
    Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top