how to add object or creature on a map ?
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.
how to add object or creature on a map ?
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
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
- Viliam
- Translator
- Posts: 1341
- Joined: January 30th, 2004, 11:07 am
- Location: Bratislava, Slovakia
- Contact:
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...
\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...
-
- Posts: 36
- Joined: August 1st, 2005, 12:50 am
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]