Posted by: DeVeLiNe - Sunday, June 27, 2010 11:45:06 PM
My problem is that I can't use the "Kill a team" script, or "Transfer team to a player" script. I haven't tried other team scripts so I don't know if they work too.
My map is attached. Thanks in advance! [ATTACH]655[/Attach]
Posted by: Drummin - Monday, June 28, 2010 9:26:51 AM
FYI: Teams under player Civilian don't work so any scripts related these team will not work. I haven't looked at what you're trying to do but thought you should know.
Posted by: DeVeLiNe - Monday, June 28, 2010 10:28:35 AM
Ill describe the situation so you wont have to download the map. I created 2 teams and placed them under "SkirmishAmerica", then I Placed some units (of USA vanilla) on the map and changed their team to the 2 I described (half of them on the first team and the other half on the second). Then I created a script that sets a Flag to be TRUE and another that transfer the team to player0 when the Flag I described is true. the scripts is under "SkirmishAmerica" folder and they both are in the sub sub folder.
I checked to see if the Flag script is working by briefing a massage to the screen, and it works.
Posted by: Drummin - Monday, June 28, 2010 10:32:44 AM
I'm pretty sure "Room" scripting will only work in the PlyrCivilian folder. I'll check it out.
EDIT: I'm in the middle of a huge download that will take several more hours. I can't download your map at this time.
Posted by: DeVeLiNe - Monday, June 28, 2010 10:36:07 AM
np lol. Part of the script is to transfer several units to the control of player0, its in the same folder as the other (SkirmishAmerica) and it works perfectly, the problem is with the team scripting.
Posted by: Drummin - Monday, June 28, 2010 11:03:33 AM
Off the top of my head I think the problem might be there isn't an AI player controlling the team. Remember SkirmishAmerica can be any player and by itself doesn't define a player but a faction anyone can be. Once has been defined any scripts relating to that player will work. IS this a Skirmish or AOD style map?
Posted by: DeVeLiNe - Monday, June 28, 2010 11:10:42 AM
Well its an 2 player VS AI map for multi and single player. The team is in the SA(I'm tired of writing SkirmishAmerica all the time :P ) part in the Edit Teams menu, and the scripts relating to it is in the SA script folder as I described before.
When the game start I transfer the team to player7 (It's the AI), and after the player acquires a building it gets destroyed. But none of the scripts are working for some reason :S