Two Specific Units in Region, Spawn Third One

Sajberhippie

New Member
Reaction score
30
It's not to hard. Try, and if you fail, try again. That is the only way to learn.

Try to get as far as possible, and post the result here.

Oh, and something I should have mentioned, TempUnit1 and TempUnit2 are Unit Variables, TempPoint is a Point Variable, and TempGroup is a Unit Group variable. These can be created by clicking on the little green "X" in the trigger editor.
 

Skeith

New Member
Reaction score
3
Geez, i'll try to make the damn example trigger, but i'm not sure that i'll do it, at least i'll learn something to eh?
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
i need use unit type
i cant make unit kill unit1 i need kill triggering unit etc.
i need unit type system

It sounds like you're struggling with Variables. Make one unit variable, and set it to :thup:, make another unit variable, and set it to :thdown:. Then use those variables for this trigger.

These have to be specific units. You haven't said anything about what your situation is. If it has to work for any unit of one type, and any unit of another type, the trigger would have to be slightly different.
 

Skeith

New Member
Reaction score
3
xD worked for me but...
My unit never stops from spawn, i think its because i didnt make the custom script...
I dont understand it, what is this udg thing?
 

Skeith

New Member
Reaction score
3
Ok! It worked now!
I just dont used the TempPoint variable, and there was an error at the custom script, on the udg thing, its (udg_variablename)
I was using (udgvariablename)

Hey man, its not so hard, just go with calm, study the variables, and try to know why they are there, and what function they have.

EDIT: Damnnnnnnn, sry for the double post!

EDIT²:
Trigger:
  • KillThatDoublePoster
    • Event
      • Every 1.00 second of game-time (Just do it)
    • Condition
    • Action
      • Set TempUnit1 to (No Unit) (TempUnit1, will be the variable that will store :thup: )
      • Set TempUnit2 to (No Unit) (This one will store :thdown<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />
      • Set TempGroup (Units in (YOUR AREA) matching (UnitType of (Matching Unit) equal to :thup<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> (TempGroup will pass to TempUnit1 :thup: )
      • Pick all units in unit group (TempGroup) and do:
        • Set TempUnit1 to (PickedUnit) (TempGroup has just sended :thup: to TempUnit1)
      • Set TempGroup (Units in (YOUR AREA) matching unit-type of (matching unit) equal to :thdown: (This time he is sending :thdown<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />
      • Pick all units in unit group (TempGroup) and do:
        • Set TempUnit2 to (PickedUnit) (Just sending :thdown: to TemUnit2)
      • If
        • TempUnit1 not equal to (no unit)
        • TempUnit2 not equal to (no unit)
      • Then
        • Remove TempUnit1 (Now he is &quot;killing&quot; :thup<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />
        • Remove TempUnit2 (Now he is &quot;killing&quot; :thdown<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />
        • Create <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> at (YourRegion)
      • Custom Script: call DestroyGroup(udg_TempGroup) (Now he is destroying TempGroup)

Its something like this, now with this information do it again
 

SpaceBar

New Member
Reaction score
16
Why do you want a map? The trigger is right there... If you don't know how to create them ask.

What do you need help with anyway? The varibles? Finding the right trigger? What?

And try not to double - tripple post...
 

Skeith

New Member
Reaction score
3
Use the edit button... (Yeh i know i double postd, sry :X)

I'll help you creating the variables, after this try the triggers.

Pic 1: Create the variable, give the name you want, mine will be footman (name dont matter). Set the variable type to unit, as it is on the pic. Click OK. (After u made this, do it again, it will be the variable for the other monster)

Pic2: Now, you will create the Unit Group variable, my variable will have FusionGroup name, but u can name as you want.

Pic3: After this, u shall have 3 variables, like this.
 

Attachments

  • Pic1.JPG
    Pic1.JPG
    135.4 KB · Views: 131
  • Pic2.JPG
    Pic2.JPG
    148.5 KB · Views: 135
  • Pic3.JPG
    Pic3.JPG
    135.4 KB · Views: 146

unknown666

New Member
Reaction score
5
Here it is mate

Be sure to turn on

Preferences > Copy unknown variables ...

Also made it leak-free for you
 

Attachments

  • One Two create Three.w3x
    17.2 KB · Views: 141
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

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top