PDA

View Full Version : script editing.......


apple23
07-26-2007, 03:07 PM
Can someone teach me the basics of script editing? I know how to operate every tool in worldbuilder but scripts and i think it's time for me to take it up a notch.

If you could provide me with a few examples, like:

Basic commands, like <unit> moves <here> kinda thing.
Causing water to dissapear after an elapsed time.
Removing a build option, like removing superweapons from the worker's build list
Creating movies, like the ones in the missions. (i know that the "movies" are just the camera shifting position and objects moving around)

Any help is much appreciated!

Fr33z3r
07-26-2007, 07:52 PM
Basic commands, like <unit> moves <here> kinda thing.
In the script editor goto Unit -> Move there are scripts to have units follow waypoint paths, goto waypoints etc.
Causing water to dissapear after an elapsed time.
First you need a timer. it can be found in the menu Scripting -> Timer, use "Seconds countdown timer set", second thing you need is the script to lower the water level which can be found under Map -> Modify "Adjust water level"
Removing a build option, like removing superweapons from the worker's build list
This can be found under Map -> Modify "Adjust the techtree for a specific object type". Only thing I havent found out so far is how to deactivate upgrades (if anyone knows please tell us)
Creating movies, like the ones in the missions.Well first you need to do is Camera -> letterbox "Turn on letterbox mode" and Sser -> Input "User input disabled". The camera can follow waypoint paths as well, use Camera ->Follow. In the same menu you can find commands to zoom, rotate, shake the camera etc. You can for example make an airstrike by putting a US command center on the map and use script Unit -> SpecialPower -> "Special Power Fire at location". Then there are also more complex things, for example if you want a B2 to launch Tomahawk missles. For this youll need a B2 (just let it follow a waypoint path), say Waypoints 1, 2, and 3 = Path1. At Waypoint 2 you want it to fire the missle, then you need to spawn the missle at this waypoint via Unit -> Spawn "Spawn unit at location" (the object Tomahawk missle can be found under Civilian -> System) and you need a timer that spawns the missle the moment the B2 passes by. Now youll can have the missle follow its own waypoint path etc. If you want it to crash into a building for example youll have to add the explosion the same way you added the missle (Unit -> Spawn + timer (you should start the timer for the explosion the moment the missle spawns)).

I hope this helps you.

Me Myself & Pi
07-27-2007, 09:08 AM
Check out the script tuts over at cncmaps.com. http://www.cncmaps.com/mapmakingvideo.html They should help you with your scripting.

apple23
08-01-2007, 07:49 PM
sweet. thanks for the tips guys. much appreciated ^^