View unanswered posts | View active topics It is currently Sun Apr 26, 2026 7:47 am



Reply to topic  [ 3 posts ] 
 script window example 
Author Message
Lieutenant

Joined: Sat Nov 06, 2004 3:00 am
Posts: 600
Location: USA
Unread post 
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
Profile ICQ WWW
Lieutenant

Joined: Sat Nov 06, 2004 3:00 am
Posts: 600
Location: USA
Unread post 
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
Profile ICQ WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.