Edit: deleted this post as... I have finally solved it! If anyone's interested heres the correct trigger. The problem was with setting unit group variables - they can't be set!
function Trig_Squad_Point_Order_Actions takes nothing returns nothing
local integer orderid
local group...
I haven't written any triggers in Jass before so I'm guessing I've done something stupidly wrong. The following trigger does nothing even when I've added in message actions.
function Trig_Squad_Point_Order_Actions takes nothing returns nothing
local integer s
local group w =...
Tested it and played around with it - your trigger does work sort of. It works once. Any time I try repeating it, it doesn't work however (I'm guessing a problem with the loop - and I should be able to fix this). What I'd really like to try and do, however is to get them moving in groups of 12...
Thanks, I've attempted to do what you suggested, but it isn't working :(. Any ideas. I've probably been stupid.
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Custom value of (Ordered unit)) Greater than 0
Actions
Set...
Trigger Help
Anyone know why the following trigger is not working?
Events
Unit - A unit Is issued an order targeting a point
Conditions
Actions
Set Identifier = (Custom value of (Ordered unit))
Set Order = (String((Issued order)))
Trigger - Turn off (This trigger)...
Thanks, thats what I'm going to do then. If the number of units is not a multiple of 12, and I try and select 12 units from a unit group in which there is less than 12 units will it select all remaining units it will it not work?
Skli
Is it possible, using Jass, to do something like:
Unit Group-pick every unit Group of 12 units in Unit_Group and do Actions.
I'm not very good with this sort of triggering :(,
Thanks,
Skli
Is it possible to loop the command without using unit group-pick every unit, but with it picking 12 different units each time?
I really need the units to move in "formation" rather than individually,
Thanks,
Skli
Thanks for the help. It seems like I'm stuck with the button so I'll use it as a sort of help menu. You click it and you get contextual help messages,
Thanks,
Skli
Whenever a trigger is occuring in my map it seems to only work for 12 units. Will the following action:
call GroupPointOrderLoc( udg_Unit_Group[udg_Group1, udg_Order, GetOrderPointLoc() )
only order 12 units to follow the point order. Is it this action which only works for 12 units or do I...
Need it for very complex formation triggers :D. Lowering the collision value creates a tighter formation. Varying this, acquisition ranges and a few other things lets me implement formations for battalions. Now trying to make it changeable in real-time rather than just in the world editor. I...
Is there anyway to fully remove the patrol button? I can rename it and make it do nothing but I'd rather not have a pointless button on every unit in game :S
Thanks,
Skli
Fixed it :D - lagged the entire game by 0.2 seconds - Any action does not occur for 0.2 seconds! (weird when playing for the first time but you get used to it). That means there is time for the selection triggers to work - all order triggers have a condition based on a variable array set by the...
I've set it up, problem is the delay is making it possible for someone who knows the hotkeys to issue an order in the delay time. I guess there's no way of eliminating this delay even using JASS?
Skli
Event - Player selects a Unit
Preferably using GUI, how do I refer to that selected unit in the trigger's actions. There is no "event response-selected unit" is it the triggering unit?
Thanks
Ben