Posted by: sn-ninja - Saturday, March 5, 2011 6:44:31 AM
Hi there. I got a map where there are 2 player starts, and in the middle some civillians with tanks. Now i want them to make them just stand there still and defend the middle area in the map. I tried everything with: Aggresiviness: Agressive. and i tried that the civillian team hates all the player generals. but still they wont do anything. Any help to make them agressive? Thanks.

Posted by: BR-Alexandre - Saturday, March 5, 2011 8:18:18 AM
Try make a script like this [code]*** IF *** True. *** THEN *** [???] Player 'PlyrCivilian' considers Player 'player0' to be Enemy [???] Player 'player0' considers Player 'PlyrCivilian' to be Enemy [/code] Do this from player0 to player7, then civilian will attack any player in the map

Posted by: sn-ninja - Saturday, March 5, 2011 9:35:09 AM
I'm new to scripting. Where do i find it?

Posted by: BR-Alexandre - Saturday, March 5, 2011 9:56:22 AM
First open scripts menu, then click "new script" then change its name to find it later [OPTIONAL] and then click "action if true" and delete standard action and make a new one. search here for the desired action (make civilian figth) Player->alliances->Change how a player relates to another player

Posted by: sn-ninja - Saturday, March 5, 2011 12:01:43 PM
[quote=BR-Alexandre]First open scripts menu, then click "new script" then change its name to find it later [OPTIONAL] and then click "action if true" and delete standard action and make a new one. search here for the desired action (make civilian figth) Player->alliances->Change how a player relates to another player[/quote] And then i need to do this on every side? Like: America Airforce general Laser general gla gla stealth And so on?

Posted by: BR-Alexandre - Saturday, March 5, 2011 12:48:02 PM
[quote=BR-Alexandre]Try make a script like this [code]*** IF *** True. *** THEN *** [???] Player 'PlyrCivilian' considers Player 'player0' to be Enemy [???] Player 'player0' considers Player 'PlyrCivilian' to be Enemy [/code] Do this from player0 to player7, then civilian will attack any player in the map[/quote] see, not for every side but as the skirmish maps players join the game in a "list" u have to make that same thing to every slot Player0= 1st slot human (host) player1= 2nd slot AI or human ...and do this from 0 to 7 because there are 8 slots

Posted by: sn-ninja - Saturday, March 5, 2011 1:36:11 PM
[quote=BR-Alexandre][quote=BR-Alexandre]Try make a script like this [code]*** IF *** True. *** THEN *** [???] Player 'PlyrCivilian' considers Player 'player0' to be Enemy [???] Player 'player0' considers Player 'PlyrCivilian' to be Enemy [/code] Do this from player0 to player7, then civilian will attack any player in the map[/quote] see, not for every side but as the skirmish maps players join the game in a "list" u have to make that same thing to every slot Player0= 1st slot human (host) player1= 2nd slot AI or human ...and do this from 0 to 7 because there are 8 slots [/quote] Here is a screen of the whole script. [url]http://i54.tinypic.com/118iubq.jpg[/url] I just only maked it so only the USA is the enemy from the Civil. Also, Is player0 and player1 the same as "SkirmishAmerica"? Because he couldn't find it.

Posted by: Drummin - Saturday, March 5, 2011 3:18:00 PM
Do it as BR-Alexandre wrote, scripting for all rooms (player0 - player7). Room scripting covers any faction human of AI. Yes, you won't see "player0" etc on a list and the script editor will question your script with ??? but Rooms are accepted in the game.

Posted by: sn-ninja - Sunday, March 6, 2011 1:03:38 AM
[quote=Drummin]Do it as BR-Alexandre wrote, scripting for all rooms (player0 - player7). Room scripting covers any faction human of AI. Yes, you won't see "player0" etc on a list and the script editor will question your script with ??? but Rooms are accepted in the game.[/quote] Alright i got this now. Am i doing this right? [url]http://i55.tinypic.com/2zew6r8.jpg[/url] Because still....civillians don't attack.

Posted by: Annihilationzh - Sunday, March 6, 2011 1:32:53 AM
Move the script to the PlyrCivilian folder. Most scripts in the neutral folder don't work.

Posted by: sn-ninja - Sunday, March 6, 2011 2:01:28 AM
I have it all set, But while playing nothing happens. I probably messed it up maybe i should delete all the Plyr civillian and try it again. Or did i miss something? Also, my map says in unoffical maps MISSING: "Mymap" is this causing the problem?

Posted by: BR-Alexandre - Sunday, March 6, 2011 2:19:49 AM
there's a map in the download list [[url=http://www.cnclabs.com/maps/generals/zerohour-maps.aspx]Maps[/url]] and the map maker managed to make civilian figth, he don't create or build but attack anything close. Map name is dierolandia or something like that Search in the list for that map, download and check his scripts, thats what i did

