Two Specific Units in Region, Spawn Third One

egomanyak

New Member
Reaction score
8
Two Specific Units in Region, Spawn Third One(need example read last post)

how?
i have two monster: :thup: and :thdown:
:thup: and :thdown: enters region = kill :thup: and :thdown: and create new monster( :D ) in region 3


how :shades:
(need example read last post)
 
event
a unit enters a region 3
condition
and condition
entering unit equal to monster1
entering unit equal to monster 2
action
kill entering unit
create 1 monster3 in center of region 3 for (whichever player) facing....
 
event
a unit enters a region 3
condition
entering unit equal to monster1
entering unit equal to monster 2
action
kill entering unit
create 1 monster3 in center of region 3 for (whichever player) facing....

I dont believe that will work, seeing as a single unit cannot be 2 units at once

:) give me a sec ill make you a trigger.
 
Events
:thdown: enters region
:thup:enters region​
Conditions
region contains :thdown: equal to true
region contains :thup: equal to true​
Actions
Unit - Kill :thdown:
Unit - Kill :thup:
Unit - Create 1 :D for (Owner of (Entering unit)) at center of region facing default building facing degrees​

:p
 
Events
:thdown: enters region
:thup:enters region​
Conditions
region contains :thdown: equal to true
region contains :thup: equal to true​
Actions
Unit - Kill :thdown:
Unit - Kill :thup:
Unit - Create 1 :D for (Owner of (Entering unit)) at center of region facing default building facing degrees​

:p

can you take screenshot? or make map(only need trigger in map) for me? please.
 
Events
:thdown: enters region
:thup:enters region​
Conditions
region contains :thdown: equal to true
region contains :thup: equal to true​
Actions
Unit - Kill :thdown:
Unit - Kill :thup:
Unit - Create 1 :D for (Owner of (Entering unit)) at center of region facing default building facing degrees​

:p

Can 2 events function at the same time? Curious. :eek:
 
You can have as many events in a trigger as you want. And here's the trigger:

Trigger:
  • Trigger
    • Events
      • Unit - A unit enters Area1
    • Conditions
      • (Your Region contains Unit1 Equal) to True
      • (Your Region contains Unit2 Equal) to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Your-unit-type1
          • (Unit-type of (Triggering unit)) Equal to Your-unit-type2
    • Actions
      • Unit - Kill Unit1
      • Unit - Kill Unit2
      • Unit - Create 1 Unit3 for Player 1 (Red) at Area2 facing Default building facing degrees
 
can you give simple example map ? i need see triggers in map thanks.:D

No you don't. You need to make an effort and try to figure it out. Otherwise you're never going to learn how to do it yourself. Try to recreate the trigger below. If you can't, it's because you're not trying hard enough.

This trigger should work fine if you only have one of each type of unit (otherwise you may have to do some modification, but you never specifically said how many of these units you have).

Trigger:
  • Trigger
    • Events
      • Unit - A unit enters Area1
    • Conditions
      • (Your Region contains Unit1 Equal) to True
      • (Your Region contains Unit2 Equal) to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Your-unit-type1
          • (Unit-type of (Triggering unit)) Equal to Your-unit-type2
    • Actions
      • Unit - Kill Unit1
      • Unit - Kill Unit2
      • Unit - Create 1 Unit3 for Player 1 (Red) at Area2 facing Default building facing degrees
 
No you don't. You need to make an effort and try to figure it out. Otherwise you're never going to learn how to do it yourself. Try to recreate the trigger below. If you can't, it's because you're not trying hard enough.

This trigger should work fine if you only have one of each type of unit (otherwise you may have to do some modification, but you never specifically said how many of these units you have).
i need use unit type
i cant make unit kill unit1 i need kill triggering unit etc.
i need unit type system
 
Off-topic: Do NOT doublepost within 24 hours, it's annoying and it's against the forum rules.

On topic: I won't do the trigger for you, but I would recommend using a periodic trigger.

Something like this:
Trigger:
  • KillThatDoublePoster
    • Event
      • Every 1.00 second of game-time
    • Condition
    • Action
      • Set TempUnit1 to (No Unit)
      • Set TempUnit2 to (No Unit)
      • 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=":)" />
      • Pick all units in unit group (TempGroup) and do:
        • Set TempUnit1 to (PickedUnit)
      • Set TempGroup (Units in (YOUR AREA) matching unit-type of (matching unit) equal to :thdown:
      • Pick all units in unit group (TempGroup) and do:
        • Set TempUnit2 to (PickedUnit)
      • If
        • TempUnit1 not equal to (no unit)
        • TempUnit2 not equal to (no unit)
      • Then
        • Remove TempUnit1
        • Remove TempUnit2
        • Set TempPoint (Center of (YOUR AREA))
        • 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 TempPoint
        • Custom Script: call RemoveLocation(udgTempPoint)
      • Custom Script: call DestroyGroup(udgTempGroup)


Something like that.

P.S: Don't doublepost within 24h. It's rude.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:

      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