Posted by: sn-ninja - Sunday, March 20, 2011 3:05:15 AM
Hello there again. I got a few questions. I have a 2 players map and 1 Civil that hates you and the computer. But there is a little problem. The civil area is in the middle area of the map. The computer is actually attacking the civil first so i got the time to build. That's the problem actually, i want it so the computer needs to go around that civil area and not attack him. So can i make some more waypoints so the computer can go around it? The next one is that the civil area can be quickly destroyed. So actually i need something so it gives the civil reinforcements. Like a plane in every 2 minutes that is coming with units. And if the plane is destroyed by anti-air, he will spawn 2 minutes later. So every 2 minutes. But if the units last long on the ground then the plane must not spawn every 2 minutes, only if the group of units are destroyed. So how do i do this? Also the computer does work perfectly but he does not capture oil derricks or any other buildings on medium and hard. So any help on this?

Posted by: BR-Alexandre - Sunday, March 20, 2011 8:33:52 AM
[quote]i want it so the computer needs to go around that civil area and not attack him[/quote] i don't have experience with that but guess AI will follow center, flank and backdoor paths so just make them far from civil base [quote]The next one is that the civil area can be quickly destroyed. So actually i need something so it gives the civil reinforcements. Like a plane in every 2 minutes that is coming with units. And if the plane is destroyed by anti-air, he will spawn 2 minutes later. So every 2 minutes. But if the units last long on the ground then the plane must not spawn every 2 minutes, only if the group of units are destroyed.[/quote] i also have no experience with that, but try make scripts evaluated every 2 minutes (120 secs) with deactive disabled and the condition "team XXX has been destroied" and effect (action) to build that team by reeinforce

Posted by: yurdeath2010 - Monday, March 21, 2011 5:40:22 AM
The enemy AI, is it one that you wrote yourself or is it the default skirmish AI? If it's default, then the center, flank, and backdoor paths are the only way I know how to do it. did you try placing a few reinforcement pads in the center with the civilians? I'm assuming you made the civilians, just work on them and give them more and better units.

Posted by: sn-ninja - Tuesday, March 22, 2011 5:54:50 AM
[quote=yurdeath2010]The enemy AI, is it one that you wrote yourself or is it the default skirmish AI? If it's default, then the center, flank, and backdoor paths are the only way I know how to do it. did you try placing a few reinforcement pads in the center with the civilians? I'm assuming you made the civilians, just work on them and give them more and better units.[/quote] (plyrcivillian) And i wrote it myself so it's against all players. But the base of them don't last for long. I have put alot of units in the base, but it does not respawn. so i need something so it gives the civillian reinforcements with a cargoplane. And yes i have the waypoints to : Flank, Backdoor and center.

Posted by: svarionare - Tuesday, March 22, 2011 6:11:49 AM
REmember that player_civilian doesn't spawn teams.You better spawn named units and instruct'em on what to do...

Posted by: yurdeath2010 - Tuesday, March 22, 2011 6:19:47 AM
You can increase the health of a few units in the civilian base as I do on a few of my maps. The picture here shows how to do that. [ATTACH]719[/Attach]

Posted by: BR-Alexandre - Tuesday, March 22, 2011 9:46:00 AM
You don't really need a Screenshot to know make a unit have more or less health, just click the unit and then go to that box in the rigth of the "WB screen" and check for max HP, there you change to any number you want As examples, most infantry have arround 100 HP, 480 for Crusader, 500 for paladin, 1000 for overlord (of course i may be worng about there numbers

Posted by: yurdeath2010 - Tuesday, March 22, 2011 10:20:16 AM
yea, the picture just shows it. My lazy way of telling him how to do it. A picture is worth a thousand words. BTW, that 10000 HP devastator in that picture is a real bitch to take down. Just thought I would let you know that. You might try something a little weaker cause with that, civilian my destroy your enemy themselves. lol. But that is how much HP I give strong tanks on my maps. Most of the time, I use emperor overlords, they are a bit easier because they are slower but 10000 HP is still a lot no matter how you look at it. You don't want something with 10000 HP coming for your base if you are not COMPLETELY prepared for it.

