how to add object or creature on a map ?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
michel
Posts: 15
Joined: September 5th, 2005, 8:31 am

how to add object or creature on a map ?

Post by michel »

hello, my name is michel and i'm french...so... excuse my language and my faults.
I want to create a map for multiplayer (for me and my friends). no problem with the editor... but i want to put some object on the map like galleon or temple. How to do this ? i can open a game, save it and open it with the edit of the dos to change it but what is the line code to put this objects ?
second point : i want to add some creatures on this map like a sea dragon or a spider, hoaw to do this ?
thanks a lot
User avatar
Viliam
Translator
Posts: 1341
Joined: January 30th, 2004, 11:07 am
Location: Bratislava, Slovakia
Contact:

Post by Viliam »

Each multiplayer scenario has two files, like this:
\data\maps\multiplayer\Example
\data\scenarios\multiplayer\Example.cfg

Objects, creatures, etc, must be added to the CFG file.

For placing a temple, see file:
\data\scenarios\Heir_To_The_Throne\Isle_of_the_Damned.cfg
the code is like this:
{PLACE_IMAGE terrain/temple.png 11 13}

For placing a spider, see file:
\data\scenarios\Heir_To_The_Throne\Plunging_Into_the_Darkness.cfg
the code is like this:
{UNIT (Giant Spider) (Hywyn) ( _ "Hywyn") 2 16 40}

I hope it helps. I did not do any scenarios myself. You probably have to create a non-human-controlled "side" for the Spider... I am not sure how such side in multiplayer will work...
yeahthatguy
Posts: 36
Joined: August 1st, 2005, 12:50 am

Post by yeahthatguy »

Code: Select all

[side]
	no_leader=yes
	side=4
	controller=ai
	team_name=creature
	[unit]
		type=unit type
		name=name of unit
		x,y=location
	[/unit]
[/side]
That should work.
michel
Posts: 15
Joined: September 5th, 2005, 8:31 am

Post by michel »

thanks a lot... i'm going to try it...
and for an item ? can you help me ? (for exemple to place a galleon in the middle of the sea or a temple).
thank you.
Post Reply