• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Ownership Bug

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hello :) I'm making a Star Wars Risk and I'm experiencing trouble with some regions, when a unit kills the unit on the circle he doesn't gain the ownership of some buildings controlling the circle, and sometimes it works.. I've checked everything and don't understand what the problem is. My triggers looks like these:
  • LeaveEbaq Copy 6
    • Events
      • Unit - A unit leaves Region 049 <gen>
    • Conditions
      • (Number of units in (Units in Region 049 <gen> matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)))) Less than or equal to 0
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of Region 049 <gen>)
  • Byss Copy 8
    • Events
      • Unit - A unit enters Region 042 <gen>
    • Conditions
      • ((Units in Region 042 <gen> owned by (Owner of Hidden Mountain [Hidden Woods] 0194 <gen>)) is empty) Equal to True
    • Actions
      • Unit - Change ownership of Hidden Mountain [Hidden Woods] 0194 <gen> to (Owner of (Triggering unit)) and Change color
      • Unit - Change ownership of Defense Turret 0198 <gen> to (Owner of (Triggering unit)) and Change color
  • MoveUnit
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
      • Unit - A unit owned by Player 2 (Blue) Dies
      • Unit - A unit owned by Player 3 (Teal) Dies
      • Unit - A unit owned by Player 4 (Purple) Dies
      • Unit - A unit owned by Player 5 (Yellow) Dies
      • Unit - A unit owned by Player 6 (Orange) Dies
      • Unit - A unit owned by Player 7 (Green) Dies
      • Unit - A unit owned by Player 8 (Pink) Dies
      • Unit - A unit owned by Player 9 (Gray) Dies
      • Unit - A unit owned by Player 10 (Light Blue) Dies
      • Unit - A unit owned by Player 11 (Dark Green) Dies
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • Unit - Change ownership of (Triggering unit) to Neutral Victim and Retain color
      • If (((Region 042 <gen> contains (Triggering unit)) Equal to True) and ((((Units in Region 042 <gen> owned by (Owner of Hidden Mountain [Hidden Woods] 0194 <gen>)) is empty) Equal to True) and ((Unit-type of (Killing unit)) Not equal to Defense Turret))) then do (Unit - Move (Killing unit) instantly to (Center of Region 042 <gen>), facing Default building facing degrees) else do (Do nothing)
      • Unit - Remove (Triggering unit) from the game
Does anyone see what Im doing wrong? Would love some help :sad:
 
Level 5
Joined
Jul 25, 2008
Messages
155
I fixed it! I had 3 different kinds of Circle of Power, and only the Large one worked because I had:
  • Unit Group - Pick every unit in (Units of type Circle of Power (large)) and do (Unit - Change ownership of (Picked unit) to Neutral Passive and Change color)
Yay :)
 
Last edited:
Status
Not open for further replies.
Top