Will this trigger work?

Astal

New Member
Reaction score
1
Its an item combine, and i want so if the hero has any of the 4 swords it will still work. Will it bug if the game tries to remove an item the hero doesnt have? If so how could i get around that

Trigger:
  • Godly Sword of Pain
    • Events
      • Unit - A unit enters Item Combine <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Entering unit) has (Item carried by (Entering unit) of type Upgrade Gem)) Equal to True
          • ((Entering unit) has (Item carried by (Entering unit) of type Godly Gem)) Equal to True
          • ((Entering unit) has (Item carried by (Entering unit) of type Sword)) Equal to True
          • Or - Any (Conditions) are true
            • Conditions
          • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Desolation)) Equal to True
          • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Flame)) Equal to True
          • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Frost)) Equal to True
          • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Lightning)) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Entering unit) of type Ultimate Sword of Desolation)
          • Item - Remove (Item carried by (Entering unit) of type Ultimate Sword of Flame)
          • Item - Remove (Item carried by (Entering unit) of type Ultimate Sword of Frost)
          • Item - Remove (Item carried by (Entering unit) of type Ultimate Sword of Lightning)
          • Item - Remove (Item carried by (Entering unit) of type Upgrade Gem)
          • Item - Remove (Item carried by (Entering unit) of type Godly Gem)
          • Item - Remove (Item carried by (Entering unit) of type Sword)
          • Item - Create Godly Sword of Pain at (Position of (Entering unit))
          • Hero - Give (Last created item) to (Entering unit)
        • Else - Actions
          • Do nothing
 

hunterrravyn

TH.net Regular
Reaction score
19
I dont see any problems with it but what if the hero has two swords? it would get rid of both. i.e. In the Or conditions
 

jig7c

Stop reading me...-statement
Reaction score
123
the Or-Conditions are messed up..there are none...

you need to indent, move the rest of the conditions below or-conditions....

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Entering unit) has (Item carried by (Entering unit) of type Upgrade Gem)) Equal to True
      • ((Entering unit) has (Item carried by (Entering unit) of type Godly Gem)) Equal to True
      • ((Entering unit) has (Item carried by (Entering unit) of type Sword)) Equal to True
    • Or - Any (Conditions) are true
      • Conditions
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Desolation)) Equal to True
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Flame)) Equal to True
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Frost)) Equal to True
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Lightning)) Equal to True


replace this part:
Trigger:
  • Item - Remove (Item carried by (Entering unit) of type Sword)
    • Item - Create Godly Sword of Pain at (Position of (Entering unit))
    • Hero - Give (Last created item) to (Entering unit)


with:
Trigger:
  • Item - Remove (Item carried by (Entering unit) of type Sword)
    • Set Temppoint = Position of (Entering unit)
    • Item - Create Godly Sword of Pain at (Temppoint)
    • Hero - Give (Last created item) to (Entering unit)
    • Custom script: call RemoveLocation(udg_Temppoint)


and no, it will not bug the game if the hero doesn't have the item..
just make sure two heroes don't enter Item Combine at the same time.. although thats a rare possiblity...
 

Astal

New Member
Reaction score
1
the Or-Conditions are messed up..there are none...

you need to indent, move the rest of the conditions below or-conditions....

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Entering unit) has (Item carried by (Entering unit) of type Upgrade Gem)) Equal to True
      • ((Entering unit) has (Item carried by (Entering unit) of type Godly Gem)) Equal to True
      • ((Entering unit) has (Item carried by (Entering unit) of type Sword)) Equal to True
    • Or - Any (Conditions) are true
      • Conditions
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Desolation)) Equal to True
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Flame)) Equal to True
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Frost)) Equal to True
        • ((Entering unit) has (Item carried by (Entering unit) of type Ultimate Sword of Lightning)) Equal to True


replace this part:
Trigger:
  • Item - Remove (Item carried by (Entering unit) of type Sword)
    • Item - Create Godly Sword of Pain at (Position of (Entering unit))
    • Hero - Give (Last created item) to (Entering unit)


with:
Trigger:
  • Item - Remove (Item carried by (Entering unit) of type Sword)
    • Set Temppoint = Position of (Entering unit)
    • Item - Create Godly Sword of Pain at (Temppoint)
    • Hero - Give (Last created item) to (Entering unit)
    • Custom script: call RemoveLocation(udg_Temppoint)


and no, it will not bug the game if the hero doesn't have the item..
just make sure two heroes don't enter Item Combine at the same time.. although thats a rare possiblity...

Is there any easy way to fix that? The taking of any swords the hero has?
 

jig7c

Stop reading me...-statement
Reaction score
123
it won't bug the way it is right now, because there are no waits involved, and its instant...
 

jig7c

Stop reading me...-statement
Reaction score
123
can i see ur entire trigger?


this is what it should look like...
Trigger:
  • Item1
    • Events
      • A unit enters Item Combine <gen>
    • Conditions
      • ((Triggering unit) has an item of type Upgrade Gem) Equal to True
      • ((Triggering unit) has an item of type Godly Gem) Equal to True
      • ((Triggering unit) has an item of type Sword) Equal to True
      • Or - Conditions
        • ((Triggering unit) has an item of type Ultimate Sword of Desolation) Equal to True
        • ((Triggering unit) has an item of type Ultimate Sword of Flame) Equal to True
        • ((Triggering unit) has an item of type Ultimate Sword of Frost) Equal to True
        • ((Triggering unit) has an item of type Ultimate Sword of Lightning) Equal to True
    • Actions
      • Item - Remove (Item carried by (Triggering unit) of type Ultimate Sword of Desolation)
      • Item - Remove (Item carried by (Triggering unit) of type Ultimate Sword of Flame)
      • Item - Remove (Item carried by (Triggering unit) of type Ultimate Sword of Frost)
      • Item - Remove (Item carried by (Triggering unit) of type Ultimate Sword of Lightning)
      • Item - Remove (Item carried by (Triggering unit) of type Upgrade Gem)
      • Item - Remove (Item carried by (Triggering unit) of type Godly Gem)
      • Item - Remove (Item carried by (Triggering unit) of type Sword)
      • Hero - Create Godly Sword of Pain and give it to (Triggering unit)
 

canons200

New Member
Reaction score
50
Item - Remove (Item carried by (Entering unit) of type Sword)
Set Temppoint = Position of (Entering unit)
Item - Create Godly Sword of Pain at (Temppoint)
Hero - Give (Last created item) to (Entering unit)
Custom script: call RemoveLocation(udg_Temppoint)

this is actually no need to create item at the ground, just use the action >> hero -create item for hero (can be used for unit too) if the hero don't have space in the inventory, the item will auto drop on the ground

for the any sword condition. Thsi is a bit more-work. Add 4 more if-then-else action to response for each of the ultimate sword of D,F,F,L

last but not least, remove the action in the else "do nothing", the trigger will perform do nothing, which may decrease trigger efficient
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/
  • The Helper The Helper:
    Here is another comfort food favorite - Million Dollar Casserole - https://www.thehelper.net/threads/recipe-million-dollar-casserole.193614/

      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