Why will this only sometimes work

darkreapers

New Member
Reaction score
6
In my TD i want to make after a wave there will be a mini game forplayers to play, so far in my map i have 2 mini games, for this mini game its like a fire maze, if u touch lava or other units u will die.


however for the lava touch part, it only works sometimes?? i dunno why, sometimes when u touch lava spawn u die, sometimes it doesnt turn on at all... :(
BTW every other trigger works fine... just not the lava terrian one, and i dont want to leave it on cause it runs every 0.5 seconds and i have 10 player on the map so they might build alot of towers.


Trigger:
  • firestart 1
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Ghouls - Level 3
    • Actions
      • Trigger - Turn on lava touch <gen>
      • Trigger - Turn on runner spawn <gen>
      • Trigger - Turn on fireball spawn <gen>
      • Trigger - Turn on fireball 2 spawn <gen>
      • Trigger - Turn off (This trigger)


Trigger:
  • runner spawn
    • Events
      • Player - Player 12 (Brown)'s Food used becomes Less than 1.00
    • Conditions
    • Actions
      • Game - Display to Defenders for 15.00 seconds the text: |cffff0000Attention...
      • Trigger - Run Next wave timer Copy <gen> (ignoring conditions)
      • Player Group - Pick every player in Defenders and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Runner for (Picked player) at (Center of larva start <gen>) facing Default building facing degrees
          • Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
          • Camera - Pan camera for (Picked player) to (Center of larva start <gen>) over 0.00 seconds
          • Trigger - Turn off (This trigger)


Trigger:
  • lava touch
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in Defenders and do (Set unit = (Units owned by (Picked player)))
      • Unit Group - Pick every unit in unit and do (Actions)
        • Loop - Actions
          • Set lava = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at lava) Equal to Dungeon - Lava
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
      • Custom script: call RemoveLocation (udg_lava)
      • Custom script: call DestroyGroup (udg_unit)


Trigger:
  • fireball spawn
    • Events
      • Player - Player 12 (Brown)'s Food used becomes Less than 1.00
    • Conditions
    • Actions
      • Player Group - Pick every player in lightblue and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Fire Spawn for (Picked player) at (Center of lava ball 1 <gen>) facing Default building facing degrees
          • Unit - Add a 40.00 second Generic expiration timer to (Last created unit)
          • Trigger - Turn off (This trigger)


Trigger:
  • Next wave timer Copy
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Start FireTimer as a One-shot timer that will expire in 30.00 seconds
      • Countdown Timer - Create a timer window for FireTimer with title Mini-Game Time
      • Set lavanexttimer = (Last created timer window)
      • Countdown Timer - Show (Last created timer window)
      • Trigger - Turn on lava touch <gen>


Trigger:
  • timer Copy 2
    • Events
      • Time - FireTimer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy lavanexttimer
      • Trigger - Turn off lava touch <gen>
 

squorpion

New Member
Reaction score
12
why not just make a trigger that says this?

Trigger:
  • lava
    • Events
      • Unit - A unit comes within 100.00 of Greater Spirit Beast (Level 3) 0148 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Unit - Kill (Triggering unit)
 

Baltazhar

Active Member
Reaction score
55
Your problem lies in the Lave Touch trigger.
More specifically, this line:
Trigger:
  • Player Group - Pick every player in Defenders and do (Set unit = (Units owned by (Picked player)))

What this does is picking first player in Defenders, setting "unit" to all his units. Then it will take the next player in Defenders, and set "unit" to all his units (thus overwriting the first) and so on.

Let me see what I can draw in free hand...
Trigger:
  • lava touch
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in Defenders and do multiple actions
        • Loop - Actions
          • Set unit = (Units owned by (Picked player))
          • Unit Group - Pick every unit in unit and do (Actions)
            • Loop - Actions
              • Set lava = (Position of (Picked unit))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                • (Terrain type at lava) Equal to Dungeon - Lava
                • Then - Actions
                • Unit - Kill (Picked unit)
                • Else - Actions
      • Custom script: call RemoveLocation (udg_lava)
      • Custom script: call DestroyGroup (udg_unit)


The change is using "Player Group - Multiple Actions". It's a Frozen Throne feature, so if you only have RoC, you can't use it.
It's that one line that ruins your trigger, rest looks great.
 

darkreapers

New Member
Reaction score
6
on the lava, try set it to every 0.10 seconds

no cause i could walk on the larva like for 30 seconds and not die lol so it wasnt turned on at all... but sometimes it does turn on... so... i dunno.

@ umm ur idea might work although i would need to make around of those units n spread it out on the map. but i like it, if my lava thing still wont work i will use urs. ...


