Is it possible to increase the range an enemy runs back to starter zone?

Gracus

New Member
Reaction score
0
Wondering if it's possible to increase the distance to which an enemy computer's units chase players units before they run back.

Also is it possible to create a neutral transport that when entered by a player it changes to be acquired by the player who entered it. When the player leaves the transport, it resets back to neutral.

Thanks :)
 

sarkurayboy

New Member
Reaction score
7
Both your question are possible to do so. For the 1st one , you just need to change the value in Advance > Game Constant. As for the 2nd , you need a simple trigger to do so.
 

hgkjfhfdsj

Active Member
Reaction score
55
a sketch of the 2nd trigger would be something like:
Trigger:
  • Load
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
      • (Unit-type of (Transporting unit)) Equal to Chicken
      • (Owner of (Transporting unit)) Equal to Neutral Passive
    • Actions
      • Unit - Change ownership of (Transporting unit) to (Owner of (Triggering unit)) and Change color


Trigger:
  • Unload
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Chicken
          • (Issued order) Equal to (Order(unload))
          • (Issued order) Equal to (Order(unloadall))
          • (Issued order) Equal to (Order(unloadallinstant))
    • Actions
      • Set Temp_Int = (Temp_Int - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_Int Equal to 0
        • Then - Actions
          • Unit - Change ownership of (Triggering Unit) to Neutral Passive and Change color
        • Else - Actions

using either hashtables to store the number of units in a transport or by using an indexing system. wc3 doesnt have an on Unload event....
other option is to use Transport by Jesus4lyf which simulates wc3 transporting system, except with event of unload
 
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