Altair

Villager
Member
Joined
Apr 16, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
N/A
Hey :)

i have a Problem with the Falcao ABS Script.
https://falcaorgss.wordpress.com/category/pearl-abs-liquid/

I have the Option Tool Through = false
"- Tools go through walls, trees, rocks etc?"

Actually, the projectile should not go through the wall, but hit the enemy. However, he does not hit the enemies either.
I've tried this solution so far: https://www.rpgmakercentral.com/top...collision-fix-for-falcao-pearl-abs-liquid-v3/

Unfortunately did not bring the desired effect. Maybe someone here has an elegant solution to the problem?
Thank you for your attention.

Best Regards
Ben
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,188
Reaction score
839
First Language
Hungarian
Primarily Uses
RMVXA
You could try this little script:
Code:
module ToolRestrict
 
  # Add any impassable region IDs for tools here.
  Regions = [40]
 
end

class Projectile < Game_Character
 
  def passable?(x, y, d)
    return false if tool_region_forbid?(x, y, d)
    return super(x, y, d)
  end
 
  def tool_region_forbid?(x, y, d)
    case d
    when 1; region = $game_map.region_id(x-1, y+1)
    when 2; region = $game_map.region_id(x+0, y+1)
    when 3; region = $game_map.region_id(x+1, y+1)
    when 4; region = $game_map.region_id(x-1, y+0)
    when 5; region = $game_map.region_id(x+0, y+0)
    when 6; region = $game_map.region_id(x+1, y+0)
    when 7; region = $game_map.region_id(x-1, y-1)
    when 8; region = $game_map.region_id(x+0, y-1)
    when 9; region = $game_map.region_id(x+1, y-1)
    else;   region = 0
    end
    return ToolRestrict::Regions.include?(region)
  end
 
end
You should keep the tool's "through" setting on true, and block any tiles you want with the regions you enter into the script settings instead.
 

Altair

Villager
Member
Joined
Apr 16, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
N/A
Wow... Really great, if it could always be so easy :biggrin: Many thanks!
Incidentally, I'm testing your Falcao bug fix right now. I think it's good that there are still people like you doing that.
 

KingHazeel

Veteran
Veteran
Joined
Jul 5, 2018
Messages
125
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Is it possible to set tools that ignore this and still go through? I.e. you want most of your tools not to go through, but you have a couple "ghost attacks" that are meant to go through walls?
 

Latest Threads

Latest Profile Posts

So I just got back from SeaWorld and I'm back to working on my game. I'm stuck on Shadowstar, mainly due to needing two more princesses... I have all the canon and toy princesses, plus Sunset Shimmer just for kicks. I decided not to include Cadence since this isn't in that era. But... I'm going to have to design two OCs now.
I'm completely missing on this site :kaodes: How's everybody doing lately?
3dlm3XK.jpg
I'm looking at/working through a simple game tutorial. Town, dungeon, boss; town, dungeon, boss; etc. (Thanks, Yanfly!) I'm itching to make something complex but experience (and past disappointment!) tell me to go slow and learn.

Rome certainly wasn't built in a day. 〜( ̄▽ ̄〜)
SF_People1_2 added!
index.php

Forum statistics

Threads
109,180
Messages
1,042,777
Members
141,674
Latest member
idleberry
Top