hello i want to make a map where you can bribe a computer player to fight with you. whoever give them the most money the will help. it wont be like the campaign mission because when you give them more money then the other player they immediately switch sides.
first, i need a way to transfer money to them and to tell how much you and your opponent have given them. also something to tell who's side they are on.
second, it would be nice to be able to give them simple commands like attack and defend.
ok triggers will be what you need. But how do you want the thing to work? Do you donate money every so often or something? So will need 2 integer variables. I will refer to them as var1 and var2. Now, when a player gives money to the computer, you will modify var1 or var2 by the amount given, and then check to see which is greater, then ally the computer with the new player and make him enemies with the old player. There is an alliance trigger function you can use.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
ya so the player can give money to the merc's any time they want. How would i do that or can i use the resource trading thing.
Edit: ok i figured it out im using the player score, total resources traded, attached to the variables. im running the those through a comparison where it will switch alliances. i just hope i can trade resources with the computer
hello i want to make a map where you can bribe a computer player to fight with you. whoever give them the most money the will help. it wont be like the campaign mission because when you give them more money then the other player they immediately switch sides.
first, i need a way to transfer money to them and to tell how much you and your opponent have given them. also something to tell who's side they are on.
second, it would be nice to be able to give them simple commands like attack and defend.
ok triggers will be what you need. But how do you want the thing to work? Do you donate money every so often or something? So will need 2 integer variables. I will refer to them as var1 and var2. Now, when a player gives money to the computer, you will modify var1 or var2 by the amount given, and then check to see which is greater, then ally the computer with the new player and make him enemies with the old player. There is an alliance trigger function you can use.
ya so the player can give money to the merc's any time they want. How would i do that or can i use the resource trading thing.
Edit: ok i figured it out im using the player score, total resources traded, attached to the variables. im running the those through a comparison where it will switch alliances. i just hope i can trade resources with the computer