Noob questions at creating multiplayer 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.
User avatar
Slann
Posts: 66
Joined: March 2nd, 2008, 3:47 pm

Re: Noob questions at creating multiplayer map

Post by Slann »

Thanks mate, now it works as intended
User avatar
Slann
Posts: 66
Joined: March 2nd, 2008, 3:47 pm

Re: Noob questions at creating multiplayer map

Post by Slann »

I'm back. I have something in mind, but i dont know how to solve it. In this map, there is a castle at center (not a hex). There are rooms, hallway, corridors, etc... What i need is to place some units around the castle and make them to patrol. So, for example, 4 units at south-west goes to north-west, the ones at north-west to north-east, and so. This units only would attack enemies at their range while patrolling, and once enemies are defeated or out of range, continue their patroll.

There are things that i know how to (as deploy this units), but i dont know how to set them to protect certain location, then change it and force them to move up to this new location. Any help?
Spoiler:
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: Noob questions at creating multiplayer map

Post by SkyOne »

Ah... You have probably referred it already, but... on the first scenario of IftU, its side=4 behaves something like you want. I roughly researched it, but unable to find what file these macros come from:

Code: Select all

{IS_HOSTILE_NPC}
{NPC_BIRD_BEHAVIOR 4 1 40 1 35}
If you can find it, I am sure it will be a great help for you.
(sorry for an unclear tip...)
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
User avatar
Slann
Posts: 66
Joined: March 2nd, 2008, 3:47 pm

Re: Noob questions at creating multiplayer map

Post by Slann »

SkyOne wrote:Ah... You have probably referred it already, but... on the first scenario of IftU, its side=4 behaves something like you want. I roughly researched it, but unable to find what file these macros come from:

Code: Select all

{IS_HOSTILE_NPC}
{NPC_BIRD_BEHAVIOR 4 1 40 1 35}
If you can find it, I am sure it will be a great help for you.
(sorry for an unclear tip...)
No man, this is better than nothing. Indeed, this is a great help, now i know where to start. Thanks man.

EDIT: i found it, although im not sure if i should use it :lol2: , too complicated.
Spoiler:
User avatar
SkyOne
Posts: 1310
Joined: January 3rd, 2009, 7:23 pm

Re: Noob questions at creating multiplayer map

Post by SkyOne »

Slann wrote:EDIT: i found it, although im not sure if i should use it :lol2: , too complicated.
Wow! It is much more complicated than I expected. I have to study how it works. But congratulations for finding it. Could you tell me what file was it? Was it in the macros folder? I tried to check all files in the folder, but it seems I missed some.

By the way, the units (falcons) are flying around the whole map from the beginning of the first scenario, so you can at least see easily how they behave.:)
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
User avatar
Slann
Posts: 66
Joined: March 2nd, 2008, 3:47 pm

Re: Noob questions at creating multiplayer map

Post by Slann »

Yeah, i played the first scenery to see it by my own. I use notepad++, so was easy to find it. The exactly path is : add-ons\Invasion_from_the_Unknown\ai\fake\npc.cfg
Post Reply