[SCRIPT] Smart Targets hotkeys (v1 2-9-07)

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

[SCRIPT] Smart Targets hotkeys (v1 2-9-07)

Post by Klyith »

Smart Targets - version 1
Download: Zip file :: Spk soon

Smart Targets has two functions that upgrade parts of the standard X3 targeting system. All you need to do is bind them to hotkeys / joystick buttons and use for easier targeting!

Smart Cycle - A context-dependent cycle through targets command. See the readme for a detailed table of target context vs cycle population.
Note: The behavior is not always perfect, because the cycle will get "trapped" from the more general populations to more specific ones. For example, if you start cycling all sector ships and come to one that is in a formation, it will be stuck cycling that formation until you manually target something else.

Auto Lock-On - Automatic targeting of enemies when in combat. When you destroy your targeted enemy, the nearest enemy in range will be targeted. This avoids the normal target-seeking behavior after killing something, which I find targets asteroids as often as it targets enemies.
The hotkey for this is an on/off toggle.
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Re: [SCRIPT] Smart Targets hotkeys (v1 2-9-07)

Post by Gazz »

Klyith wrote:Auto Lock-On - Automatic targeting of enemies when in combat.
I was too lazy to write an X3 script with that stupid interface so I told my macro program:

#IfWinActive, ahk_class X3
F8::Send, t{End}

Hehe
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

Re: [SCRIPT] Smart Targets hotkeys (v1 2-9-07)

Post by Klyith »

Gazz wrote:I was too lazy to write an X3 script with that stupid interface so I told my macro program:

#IfWinActive, ahk_class X3
F8::Send, t{End}

Hehe
Ah, but you see, my script doesn't need a keypress of any sort. You have an enemy targeted, you kill it, and *ding!* the next (nearest) enemy is now your target. Totally automatic!

It is not a replacement for the slow "nearest enemy" function... though it does IMHO make it totally obsolete. But more to the point you don't have to even think about targeting while in combat. Of course, you can still manually change targets if the auto lock-on gives you an m5 because it was nearest, when what you need to focus on is the M6 pounding your butt.
Try it out, I really think this was an inspired scripting hack, if I may pat myself on the back.


BTW, autohotkey rocks... I'd never tried using it to send input to X3, what with the generally funky keyboard problems it has.
Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G »

Thanks for pointing out autohotkey Klyith, I've been looking for a decent freeware solution like that for a long while. And thanks, as always, for your continued excellent scripting efforts.
User avatar
jocan2003
Posts: 629
Joined: Tue, 6. Mar 07, 17:48
x4

Post by jocan2003 »

great script, but myself i prefer using the old, track target, target nearest and using gravidar to pick my targets :)

if there is to much M5 i use garvidar to find the nearest one of what i want to shoot, align my ship then track target :) it give a sense of realism whnen using it that way since it take one or 2 sec to tarck a target ( sending the information to the ship computer to send the target predicator aim *more RP* )
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

The Download link in the first post is pointing to Neverland.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
lostsoulzeffigy
Posts: 46
Joined: Fri, 10. Oct 08, 21:51
x4

Post by lostsoulzeffigy »

Yes, please update DL link. This script/mod/addon looks very useful

S.T.A.L.K.E.R. is another game i play full of user mods and a lot of modders use http://www.filefront.com/ for hosting their mod files...
stevehamil
Posts: 1
Joined: Wed, 17. Jan 07, 03:21
x3

Post by stevehamil »

this would be very handy it is so annoying when in battle kill one cycle next target and asteroid in the middle of a whole bunch of unfriendlies

thank you for this

Return to “X³: Reunion - Scripts and Modding”