Spawning main heroes
Spawning main heroes
I would like to make a map so, that after you start the game, the chosen heroes appear at start, without towns.
What scripts would be possible?
And is there any way that every 2 or 3 days a cart with creatures would appear and they would join? they should be the same faction as heroes you choose...
What scripts would be possible?
And is there any way that every 2 or 3 days a cart with creatures would appear and they would join? they should be the same faction as heroes you choose...
There is a function that returns an array of all player's heroes names. The first (and single) element of this array will store your starting hero name.
To be able to remove or move a town or any other static object you should set appropriate propery (IsMovable or somethig like this, can't remember) to true (not nil).
To be able to remove or move a town or any other static object you should set appropriate propery (IsMovable or somethig like this, can't remember) to true (not nil).
So
Oh and SetObjectPosition(GetPlayerHeroes(player_1), x,y,z); returns an error, like wrong argument 1
that solved it thanks! Now what about getting the hero faction? There's a hell lot of scripting if i'd want to check for every creature of each faction so the player1 and 2 would be getting reinforcements everytime...SetObjectPosition(GetPlayerHeroes(player_1), x,y,z);
MakeTownMovable("town1");
RemoveObject("town1");
Oh and SetObjectPosition(GetPlayerHeroes(player_1), x,y,z); returns an error, like wrong argument 1
so numbers from 0 to 7?
EDIT:solved that..but the script now has 524 lines, no error is reported but it doesn't execute...
and how could i make a cycle that every square of the map would be specified?
EDIT:solved that..but the script now has 524 lines, no error is reported but it doesn't execute...
and how could i make a cycle that every square of the map would be specified?
but that's just for all y coordinates...for i=0,71 do
PlayVisualEffect(efectname, '','', x, i, 0, 0);
end;
Who is online
Users browsing this forum: No registered users and 1 guest