View unanswered posts | View active topics It is currently Sun Apr 26, 2026 3:01 pm



Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
 Pscan ala Holo command 
Author Message
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1402
Location: Canada
Unread post 
Singularity wrote:
Anyway, I wanted to get a discussion going on how to best restructure game text.


When dealing with a single planet, I can't see how the information as is provided could be structured in a better way --aside from abreaviating Text to get shorter lines, and omitting 'Ship Amont' data.

I can visualize many possibilities generating a 'Report' type structure for several planets any given sector, or sectors.

I've have yet to use arrays beyond 3 dimensions so I'm not sure what the limit is, if any. However. I somtimes use a method that involves assigning context to Row in an array, so for example, using a top down approach:

Code:
SetArray $PMatrix SECTORS $nPlanets $Datum
setVar $Sec CURRENTSECTOR
setVar $PMatrix $TotalPlanets
setVar $PMatrix[$Sec] $SectorPlanetCount
setVar $PMatrix[$Sec][1] $PlanetNumber
setVar $PMatrix[$Sec][1][1] $Class
setVar $PMatrix[$Sec][1][2] $COLS_ORE
setVar $PMatrix[$Sec][1][3] $COLS_ORE_divisor
setVar $PMatrix[$Sec][1][4] $COLS_ORE_Amount
setVar $PMatrix[$Sec][1][5] $COLS_ORE_MAX
...same for Organics & Equipment
setVar $PMatrix[$Sec][1][14] $Level
setVar $PMatrix[$Sec][1][15] $Creds
setVar $PMatrix[$Sec][1][16] $Planet_Figs
setVar $PMatrix[$Sec][1][17] ..and so on


The above's probably more complex than it needs to be, but I feel it would lend itself nicely to all kinda of data *ysis. Constants could be utilized as pointers, in place of numeric values ie SetVar $PLANET_LVL 14

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.


Wed Apr 11, 2007 3:14 am
Profile ICQ YIM
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
Quote:
The above's probably more complex than it needs to be, but I feel it would lend itself nicely to all kinda of data *ysis. Constants could be utilized as pointers, in place of numeric values ie SetVar $PLANET_LVL 14

Actually look like you simplified the data storage nicely. $PMatrix[$Sec] $SectorPlanetCount i wounldnt bother with this one because the planets move around but the array structure should make comparisions between time stamps as well as *yse of planet data quite simple.
$PMatrix[$planetnum][$colos][$ore] might be easier to remember.


Wed Apr 11, 2007 3:35 am
Profile ICQ YIM
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Stupid filters

Cerne

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Wed Apr 11, 2007 3:55 am
Profile ICQ
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1402
Location: Canada
Unread post 
Cernnunos wrote:
Stupid filtersCerne


They are pretty Rectal

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.


Wed Apr 11, 2007 4:05 am
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 26 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.