Sorry to resurrect an older post, but this is all i could find... I am having the same problem, example of my code is...
GlobalVariable-DestroySpawners=NoObjective<Objective>Trigger-CreateBuildingsToKillObjective(Runsafterinitialization)Objective-CreateaHiddenPrimaryobjectivewithtext("Destroy the Spawners: "+((Text(DeadBuildingsNumber))+("/"+(Text(NumberOfBuildingsArea01)))))anddescription""Variable-SetDestroySpawners=(Lastcreatedobjective)Objective-MarkDestroySpawnersasActiveTrigger-BuildingDiesEventsUnit-AnyUnitdiesLocalVariablesindex=0<Integer>General-Foreachintegerindexfrom0to13withincrement1,do(Actions)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Triggeringunit)==(Unit1fromUnitGroupBuildingsArea01[index])ThenVariable-SetBuildingNumber[index]=1Variable-ModifyDeadBuildingsNumber:+1Objective-SetDestroySpawnerstextto("Spawners Destroyed: "+((Text(DeadBuildingsNumber))+("/"+(Text(NumberOfBuildingsArea01)))))Else
What should happen, is when you destroy a "Spawner" building, it updates the objective text to read "Spawners Destroyed: 1/4" where the "1" is the number of buildings that have been destroyed.
Currently it is not updating the objective with the "Set Text" if it contains any sort of variable, however if i change the line of code to:
Objective - Set DestroySpawners text to "This is retarded"
...it works.
is this a bug in the editor, or am i missing something fundamental here?
0
@Incr3dibad: Go
nevermind, it fixed itself when i reloaded the editor a few times.
0
Sorry to resurrect an older post, but this is all i could find... I am having the same problem, example of my code is...
What should happen, is when you destroy a "Spawner" building, it updates the objective text to read "Spawners Destroyed: 1/4" where the "1" is the number of buildings that have been destroyed.
Currently it is not updating the objective with the "Set Text" if it contains any sort of variable, however if i change the line of code to:
Objective - Set DestroySpawners text to "This is retarded"
...it works.
is this a bug in the editor, or am i missing something fundamental here?