Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
12 years ago
I'm making a map and want the American CIA Officers to be able to plant TNT like Tank Hunters and construct Juhziz and Dr.Thrax Demo traps. I put the "add command button" script in, but it the buttons don't show up in-game. What am I doing wrong, and how can I get this to work?
The script looks like this:
*** IF ***
True
***THEN***
Command button: Chem_Command_ContructGLADemoTrap is added to all objects of type 'AmericanInfantryCIAOfficer' in slot number 2 (1-12)
Command button: Demo_Command_ContructGLADemoTrap is added to all objects of type 'AmericanInfantryCIAOfficer' in slot number 3 (1-12)
Command button: Command_ChinaInfantryTankHunterTNTAttack is added to all objects of type 'AmericanInfantryCIAOfficer' in slot number 1 (1-12)
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Sponsor
Annihilationzh
12 years ago
You can't just add buttons and hope they'll work. They need support code.

The buttons not showing up is usually the invisible character bug, but that doesn't seem to be the case here.
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.
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
12 years ago
I take it then, I have to use a .ini to make his ability list in addition to the scripting?
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
12 years ago
Well, I added the .ini code, but now the buttons simply aren't showing up. I guess maybe it's the invisible character bug you mentioned. Is there a way to fix this, or am I doing something wrong again?
This is my code:
CommandSet AmericaInfantryCIAOfficerCommandSet
1 = Command_ChinaInfantryTankHunterTNTAttack
2 = Demo_Command_ConstructGLADemoTrap
3 = Chem_Command_ConstructGLADemoTrap
End
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Annihilationzh
12 years ago
I don't know why the buttons aren't showing up at all, they should be greyed out. The invisible character bug does not apply to Map.inis.

You need to add dozer modules to construct demo traps, and you need the TNT special ability module to use TNTAttack.
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.
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
12 years ago
Oh, well that's a bit of a bummer. I don't know a module even is. 😞
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.