Posted by: Zapon_ - Sunday, February 18, 2024 2:04:51 AM
So, as the title says
I just made a World Builder map for the first time- and it's 2 islands
I remembered how the SuperWeapon Generals Challenge gave any GLA, the Sneak Attack ability at
the very start of the match - and wanted to do the same
So I opened FinalBig, extracted the INI, Found the map/The Generals Challenge map, opened it in World Builder , looked at the scripts, it contains
in Scripts, under the neutral folder
a item called GLA Sneak Attack Set
And the script itself is this
*** IF ***
Player 'ThePlayer' is Faction Name: GLA
*** OR ***
Player 'ThePlayer' is Faction Name: GLAToxinGeneral
*** OR ***
Player 'ThePlayer' is Faction Name: GLADemolitionGeneral
*** OR ***
Player 'ThePlayer' is Faction Name: GLAStealthGeneral
*** THEN ***
Player 'ThePlayer' is granted Science 'SCIENCE_SneakAttack'.
So, I tried copying and pasting that code directly into my map, start a Sandbox mode network game as any GLA, no luck
Asked around, tweaked the code to this
*** IF ***
True.
*** THEN ***
[???] Player 'Player0' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player1' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player2' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player3' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player4' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player5' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player6' is granted Science 'SCIENCE_SneakAttack'.
[???] Player 'Player7' is granted Science 'SCIENCE_SneakAttack'.
Still nothing, though the Neutral Folder in the Scripts section now has a ? on the Folder Icon, not a normal Folder Icon anymore (My educated guess is that it doesn't know what 'Player0' is since that's not in the dropdown like LocalPlayer and ThisPlayer , but apparently this is how you have to do it)
Can anyone help me figure out what i'm missing?
[I was informed the conditions part can be empty as he power will only appear to people who have a GLA CC anyway.
So i have it as just
*** IF ***
True.
Though for me nothing happens when i start the game...