Latest Posts

Topic: worker command: removeobject

genesis
Joined: 2010-08-21, 16:25
Posts: 15
Ranking
Pry about Widelands
Posted at: 2010-09-06, 19:25

hi,

i hope i write in the right forum. how i use the removeobject command?

exist a "setobject" command to place objects on the map?

genesis


Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 829
Ranking
One Elder of Players
Location: Germany
Posted at: 2010-09-06, 20:06

jepp :). However it's not "setobject" but "plant" - best take a look at the foresters' and/or farmers' programs.

Cheers

Nasenbaer


Top Quote
SirVer
Joined: 2009-02-19, 15:18
Posts: 1439
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2010-09-06, 20:36

there is an overview of the commands:

download or view.

Might not be completely up to date, but most stuff should be correct.

!SirVer

Edited: 2010-09-06, 20:37
Top Quote
genesis
Joined: 2010-08-21, 16:25
Posts: 15
Ranking
Pry about Widelands
Posted at: 2010-09-06, 21:43

thx for the links.

year plant will be work.

i try to desdrescribe want i want to do:

i tried to convert a tree in a deadtree or to remove the tree without the fall programm.


Top Quote
sigra
Joined: 2009-03-05, 19:02
Posts: 130
Ranking
At home in WL-forums
Location: Orsa
Posted at: 2010-09-07, 17:50

!SirVer wrote:

there is an overview of the commands:

download or view.

Might not be completely up to date, but most stuff should be correct.

Yes, but that documentation is for production programs, not worker programs.

For worker programs, look how they are used in the tribes (and implemented in the engine). Have a look at the barbarian stonemason, which calls the stone's program "shrink". That is an immovable program. Immovable programs have the command type "remove" without parameters.

It is important to distinguish the diffenrent kinds of programs:

  1. Critter programs

  2. Immovable programs

  3. Worker programs (can call immovable programs and critter programs)

  4. Production programs (can call worker programs)


Top Quote