This is a massive gravedig, but someone messaged me on discord about fixing this script to be compatible with caterpillar ghosts. I updated the script and put it in it's own thread here: https://forum.chaos-project.com/index.php/topic,16211.0.html
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#--------------------------------------------------------------------------
# wall?
# char - the character
# x - x-coordinate
# y - y-coordinate
# Checks if between the char and the target is a "wall". Walls prevent
# perception.
#--------------------------------------------------------------------------
def wall?(char, x, y)
# abort instantly if not using this option
return false if Config::WALL_TAGS.size == 0
# get pixel movement rate
pix = $BlizzABS.pixel
# get coordinate difference
dx, dy = (x-char.x)/pix, (y-char.y)/pix
# if x difference is not 0 and x difference is greater
if dx != 0 && dx.abs >= dy.abs
# return any wall tile between
return (0..dx.abs).any? {|i| Config::WALL_TAGS.include?($game_map.
terrain_tag(char.x/pix+dx.sgn*i, char.y/pix+(i.to_f*dy/dx.abs).round))}
# if y difference is not 0 and y difference is greater
elsif dy != 0 && dy.abs > dx.abs
# return any wall tile between
return (0..dy.abs).any? {|i| Config::WALL_TAGS.include?($game_map.
terrain_tag(char.x/pix+(i.to_f*dx/dy.abs).round, char.y/pix+dy.sgn*i))}
end
# no wall between
return false
end
#Kills %Players
1 10%
2 20%
3 30%
4 40%
5 50%
6 60%
7 70%
8 80%
9 90%
10 100%
i product term
1 9/10
2 8/9
3 7/8
4 6/7
5 5/6
6 4/5
7 3/4
8 2/3
9 1/2
10 0/1
#Kills %Players
1 10%
2 19%
3 27%
4 34%
5 41%
6 47%
7 52%
8 57%
9 61%
10 65%
20 88%
30 96%
40 99%
#Kills %Players
1 0.1%
10 1%
100 10%
1000 63%
2000 86%
3000 95%
#Kills %Players
1 10%
2 28%
3 50%
4 70%
5 85%
6 94%
7 98%
8 99.6%
9 99.96%
10 100%
#Kills %Players
1 0.2%
2 0.6%
3 1.4%
4 2.9%
5 5.9%
6 12%
7 23%
8 42%
9 71%
10 100%