Hello,
I wanna save my nexus in a bankfile, it's easy.
But there are 10 levels of the nexus -> 10 different units called Nexus 1, Nexus 2...
When a new nexus is created, i wanna saave it into a bankfile. Is there any possibility check if
the unit's name contains the word "Nexus"?
otherwise i have to do this:
If
Or
created unit = Nexus 1
created unit = Nexus 2
.
.
.
If you don't have Nexus in the unit ID for whatever reason then you can try stacking a behavior on the Nexus for each level, then check the amount of behaviors stacked when you go to bank.
But when i try to load the nexus, i just get an error.
Unit - Create 1 (Unit type from (Load key "building" of section "main" from bank NEBank[(Triggering player)] as a String)) for player (Triggering player) at startposition[(Triggering player)] using default facing (No Options)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I wanna save my nexus in a bankfile, it's easy.
But there are 10 levels of the nexus -> 10 different units called Nexus 1, Nexus 2...
When a new nexus is created, i wanna saave it into a bankfile. Is there any possibility check if
the unit's name contains the word "Nexus"?
otherwise i have to do this:
If
Or
created unit = Nexus 1
created unit = Nexus 2
.
.
.
Thank you for your help,
Tahomas
Not really because there is no way to cast text into string which would allow you to substring from nexus name. But im not 100% sure here :)
If you have the word Nexus in the units ID aswell then you should try this:
If you don't have Nexus in the unit ID for whatever reason then you can try stacking a behavior on the Nexus for each level, then check the amount of behaviors stacked when you go to bank.
@Talon0815: Go
Thx, whit worked perfectly :)
But when i try to load the nexus, i just get an error.
Unit - Create 1 (Unit type from (Load key "building" of section "main" from bank NEBank[(Triggering player)] as a String)) for player (Triggering player) at startposition[(Triggering player)] using default facing (No Options)