| 03-04-2004, 01:57 AM | #1 |
Well, these questions r on triggers so... How do you make it so you can't play it on single player? and also How do you make it so theres a cpu hero wandering around and is like a human?(kills enemys, picks up items, roams around) kinda like whats in COT Rpg |
| 03-04-2004, 02:37 AM | #2 |
Also if anyone nos how to make it so trees never die and u can get lumber lumber all you want and the tree wont go away. |
| 03-04-2004, 03:09 AM | #3 |
1. This is easy. Make a little trigger that runs around startup(1 or 2 seconds into game) and check how many players are playing. If the number is 1, then just defeat him with a message like you can only play with more than one person. 2. You can either try and write your own AI, or do a huge trigger AI simulation. 3. I believe that you could just do a periodic event and choose every destructable whos life != (not equal) to 100% and set their life to 100%. It would only have to be run every 10 - 15 seconds. |
| 03-04-2004, 04:09 AM | #4 |
I also don't really know how that AI simulation thing works and doesn't it still work in single player if do that and someone makes a cpu in the game? |
| 03-04-2004, 07:46 AM | #5 |
No, because you check how many player controlled players are in the game. You first check how many players are in the game by using "melee game - create starting units" (this is the only way I know to make units for only the players that are actually playing, does anyone know an easier way?) and then counting the players that have a town hall at their start location, and then removing the town hall and peasants. Then you check how many of the players are human controlled with the "player controller comparison". |
| 03-04-2004, 11:16 AM | #6 |
Check each slot. If it's a human player add it to a count variable and if the variable is = 1, end in defeat. |
| 03-04-2004, 01:36 PM | #7 |
ok so how do u do the AI simulation then? |
| 03-04-2004, 03:24 PM | #8 |
For the tree you can make a custom invurnable unit with the model of a tree. |
| 03-04-2004, 10:46 PM | #9 | |
Quote:
|
| 03-05-2004, 04:34 PM | #10 | |
Quote:
give the tree the max of life ( 99999 ) |
