Private Joined: 11/11/2016(UTC) Posts: 5
|
hi, I am relatively new to world builder and scripting. I am trying to make a test skirmish map with a few scripts that I have written, I am seeing that none of my scripts work in the game.
*some very important information: I have Peace Mission Mod installed, not vanilla zero hour. I know this is not a good idea to have mods installed while learning to script. I think this might be the cause of my problems. I also have different factions and units*
I wrote a test script, which is this:
***IF*** 'AmericanPowerplant' has been built by Player '<This Player>' ***THEN*** Set Player '<This Player>''s money to $420
I put it into the SkirmishAmerica Folder, and I tested it playing as America faction and it did not work. so I tried the simplest script (that I saw on a scripting tutorial):
***IF*** True. ***THEN*** Set timer 'Test Timer' to expire in 60.00 seconds
I put this into Neutral (I dont think it matter where this script goes), tested it, and no timer started at the start of the game. so I want to know: I writing the scripts wrong? Do scripts generally not work in skirmish? Is there something I have to do first? Does world builder have problems with mods?
Some more info: Peace Mission mod skirmish does not have regular 'Easy, Medium, Hard' AI difficulties, but rather 'Odinary Commander, Airforce Commander, ground commander' difficulties. I see in Script Properties, you can select which difficulty the script will be active on. Maybe the scripts aren't active because of these (unless the ordinary ground and air commanders are just different names for easy medium and hard that the devs of PM added.
Thank you for your time
|
|
|
|
Colonel Joined: 12/27/2013(UTC) Posts: 681 Location: MLP Thanks: 181 times Was thanked: 143 time(s) in 119 post(s)
|
Well I do not know if mods do have an effect on scripting because I never had any mods installed. I would think they shouldn't, but I'm not sure. We need someone to verify this. Also scripting in Skirmish should work just fine ;) |
Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
|
|
|
|
Private Joined: 11/11/2016(UTC) Posts: 5
|
I actually found some of my problems.It turns out it is not my mods, it is just that I am clueless about scripting. kind of feel like an idiot now, but whatever. I want to see if I can make a capture-the-flag game
|
|
|
|
Colonel Joined: 12/27/2013(UTC) Posts: 681 Location: MLP Thanks: 181 times Was thanked: 143 time(s) in 119 post(s)
|
Ah, well as long as you have the problem fixed then hooray! Wow, making a capture-the-flag game is very ambitious and is probably not a good start for new scripters. Start out simple first =) |
Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
if that timer script did run you wouldn't actually see it in game. |
|
|
|
|
Private Joined: 11/11/2016(UTC) Posts: 5
|
Originally Posted by: Zero Hour Mad Map Maker Ah, well as long as you have the problem fixed then hooray! Wow, making a capture-the-flag game is very ambitious and is probably not a good start for new scripters. Start out simple first =) I've actually started the prototype map. So far, the AI go around the map and capture beacons, and I made a script that let's you win if you capture 3 beacons. so that's going pretty well. Next, I want to add teams that will counter attack when you capture a flag... so i have to learn how to do that now. but anyway, thanks for the advice =)
|
|
|
|
Private Joined: 8/7/2021(UTC) Posts: 3
|
Great approach! So I can expect your AI to be the batterground huh!.. Well what you're doing is really commendable, the only thing I want to advise you is that your presentation. Get the services of https://isaccurate.com/s...ish-translation-services they will write for you. Their maketing content is very best and at lower prices.They write all types of articles such as press release, detailed write ups, everything.
|
|
|
|
Users browsing this topic |
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.