Script Loop
5 posters
Page 1 of 1
Script Loop
Anyone know how to create a loop script ? Im trying to keep a wormhole open by having it spawn continuosly for a certain ammount of time, it doenst last for more then the duration of the scripts .
This is what ive come up with, its not working :
A timer in another script countsdown to enable this, so there is a 3rd script.
*** IF ***
Timer 'buildloop_portals_start' has expired.
*** THEN ***
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_1', rotated -0.03 degrees.
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_2', rotated -0.03 degrees.
Enable Script 'Buildbase_loop_2'.
*** IF ***
Timer 'buildloop_portals' has expired.
*** THEN ***
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_1', rotated -0.03 degrees.
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_2', rotated -0.03 degrees.
Enable Script 'Buildbase_loop_1'.
Any ideas ?
This is what ive come up with, its not working :
A timer in another script countsdown to enable this, so there is a 3rd script.
*** IF ***
Timer 'buildloop_portals_start' has expired.
*** THEN ***
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_1', rotated -0.03 degrees.
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_2', rotated -0.03 degrees.
Enable Script 'Buildbase_loop_2'.
*** IF ***
Timer 'buildloop_portals' has expired.
*** THEN ***
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_1', rotated -0.03 degrees.
Spawn unit of type 'AlienWormHole' on Team 'teamPlyrAlien' at waypoint Waypoint 'WP_Portal_2', rotated -0.03 degrees.
Enable Script 'Buildbase_loop_1'.
Any ideas ?
fenixforeva- Lost child
- Posts : 19
Join date : 2010-01-17
Re: Script Loop
yes, its all down to the manipulation of the active script, you need to make sure that your looped script activates the script that expires aka
Script 1
Effect, enable script 2
Script 2
Effect, enable script 1
You can add a timer in but you also need to enable that in order - in order to have a successfull loop.
Script 1
Effect, enable script 2
Script 2
Effect, enable script 1
You can add a timer in but you also need to enable that in order - in order to have a successfull loop.
Tiberian Fiend- Co-leedah
- Posts : 191
Join date : 2009-07-30
Age : 32
Location : Tiberium field
History
Special in: Cinematics
Awards:
User made maps:
Re: Script Loop
and i thought i was a pro.. pftt .. you got this stuf under wraps lol
Ive got a few more things i cant solve , bare with me.
- I place objects on map such as derbis or crashed ships etc, and it doesnt show ? any reasons why ?
- My tiberium is selectable , ive set it to netural but it still selects.
-I have a countdown timer , and it says missing, do i have to add text to the map.str file ?
Thats about it !
Ive got a few more things i cant solve , bare with me.
- I place objects on map such as derbis or crashed ships etc, and it doesnt show ? any reasons why ?
- My tiberium is selectable , ive set it to netural but it still selects.
-I have a countdown timer , and it says missing, do i have to add text to the map.str file ?
Thats about it !
fenixforeva- Lost child
- Posts : 19
Join date : 2010-01-17
Re: Script Loop
I would help, but only can help with ra3 at the moment
you have to wait for tiberian to come online
you have to wait for tiberian to come online
Elven- Leader
- Posts : 1167
Join date : 2009-07-25
Age : 31
Location : Coca-cola
History
Special in: Scripting
Awards:
User made maps:
Re: Script Loop
fenixforeva wrote:and i thought i was a pro.. pftt .. you got this stuf under wraps lol
Ive got a few more things i cant solve , bare with me.
- I place objects on map such as derbis or crashed ships etc, and it doesnt show ? any reasons why ?
It is becus you have set your LOD to low, If you put your settings on high, it will show.
- My tiberium is selectable , ive set it to netural but it still selects.
I am not KWmapper, So I do not know, anything bout this
-I have a countdown timer , and it says missing, do i have to add text to the map.str file ?
In order to show a text string, you must add text to map.str
For expample
- Code:
Titel
"message"
End
Thats about it !
ThaSlayerb- God of Fan
- Posts : 294
Join date : 2009-08-05
Age : 31
Location : Holland
History
Special in: Scripting
Awards:
User made maps:
Re: Script Loop
fenixforeva wrote:and i thought i was a pro.. pftt .. you got this stuf under wraps lol
Ive got a few more things i cant solve , bare with me.
- I place objects on map such as derbis or crashed ships etc, and it doesnt show ? any reasons why ? as answered by slayer
- My tiberium is selectable , ive set it to netural but it still selects.
You would need to consider that tiberium grows new objects, setting the spawning object to a team and then changing the team's selectability via script should solve this, if you are talking about a single pre-placed object however, you could select it on WB and then untick selectable properties.
-I have a countdown timer , and it says missing, do i have to add text to the map.str file ?
Yep the timer is a bit of text next to a timer, just make a .str use the string's title(from inside the file) and paste it as the string in the timer - this is me guessing that you know how to fully use .str files.
Thats about it !
I would also tell you that trying to delete a team on Tiberium wars and kanes wrath doesn't work via scripts from what I can recall, which is a major bummer because you can use teams to define a large group of units and objects.
Tiberian Fiend- Co-leedah
- Posts : 191
Join date : 2009-07-30
Age : 32
Location : Tiberium field
History
Special in: Cinematics
Awards:
User made maps:
Re: Script Loop
Thanks everyone !
This small piece of info is going a long way for me and my map making , i appraite it
cheers
This small piece of info is going a long way for me and my map making , i appraite it
cheers
fenixforeva- Lost child
- Posts : 19
Join date : 2010-01-17
Re: Script Loop
I don't get what most of this says XD, I'm not a scripter :p
SPIDER_PIG_ROCKS- Piggy-leedah
- Posts : 539
Join date : 2009-08-16
Age : 30
Location : Chicago, IL , USA
History
Special in: Visual
Awards:
User made maps:
Re: Script Loop
Well for guys who dont know much about kw , sure seems like you know alot
fenixforeva- Lost child
- Posts : 19
Join date : 2010-01-17
Re: Script Loop
lrn 2 script spider, i promise, your hair will turn gray !
lol
lol
fenixforeva- Lost child
- Posts : 19
Join date : 2010-01-17
Re: Script Loop
try not to make double posts and use edit
Elven- Leader
- Posts : 1167
Join date : 2009-07-25
Age : 31
Location : Coca-cola
History
Special in: Scripting
Awards:
User made maps:
Re: Script Loop
I use to help map with mungovin, a brill map maker; he made the world map and I helped him with all the cinematics for the tiberium tornie map.
Mapping start with tiberium wars for me, maybe generals but thatwas too dull in graphics to make anything intresting.
Should you need a helping hand in scripting anything tough, i can suggest mehods around it; just be aware that i'm no longer using C&C3 Tib WB.
Mapping start with tiberium wars for me, maybe generals but thatwas too dull in graphics to make anything intresting.
Should you need a helping hand in scripting anything tough, i can suggest mehods around it; just be aware that i'm no longer using C&C3 Tib WB.
Tiberian Fiend- Co-leedah
- Posts : 191
Join date : 2009-07-30
Age : 32
Location : Tiberium field
History
Special in: Cinematics
Awards:
User made maps:
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|