Author Topic: [XP] Auto-Targeting for Blizz-ABS  (Read 18857 times)

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Auto-Targeting for Blizz-ABS
« on: July 26, 2009, 08:57:49 PM »
Auto-Targeting for Blizz-ABS
Authors: Blizzard
Version: 1.11b
Type: Blizz-ABS Plugin
Key Term: Blizz-ABS Plugin

Introduction

It will allow you to set a target for the actor before using a skill or item that requires the selection screen.

This script is to be distributed under the same terms and conditions like the script it was created for: Blizz-ABS.

Features

  • when targeting an enemy, every skill and item that would normally call the selection screen now execute on that target immediately
  • toggle it on and off
  • cycle through targets
  • optional auto-facing of target

Screenshots

(click to show/hide)

Demo

N/A

Script

Just make a new script above main and paste this code into it.
(click to show/hide)

Instructions

In the script in the first comment.

Compatibility

Requires Blizz-ABS to work.

Credits and Thanks

  • Blizzard
  • Thanks to Subsonic_Noise for requesting this.

Author's Notes

Keep in mind that this plugin comes RIGHT UNDER Blizz-ABS. This script was done on request and is not fully supported by me as my other scripts are.

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: December 29, 2010, 02:17:54 AM by game_guy »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #1 on: July 26, 2009, 08:59:23 PM »
Cool
I'll try it out. :O

Subsonic_Noise

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #2 on: July 26, 2009, 09:01:23 PM »
Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks. Thanks.

I'll try it, too.

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #3 on: July 26, 2009, 09:37:58 PM »
There was a slight problem. I improved and updated the script.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline winkio

  • Epiq
  • Administrator
  • Guardian of Chaos
  • *****
  • Posts: 4506
  • LV: 199
  • Gender: Male
  • I am lying.
    • View Profile
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #4 on: July 26, 2009, 11:12:11 PM »
something tells me that with Blizz's awesome AI, this would really screw you over if you were fighting four or more enemies at once.  Good for small groups of enemies anyways though.
« Last Edit: July 26, 2009, 11:30:52 PM by winkio »

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #5 on: July 26, 2009, 11:28:43 PM »
Level++ blizz for this this will go great with my battle dome script when i get all the problems worked out
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline legacyblade

  • Pretzel Man
  • Moderator
  • Chaos User
  • ***
  • Posts: 1838
  • LV: 84
  • Gender: Male
  • There is a fate worse than hell
    • View Profile
    • SpencerConrad.com
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #6 on: July 27, 2009, 01:55:16 AM »
This looks like it can be a freaking awesome script. But I do agree with winkio, as the targeting system would get a bit whacky if there were too many enemies nearby. But then again, that's why it's like Zelda's Z targeting system, you only use it when you need to. It should make a great addition to any game.

Axerax

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #7 on: July 27, 2009, 02:28:49 AM »
I was going to suggest making the toggle button select the nearest enemy, as long as the button is held, just like Z targeting in Zelda. Once released it erases the targeting allowing for player movement. This will help for rooms with lots of enemies and crowding. You'd have to make the Z-Targeting acquire the enemy through an arc direction in front of the player instead of in all around, as well limit how many tiles ahead it can see, cause i've been targeting stuff way off my field of view.

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #8 on: July 27, 2009, 09:48:31 AM »
Honestly, I was too lazy to implement the target selection of the closest enemy. As for the rest of the target selection, only enemies visible in the screen are targeted with the current version. Of course, that all can be edited. I was just too lazy. :P
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Subsonic_Noise

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #9 on: July 27, 2009, 11:24:08 AM »
Uhm, Blizz, there is a problem: It works perfectly except that the targeting screen still comes up o.O

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #10 on: July 27, 2009, 11:50:38 AM »
Yes, it comes up when you have no autotarget. That's not a bug.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Subsonic_Noise

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #11 on: July 27, 2009, 11:52:05 AM »
No, even when I have one. I'll make a video if you don't believe me XD
Can I somehow also disable it when I have no autotarget, btw?

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #12 on: July 27, 2009, 12:20:42 PM »
Look:

Code: [Select]
if result && $BlizzABS.autotarget != nil && $game_temp.select_data != nil
  ...
  $game_temp.select_data = nil
end

"If the skill can be used and there is a target and selection screen should be displayed, remove the selection screen display request."
The selection screen can't appear if you have an autotarget. It can't. Whatever happens afterwards or before that, it can't appear when there is an autotarget.

If you want the selection screen to never appear, move the "$game_temp.select_data = nil" below that "end". There are two lines where you have to do this.
« Last Edit: July 27, 2009, 12:21:56 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Subsonic_Noise

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #13 on: July 27, 2009, 12:44:34 PM »
But it does open the targeting scene when I have an enemy selected. I made a video but I can't upload it because of my shitty internet. >.< So you'll have to believe me. Or could I upload it as an attachment? That alwayws worked.

Ok, just to make this even stranger, it just does it for 1 skill o.O
My other skill works without a problem.
« Last Edit: July 27, 2009, 01:16:19 PM by Subsonic_Noise »

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #14 on: July 27, 2009, 01:18:36 PM »
What is the skill? Which type is it? What is the target scope?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Subsonic_Noise

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #15 on: July 27, 2009, 01:24:36 PM »
It's a homing skill. Direct skills work without problems. This one worked one out of ~50 times o.O

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #16 on: July 28, 2009, 09:15:09 AM »
That's very weird. Homing skills were pretty much the ones I tested this one. :/ I'll look into it.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Kagutsuchi

  • Ethereal Devastator
  • ****
  • Posts: 468
  • LV: 2
  • Gender: Male
  • The God of .. eating souls?
    • View Profile
    • University Hosted Web Page - In Norwegian
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #17 on: August 02, 2009, 12:58:47 AM »
Only issue I have discovered so far is that if you have any enemies which requires a switch or a variable to be active, the game tends to target them rather than enemies that are already moving, so to speak. Somewhat annoying.
« Last Edit: August 02, 2009, 01:01:02 AM by Kagutsuchi »

Axerax

  • Guest
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #18 on: August 18, 2009, 12:31:31 AM »
Only issue I have discovered so far is that if you have any enemies which requires a switch or a variable to be active, the game tends to target them rather than enemies that are already moving, so to speak. Somewhat annoying.

I have this problem too. I've been waiting for a fix on this for a bit now.

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Auto-Targeting for Blizz-ABS
« Reply #19 on: August 18, 2009, 10:11:09 AM »
I'll see if I can find some time today to fix it then.

EDIT: Ok, I did "fix" something, but I don't think it's related to this. I never had problems with targeting enemies that are turned off by a switch or a variable, though. :/
Try it out, maybe I did fix what was causing your problems.
« Last Edit: August 19, 2009, 09:45:52 AM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.