Posted by: VTULCobra - Tuesday, December 13, 2011 7:22:41 AM
Hey guys,
I've managed to do it before, but somehow i now forgot how to do it - remove upgrades.
I have done this:
[code]*** IF ***
True.
*** THEN ***
Command button: 'Command_UpgradeGLAAPRockets
' is removed from all objects of type 'GLABlackMarket'.
Command button: 'Command_UpgradeGLABuggyAmmo
' is removed from all objects of type 'GLABlackMarket'.
Command button: 'Command_UpgradeGLARadarVanScan
' is removed from all objects of type 'GLABlackMarket'.
Command button: 'Command_UpgradeGLAWorkerShoes
' is removed from all objects of type 'GLABlackMarket'.[/code]
But it's not working, I've totally forgotten how to do it... Help me out here.
Thanks
Posted by: NewNightmare - Tuesday, December 13, 2011 12:32:33 PM
isnt there an invisible space somewhere? check both ends of lines in both dropdown menus.
Posted by: i^love^mixery - Tuesday, December 13, 2011 1:01:56 PM
'Command_UpgradeGLAAPRockets '
remove the invisible character after Rockets. do that for all upgrades and it should work (ignore the red question marks)
Posted by: VTULCobra - Wednesday, December 14, 2011 3:13:55 AM
Ah yes, I knew it was something like that, but, another problem just popped up... I don't have any invisible characters, I checked :o
Posted by: Annihilationzh - Wednesday, December 14, 2011 4:38:55 AM
I discovered the invisible character bug. It's pretty much the only thing I've contributed to mapping...
...and the code you posted in the OP definitely contains it. It's ASCII 0D - a carriage return.
This is wrong, and you can plainly see it in the OP:
[code] Command button: 'Command_UpgradeGLAAPRockets
' is removed from all objects of type 'GLABlackMarket'.[/code]
This is right:
[code] [???] Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'GLABlackMarket'.[/code]
I prefer to remove buttons like this:
[code] [???] Command button: 'Command_ConstructGLAVehicleCombatBikeRocket' is added to all objects of type 'GLABlackMarket' in slot number 2 (1-12).[/code]
Command_ConstructGLAVehicleCombatBikeRocket is script only, so it won't display, and the slot numbers on a black market are set out like this:
[code] 1 = Command_UpgradeGLAAPBullets
2 = Command_UpgradeGLAAPRockets
3 = Command_UpgradeGLAJunkRepair
4 = Command_UpgradeGLABuggyAmmo
5 = Command_UpgradeGLARadarVanScan
6 = Command_UpgradeGLAWorkerShoes[/code]
This is where mapping really overlaps with modding. So it is really useful knowing how to INI code.
Posted by: VTULCobra - Wednesday, December 14, 2011 4:57:27 AM
Yes I can see that in the code i posted, but I don't have them in WB anymore, I'll just have to remake the script i guess...
Thanks for the help.