View Single Post
Old 01-27-2012, 08:36 PM   #77
VarsityPuppet
Master of Puppets
 
VarsityPuppet's Avatar
 
Join Date: May 2009
Location: MN
Posts: 1,225
Current Game: Chrono Trigger
Contest winner - Modding Forum Veteran Veteran Modder Helpful! 
Thought I'd drop in and say hi with a script to look at.

This mostly came from me looking over some HK factory scripts and realizing just how inefficient they were.

I had these three separate scripts

a_disthk51
Show spoiler

a_move51line
Show spoiler

a_move51disp
Show spoiler

to distribute some HK51 units around the HK factory based on their behavior cores.

I just had to rewrite the code and I came up with this:
I put some comments in too to make it user-friendly.
Shows off some nice examples of how to use while loops and methods.


Show spoiler


What's my point behind this? Well, the point is the more you know about scripting/programming, the more efficient your scripts can be. Same functionality, WAAAAY more concise.

Expect me to drop in more often

VarsityPuppet is offline   you may: quote & reply,