so right now still trying to get my lava to work...

edit: ty Balta, i will try it n give u guys the news in a while if it works/... in the mean time + rep
for everyone that tried to help
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Vypur85 that what i said in another thread that was on how to do it but he didnt listen
 

darkreapers

New Member
Reaction score
6
Vypur85 that what i said in another thread that was on how to do it but he didnt listen

because iam still a learner so i want to get my hands dirty on all triggers first, now i know where i did wrong so in future i will know what to do :thup:
 

vypur85

Hibernate
Reaction score
803
> he didnt listen

If that's the case, then probably he doesn't want the method. So the possible fix should be the below. A little alteration from Balt's.

Code:
    lava touch
          Events
                Time - Every 0.50 seconds of game time
          Conditions
          Actions
                Player Group - Pick every player in Defenders and do multiple actions
                      Loop - Actions
                        Set unit = (Units owned by (Picked player))
                        Unit Group - Pick every unit in unit and do (Actions)
                            Loop - Actions
                                  Set lava = (Position of (Picked unit))
                                  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        If - Conditions
                                            (Terrain type at lava) Equal to Dungeon - Lava
                                        Then - Actions
                                            Unit - Kill (Picked unit)
                                        Else - Actions
                                  Custom script: call RemoveLocation (udg_lava)
                        Custom script: call DestroyGroup (udg_unit)

Edit (for post above):
Indeed, I was right :p.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Why do u put it in code tags put it in GUI tags
 

free_killing

TH.net Regular
Reaction score
23
i think he did it in freehand, therefore

I use this one: (ofc change units of type..) and whateve else you want to change..
Trigger:
  • Terrain killer
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Set tempGroup = (Units of type Rat)
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
              • Or - Any (Conditions) are true
                • Conditions
                  • (Terrain type at (Position of (Picked unit))) Equal to Dungeon - Dark Rocks
            • Then - Actions
              • Unit - Cause (Picked unit) to damage (Picked unit), dealing 16500.00 damage of attack type Spells and damage type Normal
              • Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\Impale\ImpaleMissTarget.mdl
            • Else - Actions
              • Custom script: call RemoveLocation(udg_tempPoint)
              • Custom script: call DestroyGroup(udg_tempGroup)
 

darkreapers

New Member
Reaction score
6
i think he did it in freehand, therefore

I use this one: (ofc change units of type..) and whateve else you want to change..
Trigger:
  • Terrain killer
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Set tempGroup = (Units of type Rat)
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
              • Or - Any (Conditions) are true
                • Conditions
                  • (Terrain type at (Position of (Picked unit))) Equal to Dungeon - Dark Rocks
            • Then - Actions
              • Unit - Cause (Picked unit) to damage (Picked unit), dealing 16500.00 damage of attack type Spells and damage type Normal
              • Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\Impale\ImpaleMissTarget.mdl
            • Else - Actions
              • Custom script: call RemoveLocation(udg_tempPoint)
              • Custom script: call DestroyGroup(udg_tempGroup)

hi killing for help, i am testing bal's one on B net right now to see if it works with everyone online, if it still doesnt work i will use urs haha, i see ur one is done with a different methods hehe.
anyways it should work but i am crossing my fingers just incase :)
 

free_killing

TH.net Regular
Reaction score
23
hi killing for help, i am testing bal's one on B net right now to see if it works with everyone online, if it still doesnt work i will use urs haha, i see ur one is done with a different methods hehe.
anyways it should work but i am crossing my fingers just incase :)

hehe, okay ;)
 

Baltazhar

Active Member
Reaction score
55
Testing my work?! Absurd! My work always works, testing not needed! :p

It should work, it's a very simple trigger :)
 

darkreapers

New Member
Reaction score
6
lol iam sorry mr bal! please dont hurt me! AHHH!

rofl, anyone i am stuck in loading screen online.. x.x says waiting for other player but stuck there for the past 2 mins.. i think somsone is afk lol. :( testing continues.....

n it works TYVM EVERYONE!
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
I play rise of china and the loading time took 17 min never played that map after that
 

Baltazhar

Active Member
Reaction score
55
If I'm not mistaking too much, I believe that the "Press any key to continue.." part of the loading screen automatically continues after 2-5 minutes or so.
Hang in there, you'll get your game going soon! :p
 

free_killing

TH.net Regular
Reaction score
23
If I'm not mistaking too much, I believe that the "Press any key to continue.." part of the loading screen automatically continues after 2-5 minutes or so.
Hang in there, you'll get your game going soon! :p

yes it does automatically continues.. but i dont know how long time he has to wait ;) - well 2-5 minutes sounds correct :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
    +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 Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top