Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline designmission  
#1 Posted : Wednesday, July 19, 2017 9:14:59 AM(UTC)
designmission
Private
Joined: 7/17/2017(UTC)
Posts: 10
Sweden
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 Sad.

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 Smile.
Sponsor
Offline SkyMix_RMT  
#2 Posted : Wednesday, July 19, 2017 2:43:40 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

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.
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Offline Annihilationzh  
#3 Posted : Thursday, July 20, 2017 3:33:39 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

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.
Offline AdrianeMapMaker  
#4 Posted : Thursday, July 20, 2017 3:53:33 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

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
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Unknown Editor  
#5 Posted : Thursday, July 20, 2017 6:21:56 AM(UTC)
Unknown Editor
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%
Offline designmission  
#6 Posted : Thursday, July 20, 2017 9:52:39 AM(UTC)
designmission
Private
Joined: 7/17/2017(UTC)
Posts: 10
Sweden
Location: Skane, Bjuv

Thanks: 5 times
Ey guys Wink .. Sorry for not replaying I was doing my mission and thought nobody would give me answer. Thanks by the way again Big Smile. Now I will continue making my mission Thumb Up.

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.