Posted by: BR-Alexandre - Tuesday, March 22, 2011 10:27:53 AM
i've tested high HP for some buildings to slow down the AI once, learned that you must set max HP for units for 500 - 3000 HP for a fair play. 6 tanks with 10000 HP each should only be used in AoD maps as there's no way to stop them Personally, i prefer do not change units instead make more units or defenses for, in this case, the civilian. instead a tank with 2000 HP, 4 tanks with 500 each because its annoying fire and fire at an unit and it don't die

Posted by: yurdeath2010 - Tuesday, March 22, 2011 12:25:43 PM
the map I uploaded has 10 tanks with 10000 hp each. 5 comps with 2 tanks each. It's pretty hard to stop them but possible.

Posted by: sn-ninja - Thursday, March 24, 2011 10:34:51 AM
[quote=svarionare]REmember that player_civilian doesn't spawn teams.You better spawn named units and instruct'em on what to do... [/quote] So i need go to objects and just go choose a vehicle and name him tank1? As i can tell it in your map, you don't even have any vehicles in that map, nothing actually. How did you do this?

Posted by: Drummin - Thursday, March 24, 2011 11:12:38 AM
IF you are using placed units, you can adjust the health of each unit. IF you are Spawning units, you won't have the option of adjusting their health.

Posted by: sn-ninja - Thursday, March 24, 2011 1:10:35 PM
[quote=Drummin]IF you are using placed units, you can adjust the health of each unit. IF you are Spawning units, you won't have the option of adjusting their health.[/quote] Oh sorry i apologize. I didn't mean about the health, but about his map (dierolandia) He has civillians in that map. In his map he has some chinooks that are landing in the middle area and unload some humvee's, and i wanna do this to but not with chinooks but cargoplanes. But i will look at adjusting healths of the units. It will be a good idea to make them a little bit stronger.

Posted by: Drummin - Thursday, March 24, 2011 2:21:08 PM
That was cool map if I remember correctly. I think he was just spawning named units outside the map at the named waypoint at the beginning of the path then telling the unit to enter the transport, then move down the path. I remember things flying all over that map. I've not tried loading a spawned cargo plane before, Just sending in reinforcement teams via transport. Hey give it a shot

Posted by: i^love^mixery - Thursday, March 24, 2011 2:23:37 PM
[quote=Drummin]IF you are using placed units, you can adjust the health of each unit. IF you are Spawning units, you won't have the option of adjusting their health.[/quote] thats right. you cant adjust the health of them but there are more ways to make them stronger. you can use frenzy on them or emergency repair and stuff like that. also there are some CINE_ units with increased health by default. for example there are these humvees with super fast engine and a giant load of HP. you can simply spawn them and then damage them (deal specific amount of dmg) until they have the desired health. but this is rather advanced scripting and i doubt that you can do it on your own. if you like any of these ideas i might be willing to specify ;)

Posted by: svarionare - Thursday, March 24, 2011 2:44:13 PM
As drummin said you should spawn a named unite, maybe outside the map,and then tell that unit to go inside a cargo plane (also this one spawned as a named unit),all these actions made using scripts.When the cargo plane has loaded you tell him to follow a path and, for example,to unload at the end of that path. do you understand? bye

Posted by: i^love^mixery - Thursday, March 24, 2011 2:56:58 PM
[quote=svarionare]tell that unit to go inside a cargo plane[/quote] not possible without .ini file. cargo planes and bombers have no unit slots. with chinooks and helix's your example would surely work.

Posted by: Annihilationzh - Thursday, March 24, 2011 3:18:06 PM
^They do actually, 100 slots each IIRC, but whether you can actually get a unit into one is another matter entirely.

