Results 1 to 30 of 41

Thread: 2 Points for consideration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Simulation Monkey Member The_Mark's Avatar
    Join Date
    Dec 2004
    Location
    Helsinki, Finland
    Posts
    2,613

    Default Re: 2 Points for consideration

    Quote Originally Posted by Malrubius
    I think the only way to detect the location of a fleet would be to have something checking whether the admiral is near a certain tile, for every naval port. There's not a "FleetIsDocked" condition, that I'm aware of.


    Something like this (sorry for the scripting pseudocode, I'm not well-informed in this area):

    Code:
    for every possible port location for every single faction (probably only a few hundred checks):
    Condition I_CharacterTypeNearTile romans_julii admiral, 1, x, y
    add_money romans_julii 1000
    Why hasn't anyone thought of this earlier? With a bit more sophisticated code we could link upkeep to the fleets' distance from nearest docks, at least up to a certain level.
    Last edited by The_Mark; 01-10-2006 at 18:59.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO