C&C Labs Forums
»
C&C Generals Discussion
»
Technical Questions and Support
»
Want to give any GLA faction, Human or AI, the Sneak Attack at start of match- how to script?
Private Joined: 2/17/2024(UTC) Posts: 3
|
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 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...
|
|
|
|
Private Joined: 2/17/2024(UTC) Posts: 3
|
Solved
Someone on the Worldbuilder Discord got it!
the player0, has to be player0
lowercase is the key
Now, the real issue? It cannot be in neutral for skirmish/multiplayer, it HAS to be the ply civillian folder that the script is in That's what i couldn't find out anywhere else, oddly- that's the key
Sneak attack works now!
|
|
|
|
Users browsing this topic |
Guest
|
C&C Labs Forums
»
C&C Generals Discussion
»
Technical Questions and Support
»
Want to give any GLA faction, Human or AI, the Sneak Attack at start of match- how to script?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.