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 : Tuesday, May 1, 2018 9:30:12 AM(UTC)
designmission
Private
Joined: 7/17/2017(UTC)
Posts: 10
Sweden
Location: Skane, Bjuv

Thanks: 5 times
Now I have trouble with this and it wont make me continue making my WorldBuilder map.

So I wanted to know how to do these stuff listed below
:


1. How to add an commandbutton, for example to a structure, infantry or anything.

2. How to remove an commandbutton, for example from a structure.


I really appreciate anybody who helps me with this.

Thanks and
Note: I am not an very expert at WorldBuilder, I'm more like a beginner because I don't use it a lot. I like mostly modding. But anybody who helps me, thanks a lot!

Edited by user Tuesday, May 1, 2018 10:51:13 AM(UTC)  | Reason: Not specified

Sponsor
Offline Annihilationzh  
#2 Posted : Tuesday, May 1, 2018 12:33:00 PM(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)
Depends on how you want to do it.

It's easy via Map.ini by just putting in a non-existent commandbutton.

You can remove a commandbutton via scripts too. Or you can modify the tech tree so that a unit isn't buildable.
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.
thanks 1 user thanked Annihilationzh for this useful post.
designmission on 5/1/2018(UTC)
Offline jman  
#3 Posted : Saturday, May 5, 2018 10:02:55 AM(UTC)
jman
Private
Joined: 9/13/2013(UTC)
Posts: 33

Was thanked: 4 time(s) in 2 post(s)
Here it is an example of scripts where some command buttons are removed and replaced with others.
Download the attached file and extract it.
To import the script into your test map using worldbuilder, you can do the following :
In worldbuilder Edit > Scripts > click on folder PlrCivilian (if you dont see such a folder go to the bottom of the post) > Import > find the location of the extracted file, named China_upgrades_to_unlaunchable_missiles.scb which contains the scripts and press OK.
The scripts will be imported and you can have a look and edit the scripts to see how exactly you can add your own commandbuttons in a similar way.

Scripts have to be into PlrCivilian folder.If you don't see such a folder, cancel and close the Scripts window.Place a civilian structure in your map, anything from Civilian object window.When asked to accept the owner of the newly placed object to be PlrCivilian, accept.Then go back to scripts and you will see a folder named PlrCivilian.

Edited by user Saturday, May 5, 2018 10:07:01 AM(UTC)  | Reason: Not specified

File Attachment(s):
China_upgrades_to_unlaunchable_missiles.zip (2kb) downloaded 36 time(s).
thanks 1 user thanked jman for this useful post.
designmission on 5/13/2018(UTC)
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.