|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
Zarkahn
Lieutenant
Joined: Sat Nov 06, 2004 3:00 am Posts: 600 Location: USA
|
this is a simple script to create a window for sectors gridded as an example... I run it as a seperate script... as a systemscript... so it has to be killed manually... should work with any grid script... not tested... but takes no action other than the window, so shouldn't interfere... hasn't been tested on hi speed... but a very simple script to show how to use a window in a script...
# START SCRIPT HERE
systemscript
:start
window GridCount 185 135 "GridCount" ONTOP
setvar $count 0
gosub :wind
:count
killalltriggers
settexttrigger add :add "vs. theirs:"
pause
:add
add $count 1
gosub :wind
goto :count
:wind
setVar $contents "Sectors Gridded: " & $count & "*"
setWindowContents GridCount $contents
return
# END SCRIPT HERE
Just trying to do my little part to help peeps learn
_________________ Its not the Kill, Its the Thrill of the Chase
S: Min: 297 Max: 437 Average: 410 -- Just here to attack aliens
S: High/Low Removed Average: 421
|
| Thu Nov 16, 2006 11:50 pm |
|
 |
|
Zarkahn
Lieutenant
Joined: Sat Nov 06, 2004 3:00 am Posts: 600 Location: USA
|
well only counts sectors others had gridded that u took... won't count sectors no one owned... also used a old window... could be smaller... adjust for ur screen...
_________________ Its not the Kill, Its the Thrill of the Chase
S: Min: 297 Max: 437 Average: 410 -- Just here to attack aliens
S: High/Low Removed Average: 421
|
| Thu Nov 16, 2006 11:55 pm |
|
 |
|
Thrawn
Commander
Joined: Fri Aug 20, 2004 2:00 am Posts: 1801 Location: Outer Rims
|
That is very interesting. Thank you Zarkahn for that. I will find it very useful.
_________________ -Thrawn
But risk has always been an inescapable part of warfare.
--
Knight to Queen's Bishop 3
|
| Thu Nov 16, 2006 11:59 pm |
|
 |
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 28 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|