Posted by: sn-ninja - Sunday, March 6, 2011 3:05:43 AM
[quote=BR-Alexandre]there's a map in the download list [[url=http://www.cnclabs.com/maps/generals/zerohour-maps.aspx]Maps[/url]] and the map maker managed to make civilian figth, he don't create or build but attack anything close. Map name is dierolandia or something like that Search in the list for that map, download and check his scripts, thats what i did[/quote] I watched the script of it. A nice map as example for it. And yes, it worked! I know whats wrong with my script. I have to make every player0, player1,player2 apart in the script and not just in one script file. I only have it on player0 for now, but yes it worked! Thank you! [url]http://i54.tinypic.com/2dadjxx.jpg[/url] Edit: I just had something weird. While play ingame i can't see things anymore. The whole fog does not reveal anymore where you look.

Posted by: BR-Alexandre - Sunday, March 6, 2011 4:03:55 AM
explain the error, just didn't understand what you said

Posted by: sn-ninja - Sunday, March 6, 2011 4:15:54 AM
[quote=BR-Alexandre]explain the error, just didn't understand what you said[/quote] Here is a screen. [url]http://i51.tinypic.com/8x0w80.jpg[/url] The fog does not reveal where you go. When this happend was when the oil derricks and buildings were Plyr civil. I changed them to Neutral side so you can capture it. Added some more details in it to. I also had a script that was in the plyr civil, Supply money for supply docks and put them to the neutral side to. Thats all actually. And now it's not playable because of the black fog problem. I can send a bulldozer in the black fog but i can't select him anymore and can't see him. I give my map, Please check the map. I just don't know whats wrong with this. I would be glady if someone checks the map if there is anything wrong. Thank you. [ATTACH]707[/Attach]

Posted by: BR-Alexandre - Sunday, March 6, 2011 9:01:35 AM
i'm having trouble with it, just can't open or play on that map downloaded, someone tell me how do i open it? put in maps folder isn't working

Posted by: sn-ninja - Sunday, March 6, 2011 10:33:49 AM
[quote=BR-Alexandre]i'm having trouble with it, just can't open or play on that map downloaded, someone tell me how do i open it? put in maps folder isn't working[/quote] Maybe try open that map in world builder? I also had this problem to that it's sometimes does not see the map in the "unoffical maps" I could see it when i just go back to offical maps and switch it again to unoffical maps. But if it's not working, Then ill need to make a new map i guess.

Posted by: casparmartin01 - Sunday, March 6, 2011 11:41:12 AM
Did you placed it in the richt folder? This computer/[yourecomputername)/command&conquergenerals(zerohour)/maps

Posted by: BR-Alexandre - Sunday, March 6, 2011 12:30:33 PM
i often download maps, know how play on them, and tried open with WB, just don't found it i'll try again Edit: tried, again, no success

Posted by: Annihilationzh - Monday, March 7, 2011 2:37:50 AM
Just FYI, I had no trouble downloading and opening the map.

Posted by: yurdeath2010 - Monday, March 7, 2011 5:36:01 AM
I had your same problem when I tried to make the civilian enemy to the players. I never did find a reason and never did finish that map. Kinda lost interest in it. lol

Posted by: sn-ninja - Monday, March 7, 2011 8:12:56 AM
[quote=Annihilationzh]Just FYI, I had no trouble downloading and opening the map.[/quote] So did you found that weird black fog?

Posted by: BR-Alexandre - Monday, March 7, 2011 8:48:57 AM
Guess you're not the only one with problems... [quote=yurdeath2010]I had some kinda glitch where fog of war takes over even my own base. Couldn't see my own units.[/quote] But what is causing that? in the dowload list, in one of the maps the civilian figth everione and there's no Fog Bug....only units or even buildings can't reveal that fog?

Posted by: sn-ninja - Monday, March 7, 2011 12:22:32 PM
[quote=BR-Alexandre]Guess you're not the only one with problems... [quote=yurdeath2010]I had some kinda glitch where fog of war takes over even my own base. Couldn't see my own units.[/quote] But what is causing that? in the dowload list, in one of the maps the civilian figth everione and there's no Fog Bug....only units or even buildings can't reveal that fog?[/quote] No other way to fix this? If so tell me, I really would like to know. Maybe i should delete everything in it and make it all new again.

Posted by: BR-Alexandre - Monday, March 7, 2011 2:19:23 PM
try make an scripts to restore radar....saw something like "Force enable radar" in the srcipts, perhaps one of those can fix that bug, if don't then we can only wait for anihilationzh to find the error. yourdeath2010, pay attention to this topic, it will help you with your map if it haven't been deleted

