Again...
3 posters
Page 1 of 1
Again...
Sorry for requesting so much...
@~@
I need a script or script modification to:
So the player would be @ and events would be # :
#-@-#
Now if I wanted a range of 2, to detect 'enemy' in the events name,
I would be ableto scan them
#@--#
Here I should only be able to detect the left most enemy
I would like to do with the selected events:
@~@
I need a script or script modification to:
- this time I would like to check if an event was in an area around the player and do something with it:
So the player would be @ and events would be # :
#-@-#
Now if I wanted a range of 2, to detect 'enemy' in the events name,
I would be ableto scan them
#@--#
Here I should only be able to detect the left most enemy
I would like to do with the selected events:
- erase them
- I can't think of what else right know...
yami- Apprentice
- Posts : 127
Gald : 425
Stats
Cookies: 0
Re: Again...
Haha, I think you don't need a script... You can just download Kazeko and the Midnight Guild and copy the Common Event used.
Re: Again...
that won't work, it would cause a lot of lag and be very messy.
I would need a common event for every enemy in meh game
I would need a common event for every enemy in meh game
yami- Apprentice
- Posts : 127
Gald : 425
Stats
Cookies: 0
Re: Again...
Here you have:
Deletes all events with X name in X range from the player.
Use the event script call:
name is the name of the events you are looking for. The event will be deleted if its name includes this specified the name. Case sensitive.
range is the amount of tiles to look for the event, like your example in the first post.
Enjoy. Me get cookies.
Deletes all events with X name in X range from the player.
- Code:
class Game_Map
def yami_events_deletion(name,range)
for i in 1..@events.size
player = $game_player
if (@events[i].x >= (player.x - range)) && (@events[i].x <= (player.x + range)) &&
(@events[i].y >= (player.y - range)) && (@events[i].y <= (player.y + range)) &&
@events[i].event.name.include?(name)
@events[i].erase
end
end
end
end
Use the event script call:
- Code:
$game_map.yami_events_deletion(name,range)
name is the name of the events you are looking for. The event will be deleted if its name includes this specified the name. Case sensitive.
range is the amount of tiles to look for the event, like your example in the first post.
Enjoy. Me get cookies.
Re: Again...
GIBS COOKIEZ
Thank you. Omega, you are a scripting God
Thank you. Omega, you are a scripting God
yami- Apprentice
- Posts : 127
Gald : 425
Stats
Cookies: 0
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|