|
Post by lordlee on Nov 16, 2006 16:49:19 GMT
hey all, Ive played two mp scenarios, and is it just me or are there no real scenarios? It was more of a map with units on it... Im wondering if there is any mp game with both map and script? i.e. Microwars and bridge crossing? I know some scripting basics, I just dont know how to make 6 players each have thier own script
|
|
|
Post by PzK on Nov 16, 2006 20:27:07 GMT
hmm, well you can only use one script for one scenario, can you tell me what you specifically want to do?
|
|
|
Post by Freedom-Fighter on Nov 17, 2006 19:56:21 GMT
That's what I'm wondering. The problem is that there are only two commands for winning and losing:
WinScenario(); & LoseScenario();
And you can't specify which player to win or lose using these two commands.
|
|
|
Post by lordlee on Nov 20, 2006 17:41:17 GMT
ok lets start with a simple one...
6 players total 3 per side: Dragon Songs (or Licorn Howitzer) Eagle warriors Teutonic Knights (or Cuirassier)
basically each player has a wonder and a spawn point (as well as some defenses surrounding the wonder including an impenetrable wall with a penetrable gate, outposts and fortresses)
If you destroy a wonder, that player no longer spawns units. i.e. the units he has is all thats left before he loses. Once one side has no units the game ends. The battlefield is relatively simple...
|===========================================| | | | Wonder Wonder Wonder | | | |-------gate-----------------gate--------------------------------gate----| | | | | | | | | | | | | | | | | | | | | |-------gate--------------------------gate--------------------------gate-| | | | Wonder Wonder Wonder | | | |=============================================
|
|
|
Post by lordlee on Nov 20, 2006 22:33:36 GMT
update i finished the map portion of microwars, but still need the script... i need a basic script:
Player 7 has invincible walls and towers. Diplomatic state is locked, Area1 spawns dragon songs for player 1, Area 2 spawns eagle warriors for player 2, area 3 spawns teutonic nights for player 3, area 4 spawns dragon songs for player 4, area 5 spawns eagle warriors for player 5, area 6 spawns teutonic knights for player 6...
also each player has a corresponding wonder, which, if destroyed, removes that player from play. If thats too tough to do then if all units vanquished, then player is dead.
|
|
|
Post by Freedom-Fighter on Nov 25, 2006 9:37:20 GMT
To make units invincible, add this command in the Intilizations section:
AttachEffectToGroup("GROUPNAME", "Invincibility");
You need to create a group in the editor first, and write the name of that group in the command.
As for the spawning units, how often do you want it to spawn?
And for the wonders, there aren't any commands which can make a particular player lose. However, another idea is, you make a rule which says: if the wonder is distroyed, then all of that players' units would be killed. For example:
//////////////////////////////////////////////////////////// // Player 1 die //////////////////////////////////////////////////////////// RULE rulePlayer1die ONESHOT if (!DoesUnitExist("Player1Wonder")) && ( CreateNamedGroup( "Player1AllUnits" )) && (AddUnitsByAttributeToGroup("Player1AllUnits", "MobileUnits", "1", kPlayerMode_Self, NULL)) && (AddUnitsByAttributeToGroup("Player1AllUnits", "Building", "1", kPlayerMode_Self, NULL)) then actionPlayer1die END_RULE
ACTION actionPlayer1die SCRIPT WORLD SelectGroup("Player1AllUnits"); KillSelection();
END_SCRIPT END_ACTION
This should work, although there might be a few small mistakes in there.
|
|
|
Post by lordlee on Nov 25, 2006 17:26:49 GMT
can you get on xfire? the map is made
|
|
|
Post by PzK on Dec 18, 2006 19:50:13 GMT
any news on the map lordlee?
|
|
|
Post by Ψїş†ÆCROW100 on Dec 22, 2006 0:49:33 GMT
Man this is kick testes! Is it on EEH?
|
|