Posted by: sn-ninja - Tuesday, March 8, 2011 3:52:43 AM
[quote=BR-Alexandre]try make an scripts to restore radar....saw something like "Force enable radar" in the srcipts, perhaps one of those can fix that bug, if don't then we can only wait for anihilationzh to find the error. yourdeath2010, pay attention to this topic, it will help you with your map if it haven't been deleted[/quote] Now i've found another one! And this one is probably that is the problem. I made a laser turret to try and then suddenly my own turret was shooting my own bulldozer! There is probably something wrong with the script. Edit: I found out to that i can select my turret and i can make him attack my own command center. Here a screen what it is doing: [url]http://i55.tinypic.com/691g1i.jpg[/url]

Posted by: yurdeath2010 - Tuesday, March 8, 2011 6:07:42 AM
[quote=BR-Alexandre]yourdeath2010, pay attention to this topic, it will help you with your map if it haven't been deleted[/quote] I actually pay attention to every thread. I like to lurk. I don't post in every thread, but I'm reading it. kinda creepy hu? lol [quote=sn-ninja]I made a laser turret to try and then suddenly my own turret was shooting my own bulldozer! There is probably something wrong with the script.[/quote] I guess this means the problem is that we have turned our own buildings against ourselves. Not sure how we did that, I don't see anywhere in that script, "player0 considers player0 to be enemy" [quote=BR-Alexandre]try make an scripts to restore radar....saw something like "Force enable radar" in the srcipts, perhaps one of those can fix that bug,[/quote] If my guess is correct in light of sn-ninja's post, I don't think this will ultimately fix our problem. There is a script to reveal all fog on the map, but not only would that make the game completely different, I don't think it will really solve our problem here.

Posted by: Drummin - Tuesday, March 8, 2011 7:08:17 AM
Make sure you're using lower case player names instead of First Caps. Not sure about the radar issue.

Posted by: sn-ninja - Tuesday, March 8, 2011 7:27:32 AM
Guys. I have fixed it. Yes.... The reason why the fog wasn't showing was because i set the Supply docks to (Neutral) This was a big mistake, I have now setted them to (Plyrcivillian) And now i can see the level again. How did i find this? I started a new level and putted a supply dock in the corners and then it says "which player template should i use?" And i could only choose one team: (Plyrcivillian) So i was thinking about it, and i was guessing if that was the problem and yes.... So now i got the map fully playable now and i'm happy that it works again. I really thank you guys for helping me out to fix it. It was also the first map that i made. I'm going to finish it and i will probably will send it here on this site if it's done. [smile] Thanks!

Posted by: yurdeath2010 - Tuesday, March 8, 2011 7:40:36 AM
You fixed the fog glitch by just adding a supply dock on team plyrcivilian? interesting. If I had a computer handy that could run generals I would give that a try on my map. but the computer I was using is messed up. (graphics card is dead) and my computer just wont run it anymore for whatever reason.

Posted by: Mr. Green - Tuesday, March 8, 2011 7:42:14 AM
I'll take it. I now have a computer that will run it. All I need is the download link. Umm...I need you to put it in .zip instead of .rar format though. Thanks and have a nice day. [grin]

Posted by: BR-Alexandre - Tuesday, March 8, 2011 7:50:45 AM
anyone know how i can upload scripts? i've made some hard AI scripts for ZH, they are not "perfected" yet but play well [except for infantry and nuke generals]. i may try upload them so ninja can import them to his map, just have to edit intro scripts.Can't upload them because of .scb format

Posted by: Drummin - Tuesday, March 8, 2011 8:00:20 AM
Not sure having supply docks as your enemy is a good idea. I just made this test map and it seems to work fine for me. Supply belongs to neutral. Does it work for you? BR-Alexandre, Zip up your script file first. [ATTACH]710[/Attach]

Posted by: BR-Alexandre - Tuesday, March 8, 2011 8:08:49 AM
sorry but...how do i zip up? Just change file to . zip instead .scb? Tried, hope it work EDIT: Now i did as yurdeath2010 told, should work now, if don't then there's something wrong... [ATTACH]712[/Attach]

Posted by: yurdeath2010 - Tuesday, March 8, 2011 8:12:14 AM
I believe you just right click on the folder with the files in it and click send to>compressed (zipped) file.

Posted by: BR-Alexandre - Tuesday, March 8, 2011 8:14:43 AM
i'm kinda noob about working with most computer stuff outside any game, usually i call my dad but he's travelling until friday so...anyway, i tried change name, hope it work

Posted by: BR-Alexandre - Wednesday, March 9, 2011 3:41:19 AM
Can someone tell me if the scripts work? thats the first file i upload so want know if did it rigth...they also are not perfect yet, and GLA have one problem, check scripts to fire SW, ambush and antrax, its in [s A D] condition instead [s A d]. one more: if anyone find a error in the scripts, fix it instead use it to defeat the AI, then tell me the error and i'll also fix it in my scripts too