Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Advanced Targetting V2.8.1

Status
Not open for further replies.
':| I remeber seeing that .... >.< now. Thanks for answering kindly stupid questions you already answered -_- .*vanishes in poof of shame*
 
Trickster said:
I'm sure there is some way this script could fit in ;)
Well... have you seen any Samurai choosing his target randomly, or any sword attacking more than one enemy at once (ignore made-up Hiten Mitsurugi techniques ;) ) ? Maybe not...
Well, it might fit in with the 'OMG-a-non-realistic-part-in-my-game'-skills ^_^ But... Well, they're kinda single-targetting, too XD
 
BlueScope said:
Well... have you seen any Samurai choosing his target randomly, or any sword attacking more than one enemy at once (ignore made-up Hiten Mitsurugi techniques ;) ) ? Maybe not...
Well, it might fit in with the 'OMG-a-non-realistic-part-in-my-game'-skills ^_^ But... Well, they're kinda single-targetting, too XD

Hehe, I should probably make a script that would fit in your game XD
 
I just noticed that if the target dies or becomes untargetable, then no the skill/item/attack does not go through. The normal targeting system uses the next (enemy/ally) as a target if this occurs. Is there anyway to fix this for at least scop1 (one enemy) and scop3 (one ally)?

If not could you make it say something like 'Target was not found' when target no longer is targetable?
 
BlueScope said:
Well... have you seen any Samurai choosing his target randomly, or any sword attacking more than one enemy at once (ignore made-up Hiten Mitsurugi techniques ;) ) ? Maybe not...
Well, it might fit in with the 'OMG-a-non-realistic-part-in-my-game'-skills ^_^ But... Well, they're kinda single-targetting, too XD

Unless you consider Samurai Champloo unrealistic, then I guess you can't have an all range attack (Of course, using such an attack would have some kind of penalty on the body of the user). It just requires a lot of focus, not really speed

As far as the script goes, is the MP Cost going to increase with the single/all target switching?, and will damage be divided between the enemies.
 
Shadow Lich":2kdbwrt9 said:
I just noticed that if the target dies or becomes untargetable, then no the skill/item/attack does not go through. The normal targeting system uses the next (enemy/ally) as a target if this occurs. Is there anyway to fix this for at least scop1 (one enemy) and scop3 (one ally)?

If not could you make it say something like 'Target was not found' when target no longer is targetable?
Yes I noticed this as well hopefully this is fixed in the new version

@Twilight -- don't know haven't decided, I might do it like I did last time and split the damage

New Version Available

  1. Fixes Can't Find Target Bug?
  2. Now Works With the Method and Class Library
 
Another thing I noticed since I finanlly managed to get it into my project without errors (I forgot to chage the overide element ':| ) Normally for One ally it show's ally name and information at top. Noramlly for one enemy it shows Enemy Name. The script however shows one ally and One enemy respectively.

Can you fix it so that it shows Enemy/ally name? I'd hate for my enemy names to be only shown in the Beastiary (which I haven't decided on getting for my game).
 
Demo Updated (Thansk Prexus for pointing this out)

Fixes two typos I created

To Fix these errors yourself w/o the demo
Line 420 of Advanced Targetting needs to be this
Code:
          @target_battlers += $game_troop.existing_enemies

Line 463 of the same script needs to be this
Code:
            @target_battlers += $game_party.existing_actors
 
Hmm getting this now Trickster :#

Script 'Arrow_General' line 668: Type error occured. Cannont convert string into Array.

line:
battlers += "#{@scope.number} Random" if @random_arrow != nil

I'm getting this when selecting "one random ally", "one random enemy", and "Revive one ally".

Heal explosion doesn't seem to work right either... But it's not causing any errors. What's happening is that with the targeting that's selecting two (one that is next to each other) it selects one at first and then you have to move it over to select two. So when selecting that skill it's auotmaticlly being put in so there's no selecting so that's why it's only doing one instead of two. Also I think this deals along the same thing. When this is attacked to someone's normal attack and the first enemy dies it selects nothing and you have to move it over. I think I mentioned this error to you before the hack.
 
Raven The Dark Angel;115261 said:
Hmm getting this now Trickster :#

Script 'Arrow_General' line 668: Type error occured. Cannont convert string into Array.

line:
battlers += "#{@scope.number} Random" if @random_arrow != nil

I'm getting this when selecting "one random ally", "one random enemy", and "Revive one ally".

This bug is easily fixed, just change the line to this
Code:
    battlers << "#{@scope.number} Random" if @random_arrow != nil

Raven The Dark Angel;115261 said:
Heal explosion doesn't seem to work right either... But it's not causing any errors. What's happening is that with the targeting that's selecting two (one that is next to each other) it selects one at first and then you have to move it over to select two. So when selecting that skill it's auotmaticlly being put in so there's no selecting so that's why it's only doing one instead of two. Also I think this deals along the same thing. When this is attacked to someone's normal attack and the first enemy dies it selects nothing and you have to move it over. I think I mentioned this error to you before the hack.

Well I created it that way, but I can go back a move the starting position so that it is always starts out on the number of targets it selects, but I will keep the keep moving left/right and choose the leftmost/rightmost enemy feature

Edit if you want to change it that way then do this

Find this line in Arrow_General#setup_index
Code:
    # Setup index
    @index = @scope.side_by_side? ? 1 - @scope.number : 0

and replace it with this
Code:
    # Setup index
    @index =  0

Untested but it should work reply if it gives you any trouble
 
Long time no post lolz(me), I found an error when using your multi-attack script along with this one:
Advanced_Targeting, line 62, scope = object.scope(true)
"undefined method 'scope' for nil:NilClass"
if I make it recognize the object variable, it gives me this error:
MultiAttacks, line 8, times = $data_weapons[attacker.weapon_id].hits if attacker.is_a?(Game_Actor)
"undefined method 'hits' for nil:NilClass"

I don't know what's giving this error, I'm kinda confused o0
PS: I tested it on the test project, and it have the same reaction.
 
Ok, I'll look into it when I get the chance, shouldn't be much of a problem using both of those scripts together, It may be something odd I did in one of them that's causing your error.
 
I didn't get an errors this time but some funny things came up when I was testing it out.

When using the death roulette thing for some reason it doesn't always kill the enemy but rather takes a large chunk of HP out of him. Like when the ghost was full health and I did it... it came out to be 12746/99999 instead of killing him. Same problem with all the roulette skills.

The target hp 0 ally function doesn't seem to be doing anything. I'm not sure if you actually set the skill to do anything at all but right now it does nothing.

Five battler roulette says it targets at most five battlers but every time I did it, it always targeted five. Maybe I didn't try it out enough times if it's random but that might be something to look into.

And lastly somtimes the "target all allies" skill that targets the enemy too, will hit the characters instead of heal them like you have the skill set to. Not sure why it's doing that. Might be a mistake on my part since it only happened twice.

Hope that helps ya out. :#
 
hey...can u send me a edited version of this to me??
i just need the function that u can select certain spells(not regular atks) so that when u press up it will select all...and can u make it so u dont need sdk? thats all...appreciate it
 
ok, i added your script, sdk, and the method library
but...it only works in battle test...it says undefined target_type when i try to atk in regular mode. how come?
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top