| 03-21-2004, 10:06 PM | #1 |
Hey. So I had an idea for a new game type that I like to call "Pilliage Your Villiage". The basic idea is that there are 6 computer players playing a regular melee game against each other and up to 6 human players that each control a hero. The human players harass the computers as they try to fight each other and score kills. That's the very basic idea. I'm trying to do a prototype map for this concept by modifying one of the regular melee 6-player maps that comes with the game. I can't figure out how to set up the regular melee AI for the first six computer players, while allowing the 6 human players to not lose instantly (since they don't have any buildings - just a hero). So I'm pretty sure I need some kind of "AI - Run Script" call for each of the computer players, but I would like to keep the random start locations and random race ability that the regular melee AI triggers allow. Any ideas on how to do this? Can I give each of the computer players 5 workers and a heap of gold and lumber, call the right melee AI script, and have things magically work? Ideally I'd like to make my own AI scripts using the World Editor. |
| 03-21-2004, 10:16 PM | #2 |
How about: Pick all players in players matching condition (matching player is controlled by computer) and Do:
Sry I don't know the exact name of the script or even if they are in the drop-down menu.. otherwise you have to extract them from the MPQ and import to your map.. :d good luck.. oh maybe just type the path they hve in the MPQ is smarter.. :D |
| 03-22-2004, 08:34 PM | #3 |
what bout giving players an invulnerable building where they can build their hero? |
| 03-22-2004, 09:03 PM | #4 |
Basically, elapsed time = 1, or less, create the building at a polar offset from their main building. if human: .. add town hall to Variable1 create hero building at position of Variable1 offset by XXX towards YYY degrees |
| 03-22-2004, 11:30 PM | #5 |
Correct me if I'm wrong, but can't you just delete the "Melee Game - Enforce victory/defeat conditions (for all players)", and then create a second trigger that goes something along the lines of: EVENTS A building is destroyed CONDITIONS Owner of destroyed building is a computer player Number of buildings owned by owner of destroyed building is 0 ACTIONS Defeat owner of destroyed building Just a hunch, but that should work. |
| 03-23-2004, 04:01 PM | #6 |
they need to build a hero somewhere, so make it a building and make it invul, set it to equilant castle/nightelftree/etc if you want more heroes, just give it 15 food and ability to revive heroes, heal and maybe sell stuff.. |
| 03-24-2004, 12:57 AM | #7 | |
Quote:
|
