VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Hey guys,
I've managed to do it before, but somehow i now forgot how to do it - remove upgrades.
I have done this:

*** 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'.

But it's not working, I've totally forgotten how to do it... Help me out here.

Thanks
Rank up!
Sponsor
NewNightmare
14 years ago
isnt there an invisible space somewhere? check both ends of lines in both dropdown menus.
i^love^mixery
14 years ago
'Command_UpgradeGLAAPRockets '

remove the invisible character after Rockets. do that for all upgrades and it should work (ignore the red question marks)
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Ah yes, I knew it was something like that, but, another problem just popped up... I don't have any invisible characters, I checked 😮
Rank up!
Annihilationzh
14 years ago
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:
   Command button: 'Command_UpgradeGLAAPRockets
' is removed from all objects of type 'GLABlackMarket'.

This is right:
   [???] Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'GLABlackMarket'.

I prefer to remove buttons like this:

 [???] Command button: 'Command_ConstructGLAVehicleCombatBikeRocket' is added to all objects of type 'GLABlackMarket' in slot number  2  (1-12).

Command_ConstructGLAVehicleCombatBikeRocket is script only, so it won't display, and the slot numbers on a black market are set out like this:
  1  = Command_UpgradeGLAAPBullets
  2  = Command_UpgradeGLAAPRockets
  3  = Command_UpgradeGLAJunkRepair
  4  = Command_UpgradeGLABuggyAmmo
  5  = Command_UpgradeGLARadarVanScan
  6  = Command_UpgradeGLAWorkerShoes

This is where mapping really overlaps with modding. So it is really useful knowing how to INI code.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
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.
Rank up!