globals
point MapPoint array
endglobals
struct point
integer x
integer y
// methods blah blah blah
endstruct
function test takes nothing returns nothing
local integer i=GetRandomInt(0,100)
//populate array
set MapPoint[0x0]=point.create(arguments blah blah blah)
//...
set MapPoint[100]=point.create(arguments blah blah blah)
//pick random "point" and tell the player wtv...
call DisplayTextToPlayer(GetLocalPlayer(),0,0,"Hey, I picked MapPoint["+I2S(i)+"]!!")
//do something with MapPoint[i]
endfunction