HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game crash

01-13-2009, 10:48 PM#1
holyadvocate
The game closes... no error messages, lag, nothing like that, it just closes, when i order RallyFamily (variable) to move, i have not tried attacking yet...

Trigger:
Rally Family1
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Rally Family
Collapse Actions
Set RallyFamily[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)

Trigger:
Rally Family2
Collapse Events
Unit - A unit Is issued an order targeting a point
Collapse Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Triggering unit) Equal to RallyFamily[1]
(Triggering unit) Equal to RallyFamily[2]
(Triggering unit) Equal to RallyFamily[3]
(Triggering unit) Equal to RallyFamily[4]
(Triggering unit) Equal to RallyFamily[5]
(Triggering unit) Equal to RallyFamily[6]
(Triggering unit) Equal to RallyFamily[7]
(Triggering unit) Equal to RallyFamily[8]
(Triggering unit) Equal to RallyFamily[9]
(Triggering unit) Equal to RallyFamily[10]
(Triggering unit) Equal to RallyFamily[11]
(Triggering unit) Equal to RallyFamily[12]
Collapse Actions
Collapse Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Wolf)) and do (Actions)
Collapse Loop - Actions
Unit - Order (Picked unit) to Move To (Target point of issued order)

Trigger:
Rally Family3
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Triggering unit) Equal to RallyFamily[1]
(Triggering unit) Equal to RallyFamily[2]
(Triggering unit) Equal to RallyFamily[3]
(Triggering unit) Equal to RallyFamily[4]
(Triggering unit) Equal to RallyFamily[5]
(Triggering unit) Equal to RallyFamily[6]
(Triggering unit) Equal to RallyFamily[7]
(Triggering unit) Equal to RallyFamily[8]
(Triggering unit) Equal to RallyFamily[9]
(Triggering unit) Equal to RallyFamily[10]
(Triggering unit) Equal to RallyFamily[11]
(Triggering unit) Equal to RallyFamily[12]
Collapse Actions
Collapse Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Wolf)) and do (Actions)
Collapse Loop - Actions
Unit - Order (Picked unit) to Right-Click (Target unit of issued order)
Unit - Order (Picked unit) to Right-Click (Target destructible of issued order)


Trigger:
Rally Family2 Copy 2
Collapse Events
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order with no target
Collapse Conditions
((Triggering unit) has buff Rally Family ) Equal to True
(Issued order) Not equal to (Current order of RallyFamily[(Player number of (Owner of (Triggering unit)))])
Collapse Actions
Unit - Order (Triggering unit) to Follow RallyFamily[(Player number of (Owner of (Triggering unit)))]
The triggers were changed from "matching unit has specific buff" to "matching unit is specific type" to see if that would work... it didnt....
01-13-2009, 11:50 PM#2
Ammorth
You are entering an infinte loop with the order events (you re-order the rallyFamily unit to move, causing the trigger to fire again and again and again and...). Make an if/then/else in your order loop, making sure that Picked Unit is not equal to Triggering Unit
01-14-2009, 05:44 AM#3
holyadvocate
Quote:
Originally Posted by Ammorth
You are entering an infinte loop with the order events (you re-order the rallyFamily unit to move, causing the trigger to fire again and again and again and...). Make an if/then/else in your order loop, making sure that Picked Unit is not equal to Triggering Unit

Thank you

The last trigger isnt even necessary really...

Now that it's working, only one of the two wolves is reacting to the trigger's order...?
01-14-2009, 12:10 PM#4
Anitarf
Well, if you don't post your code we can't know where you messed up, can we?