.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old December 21st, 2007, 06:15 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Hex <-> Coordinates conversion for scripts

If you want to convert hex IDs into system map coordinates, you'll need these functions

Useful for:
- Moving ships a certain number of hexes (In GGmod, ships ending turn on a warppoint are shoved 1 hex in a random direction so that chokepoints aren't.
- Swirling ships around as they go down into the black hole.
- If you wanted to, you could make planets orbit their stars, although it would tend to cause trouble with ship navigation
- Stargates. Players can dial an address using map coords, and you can now figure out what hex ID you need to use for the warppoint's destination.
Attached Files
File Type: zip 572299-SE5 Hex-Coords Conversion Scripts.zip (486 Bytes, 183 views)
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.