buy units, create for neutral hostile

egomanyak

New Member
Reaction score
8
how?
i want if some player buy units in shop buyed units spawn in regions random point and for neutral hostile
thx everyone :thup:
 

emilemil1

New Member
Reaction score
20
1. Capital first letter and DOTS.....otherwise it is all one long sentance, very hard to read. And even harder to understand.

2. Event: A unit enters Playable Map Area

Condition: Triggering unit is a hero not equal to true and Triggering unit is a summoned unit not equal to true

Action: Change owner of triggering unit to Neutral Hostile
Set Temp_Point = Random point in REGION
Move Triggering unit to Temp_Point
(customscript) call RemoveLocation (udg_Temp_Point)

you can name the variable to whatever you wish, as well as adding more conditions, mine just involves heroes and their summons.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
or you could do this ;)
Trigger:
  • Move Bought Unit
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Sold unit)) Equal to (Your Unit-Type)
    • Actions
      • Set TempPoint = (Random point in (Your Region))
      • Unit - Move (Sold unit) instantly to TempPoint
      • Unit - Change ownership of (Sold unit) to Neutral Hostile and Change color
      • Custom script: call RemoveLocation(udg_TempPoint)
 

emilemil1

New Member
Reaction score
20
Yeah that is easier :) Didn't know there was a condition for sold units.¨

You learn something new every day.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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