Improvement to Korlov Shipping

Post ideas & suggestions you have pertaining to the game here.
Post Reply
Burzmali
Militia Commander
Militia Commander
Posts: 395
Joined: Tue Aug 15, 2006 12:14 am

Call it a request, but could you please change the segment of code responsible for determining the target of a Korlov Transport mission? Right now it looks like this:

Code: Select all

; Get the destination. It should be a friendly structure
(setq destList (sysFindObject gSource "T:populated;F"))
; Find the farthest station (start with min distance)
(setq minDist (item gMission 4))
(setq bestDist 1200)
(setq gDestination Nil)
(enum destList testDest
  (if (and
      (gr (objGetDistance gSource testDest) minDist)
      (ls (objGetDistance gSource testDest) bestDist))
    (block Nil
      (setq bestDist (objGetDistance gSource testDest))
      (setq gDestination testDest)
      )
    )
  )

It works fine, but if it was coded more like this:

Code: Select all

; Get the destination. It should be a random friendly structure between minDist and maxDist
(setq gDestination Nil)
(setq minDist (item gMission 4))
(for i 2 7
  (if (not gDestination)
    (block (maxDist)
      (setq maxDist (multiply minDist i))
      (setq gDestination (random (sysFindObject gSource "T:populated;F;A;N:minDist;R:maxDist"))
      )
    )
  )
The target would still meet the minimum distance, but would be randomly chosen instead. In addition, the loop keeps the selection limited to the closest stations first, so it shouldn't randomly choose a very distant target for the mission, when plenty of closer ones are available. In addition, adding the “A” to the filter should keep the game from choosing a dead station (assuming I understand how what “A” means).
Dosgamer3
Closed Account
Closed Account
Posts: 95
Joined: Thu May 25, 2006 11:11 pm

One more thing on that.

Korolov kept sending me to escort a freighter from one Korolov Station to another. Which was boring with my Dual Turbolaser +100% and Yoroi S500, so I started escorting two freighters at the same time.

The point is, could you, George, keep Korolov from sending me to another of their stations? It's boring!!
The universe is illogical. Get over it.

-----------------------------------------

I cannot be held accountable for anything I say that offends you. I never intentionally offend anyone.
If I offended you, it was an accident and I am sorry.
User avatar
goat not sheep
Militia Captain
Militia Captain
Posts: 669
Joined: Fri May 19, 2006 8:36 pm
Location: ...
Contact:

Have you ever tried to do that 5000 mission to another korov?
Last edited by goat not sheep on Mon Dec 18, 2006 9:37 pm, edited 1 time in total.
>.<
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

goat not sheep wrote:Have u ever tryed to do that 500 mission to another korov?
Ah, such an intricate speller :)
tryed = tried
500 = 5000 (probably)
korov = Korolev
u = you

Oh, and I have, yes. The stations were really close together, too :)
User avatar
goat not sheep
Militia Captain
Militia Captain
Posts: 669
Joined: Fri May 19, 2006 8:36 pm
Location: ...
Contact:

There...edited. That's lucky. Everythime there's another korolev, they send me to the commonwealth...down and far far away.
>.<
Dosgamer3
Closed Account
Closed Account
Posts: 95
Joined: Thu May 25, 2006 11:11 pm

goat not sheep wrote:Have you ever tried to do that 5000 mission to another korov?
I don't remember...I think I did. But if I went back to do it now, my Heavy Ion Blaster +25% and Iocyrm Veil +70% would make it even more boring.
I'll check in another game, once I wreck the Iocyrm's blockade.
The universe is illogical. Get over it.

-----------------------------------------

I cannot be held accountable for anything I say that offends you. I never intentionally offend anyone.
If I offended you, it was an accident and I am sorry.
Post Reply