Script Loop

View previous topic View next topic Go down

Script Loop

Post by fenixforeva on Tue Jan 26, 2010 7:13 pm

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 ? bounce

fenixforeva
Lost child
Lost child

Posts : 19
Join date : 2010-01-17

View user profile

Back to top Go down

Re: Script Loop

Post by Tiberian Fiend on Wed Jan 27, 2010 12:08 am

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.

_________________

avatar
Tiberian Fiend
Co-leedah
Co-leedah

Posts : 191
Join date : 2009-07-30
Age : 25
Location : Tiberium field

History
Special in: Cinematics
Awards:
User made maps:

View user profile

Back to top Go down

Re: Script Loop

Post by fenixforeva on Wed Jan 27, 2010 2:24 am

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 ! Razz

fenixforeva
Lost child
Lost child

Posts : 19
Join date : 2010-01-17

View user profile

Back to top Go down

Re: Script Loop

Post by Elven on Wed Jan 27, 2010 7:18 am

I would help, but only can help with ra3 at the moment Razz

you have to wait for tiberian to come online Very Happy

_________________
avatar
Elven
Leader
Leader

Posts : 1167
Join date : 2009-07-25
Age : 24
Location : Coca-cola

History
Special in: Scripting
Awards:
User made maps:

View user profile http://prowb.forumotion.com

Back to top Go down

Re: Script Loop

Post by ThaSlayerb on Wed Jan 27, 2010 8:53 am

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 ! Razz
avatar
ThaSlayerb
God of Fan
God of Fan

Posts : 294
Join date : 2009-08-05
Age : 24
Location : Holland

History
Special in: Scripting
Awards:
User made maps:

View user profile

Back to top Go down

Re: Script Loop

Post by Tiberian Fiend on Wed Jan 27, 2010 10:28 am

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 ! Razz

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.

_________________

avatar
Tiberian Fiend
Co-leedah
Co-leedah

Posts : 191
Join date : 2009-07-30
Age : 25
Location : Tiberium field

History
Special in: Cinematics
Awards:
User made maps:

View user profile

Back to top Go down

Re: Script Loop

Post by fenixforeva on Wed Jan 27, 2010 5:51 pm

Thanks everyone !

This small piece of info is going a long way for me and my map making , i appraite it Smile

cheers cheers

fenixforeva
Lost child
Lost child

Posts : 19
Join date : 2010-01-17

View user profile

Back to top Go down

Re: Script Loop

Post by SPIDER_PIG_ROCKS on Wed Jan 27, 2010 8:38 pm

I don't get what most of this says XD, I'm not a scripter :p
avatar
SPIDER_PIG_ROCKS
Piggy-leedah
Piggy-leedah

Posts : 539
Join date : 2009-08-16
Age : 24
Location : Chicago, IL , USA

History
Special in: Visual
Awards:
User made maps:

View user profile

Back to top Go down

Re: Script Loop

Post by fenixforeva on Wed Jan 27, 2010 8:49 pm

Well for guys who dont know much about kw , sure seems like you know alot

fenixforeva
Lost child
Lost child

Posts : 19
Join date : 2010-01-17

View user profile

Back to top Go down

Re: Script Loop

Post by fenixforeva on Wed Jan 27, 2010 8:50 pm

lrn 2 script spider, i promise, your hair will turn gray ! Shocked

lol

fenixforeva
Lost child
Lost child

Posts : 19
Join date : 2010-01-17

View user profile

Back to top Go down

Re: Script Loop

Post by Elven on Thu Jan 28, 2010 4:16 am

try not to make double posts and use edit Razz

_________________
avatar
Elven
Leader
Leader

Posts : 1167
Join date : 2009-07-25
Age : 24
Location : Coca-cola

History
Special in: Scripting
Awards:
User made maps:

View user profile http://prowb.forumotion.com

Back to top Go down

Re: Script Loop

Post by Tiberian Fiend on Thu Jan 28, 2010 4:36 am

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.

_________________

avatar
Tiberian Fiend
Co-leedah
Co-leedah

Posts : 191
Join date : 2009-07-30
Age : 25
Location : Tiberium field

History
Special in: Cinematics
Awards:
User made maps:

View user profile

Back to top Go down

Re: Script Loop

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum