d_a_w_g_y
04-30-2008, 07:47 AM
Hi All,
I am trying to convert a custom map from cnc generals to zero hour, the map saves ok etc for use in zero hour and I have learned how to script a little by selecting the script tree etc and looking at what the original author has done. I am a noob at mapping and scripting, I am by no means stealing the original authors work as I am planning to reference him entriely
heres an example, i'm at work so i haven't got it in front of me so 'if' the syntax is not entirely correct its because I'm guessing...
In the top window under the 'if true' TAB
i can pick elements from the scripting tree and assign them, move them up or down etc, e.g.
====================================
'AmericaSupplyCenter' Is Buildable (only by AI)
'AirF_AmericaSupplyCenter' ... ... ...
====================================
this works fine as I tested in Network and Skirmish mode.
however in the bottom window, (which i'm guessing is a global script text box maybe?) the author has put the following:
=============================================
'ChinaSupplyCenter' is Buildable by America (no prerquisites)
=============================================
I need to be able to Add, is Buildable by AirF_America etc, as it was originally a generals map, but the only thing i can do in this box is 'space' (no return for a new line) i am not sure as to what 'delimits' the scripts or if its even possible,
my questions are:
1. how do I edit or add scripts with the extra word 'by' in the bottom window?
2. a couple of the scripts have >?< on the root directory tree does this mean that there is a problem and i need to correct it?
any help on this or pointers in the right direction would be most appreciated,
cheers
d_a_w_g_y
I am trying to convert a custom map from cnc generals to zero hour, the map saves ok etc for use in zero hour and I have learned how to script a little by selecting the script tree etc and looking at what the original author has done. I am a noob at mapping and scripting, I am by no means stealing the original authors work as I am planning to reference him entriely
heres an example, i'm at work so i haven't got it in front of me so 'if' the syntax is not entirely correct its because I'm guessing...
In the top window under the 'if true' TAB
i can pick elements from the scripting tree and assign them, move them up or down etc, e.g.
====================================
'AmericaSupplyCenter' Is Buildable (only by AI)
'AirF_AmericaSupplyCenter' ... ... ...
====================================
this works fine as I tested in Network and Skirmish mode.
however in the bottom window, (which i'm guessing is a global script text box maybe?) the author has put the following:
=============================================
'ChinaSupplyCenter' is Buildable by America (no prerquisites)
=============================================
I need to be able to Add, is Buildable by AirF_America etc, as it was originally a generals map, but the only thing i can do in this box is 'space' (no return for a new line) i am not sure as to what 'delimits' the scripts or if its even possible,
my questions are:
1. how do I edit or add scripts with the extra word 'by' in the bottom window?
2. a couple of the scripts have >?< on the root directory tree does this mean that there is a problem and i need to correct it?
any help on this or pointers in the right direction would be most appreciated,
cheers
d_a_w_g_y