My guess is that I need to use llGetLinkNumber() and ||GetScale and ||SetScale, but I'm not sure how to work it into my code ... please help

How do I hone in on just one prim (tap into the link order/link number??)?
Here is my code block (I also don't know how to post a block of code in the forums so that it appears in a scrolling space) :
default
{
state_entry()
{
// get the start position - vector and rotation - in order to reset the object at the end
gStartPos = llGetPos();
gStartRot = llGetRot();
// set goal rotation
rot = llEuler2Rot(<0, PI/20.0, 0>

// rotRope = llEuler2Rot(<0, PI/37.0, 0>

gAdmin = llGetOwner();
llListen(gDirectChannel, "", NULL_KEY, ""

}
listen(integer channel, string name, key id, string msg)
{
if ( msg == gGoMsg )
{
integer i;
//this is the X movement 5m
for( i = 0; i < 50; i++)
{
llSetPos(llGetLocalPos() - <0.1, 0, 0>

// during this span, i need one prim to scale, so it looks like it is filling up a space.
// if (llGetLinkNumber() == 2);
{
// ||GetScale ||SetScale ???
}
}
...
thanks!!