Private Joined: 7/17/2017(UTC) Posts: 10 Location: Skane, Bjuv Thanks: 5 times
|
This is just like the starting of the tutorial in Generals. I was wondering how do I do it to? I tried many times to do it, but every time failing because I don't know how . The reason of doing it is: No players sells the things while playing my mission and just screws up everything. So now into the real thing. How do I do it? I'm not sure how, even thoe I'm a very good scripter. My scripting skills: 70%. So I'm not dumb. This is the first thing I ask here. When you replay how I thank whoever replied. Thanks .
|
|
|
|
Major Joined: 2/21/2015(UTC) Posts: 386 Thanks: 80 times Was thanked: 132 time(s) in 96 post(s)
|
I'm in the phone so I can't give you a very detailed answer, but there is a script where you can remove any command button off a specific object type. Try to look for it. |
|
|
|
|
General Joined: 8/2/2008(UTC) Posts: 1,779 Thanks: 26 times Was thanked: 475 time(s) in 331 post(s)
|
Could also give the unsellable flag to the buildings.
I'm pretty sure there are missions where you aren't allowed to sell buildings. Could always take a look at those for an example. |
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. |
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
Try using ini coding ,example :
Object AmericaWarFactory CommandSet = AmericaFactoryCommandSet End
CommandSet AmericaFactoryCommandSet 1 = Command_ConstructAmericaVehicleHumvee 2 = Command_UpgradeChinaChainGuns 3 = Command_ConstructAmericaVehicleMedic 11 = Command_SetRallyPoint End |
|
|
|
|
Major Joined: 3/22/2017(UTC) Posts: 278 Location: Some where on Earth
Thanks: 123 times Was thanked: 69 time(s) in 59 post(s)
|
I Also did my Map like What adrianemapmaker said , Scripts will make an INCREDIBLE Hang , Lag , etc ... in world Builder . Also as Annihilationzh said you can Easily click Object then Tick the unsalable flag or do it by an Script ( If want to Spawn Something , then make it Unsalable ) . NOTE : It won't work about SupplyDropZone . |
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel Static : Launch Delayed Reason : Uncool Terrain - Old Logic in use - Lack of Performance Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300% |
|
|
|
Private Joined: 7/17/2017(UTC) Posts: 10 Location: Skane, Bjuv Thanks: 5 times
|
Ey guys .. Sorry for not replaying I was doing my mission and thought nobody would give me answer. Thanks by the way again . Now I will continue making my mission .
By the way I did like that guys: If (anything) but I did true anyways. Unit 'your_War.Factory' changes the value of flag Object Flag: Unsellable to true Command button: 'Command_Sell' is removed from all objects of type: 'AmericaWarFactory ---------------------------------------------------------------------------------------------------------- Edited by user Thursday, July 20, 2017 12:00:15 PM(UTC)
| Reason: Telling how I did the scripting.
|
|
|
|
Users browsing this topic |
Guest
|
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.