Posted by: sn-ninja - Friday, March 25, 2011 8:30:32 AM
[quote=Annihilationzh]^They do actually, 100 slots each IIRC, but whether you can actually get a unit into one is another matter entirely.[/quote] Then i guess it's going to be an helix transport. I have spawned 8 units on the ground and named them. I added the helix with them. Now i'm making the script but there one problem. I want it to the timer goes like 3 min and then it expires and starts flying to the base. Here is the script so far: [code]*** IF *** True. *** THEN *** Spawn Unit 'Helix_helicopter' of type 'Infa_ChinaVehicleHelix' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin1' of type 'Infa_ChinaInfantryMiniGunner' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin1' of type 'Infa_ChinaInfantryMiniGunner' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin2' of type 'Infa_ChinaInfantryMiniGunner' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin3' of type 'Infa_ChinaInfantryMiniGunner' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin4' of type 'Infa_ChinaInfantryMiniGunner' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin5' of type 'Infa_ChinaInfantryTankHunter' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin6' of type 'Infa_ChinaInfantryTankHunter' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin7' of type 'Infa_ChinaInfantryTankHunter' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Spawn Unit 'Chin8' of type 'Infa_ChinaInfantryTankHunter' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Waypoint15' Unit 'Chin1' loads into Unit 'Helix_helicopter' Unit 'Chin2' loads into Unit 'Helix_helicopter' Unit 'Chin3' loads into Unit 'Helix_helicopter' Unit 'Chin4' loads into Unit 'Helix_helicopter' Unit 'Chin5' loads into Unit 'Helix_helicopter' Unit 'Chin6' loads into Unit 'Helix_helicopter' Unit 'Chin7' loads into Unit 'Helix_helicopter' Unit 'Chin8' loads into Unit 'Helix_helicopter'[/code] So any help? Where can i spawn a object named: Timer?

Posted by: svarionare - Sunday, March 27, 2011 6:52:43 AM
Hi! If u want you can use this simple set of scripts I used for Dierolandia: [color=blue][color=red]1st script: the loop starts[/color] [b][ns A D] *** IF *** True. *** THEN *** Enable Script 'unit_1_&_helicopter_1_spawn'.[/b] [color=red]2nd script: unit_1_&_helicopter_1_spawn[/color] [b][ns na D] *** IF *** True. *** THEN *** Spawn Unit 'helicopter_1' of type 'AirF_AmericaVehicleChinook' on Team 'teamPlyrCivilian' at waypoint Waypoint 'spawn_helicopter_1' Spawn Unit 'unit_1' of type 'Humvee1' on Team 'teamPlyrCivilian' at waypoint Waypoint 'spawn_unit_1' Unit 'unit_1' loads into Unit 'helicopter_1' Unit 'helicopter_1' changes the value of flag Object Flag: Indestructible to TRUE. Set timer 'timer_load_1' to expire in 3.00 seconds. Enable Script 'helicopter_1_goes'.[/b] [color=red]3rd script: helicopter_1_goes[/color] [b][ns na D] *** IF *** Timer 'timer_load_1' has expired. *** THEN *** Unit 'helicopter_1' follows waypoints, beginning at Waypoint Path 'unit_1_path' Enable Script 'helicopter_1_unloads'.[/b] [color=red]4th script: helicopter_1_unloads[/color] [b][ns na D] *** IF *** Unit 'helicopter_1' has reached the end of Waypoint Path 'unit_1_path' *** THEN *** Unit 'helicopter_1' unloads. Set timer 'timer_unload_1' to expire in 3.00 seconds. Enable Script 'disappearance_of_helicopter_1'.[/b] [color=red]5th script: disappearance_of_helicopter_1[/color] [b][ns na D] *** IF *** Timer 'timer_unload_1' has expired. *** THEN *** Unit 'helicopter_1' follows waypoints, beginning at Waypoint Path 'disappearance_of_helicopter_1_path' Enable Script 'helicopter_1_removed'. [/b] [color=red]6th script: helicopter_1_removed[/color] [b][ns na D] *** IF *** Unit 'helicopter_1' has reached the end of Waypoint Path 'disappearance_of_helicopter_1_path' *** THEN *** Unit 'helicopter_1' is removed from the world. Enable Script 'unit_1_destroyed'.[/b] [color=red]7th script: unit_1_destroyed[/color] [b][ns na D] *** IF *** Unit 'unit_1' has been destroyed. *** THEN *** Enable Script 'unit_1_&_helicopter_1_spawn'.[/b] [/color] Is that all clear? bye