General-ForeachintegerIDfrom1to15withincrement1,do(Actions)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(UnitisinSquadrons[(Triggeringplayer)][ID])==TrueThenGeneral-ReturnIDVariable-SetNotFound=FalseDebug-Display"SquadronID Found"asdebugoutputusingType1,andDodisplayitinthegamewindowGeneral-SkipremainingactionsElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfNotFound==TrueThenGeneral-Return0Variable-SetNotFound=FalseDebug-Display"Warning: Squadron ID Could not be f..."asdebugoutputusingType1,andDodisplayitinthegamewindowElseGeneral-Return0
I know it saves the variable(displays through a debug message) but I never get this message:
Debug - Display "SquadronID Found" as debug output using Type 1, and Do display it in the game window
So something there must be wrong :(
EDIT: I fixed the error, but it still dosent work :(
You're using a For Each loop and the Picked Integer function. The Picked Integer function only works when you use a Pick Each Integer loop. Change Picked Integer to the variable "ID".
I made the quick little fix and I get these warnings:
[6/15/20128:30:53AM]Warning:EmptytriggerelementreferenceremovedfromFunctionCall'If Then Else'[6/15/20128:30:53AM]Warning:Orphanedtriggersub-functioncallremoved:FunctionCall'For Each Integer'(FunctionCall,5D031359,Lib:0)[6/15/20128:30:53AM]Warning:InvalidtriggerelementreferenceremovedfromFunctionCall'Return'(ParameterValue,EDFD975B,Lib:0)[6/15/20128:30:53AM]Warning:Invalidsub-functiontypereferenceremovedfromFunctionCall'Return'(Sub-FunctionType,00000004,Lib:Ntve)[6/15/20128:30:53AM]Warning:InvalidtriggerelementreferenceremovedfromFunctionCall'Unit In Unit Group'(ParameterValue,5F6813E6,Lib:0)[6/15/20128:30:53AM]Warning:InvalidtriggerelementreferenceremovedfromFunctionCall'Unit In Unit Group'(ParameterValue,F4D369DC,Lib:0)
Im making a game that uses Squadrons. A squadron is a group of units. When the units are created, I save them in a unit group array called squadrons. It's a 2 dimensional array, first array holds the player, second holds the uniqe ID of the squadron, 15 is max. But when I'm trying to acces one of these squadron through a Pick each Integer it dosent work. It says trough a debug message that it works, but it dosent select the squadron!
Link Removed: http://www.mediafire.com/download.php?6bszrh7c5r9r671
0
@Eimtr: Go
Well, atleast I would be interested if you release it, I have no idea how you made it :)
0
@BasharTeg: Go
I know, I did it whit the error messages :P
Anyways here is the Get ID function:
And here is the Selection trigger:
I know it saves the variable(displays through a debug message) but I never get this message: Debug - Display "SquadronID Found" as debug output using Type 1, and Do display it in the game window So something there must be wrong :(
EDIT: I fixed the error, but it still dosent work :(
0
@BasharTeg: Go
Here it is
0
@BasharTeg: Go
I made the quick little fix and I get these warnings:
0
Hey! I got a problem/question!
Im making a game that uses Squadrons. A squadron is a group of units. When the units are created, I save them in a unit group array called squadrons. It's a 2 dimensional array, first array holds the player, second holds the uniqe ID of the squadron, 15 is max. But when I'm trying to acces one of these squadron through a Pick each Integer it dosent work. It says trough a debug message that it works, but it dosent select the squadron! Link Removed: http://www.mediafire.com/download.php?6bszrh7c5r9r671
0
@Taintedwisp: Go
Yeah! You gotta have that!