Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Reply to this topicStart new topic
> [RGSS]Event is facing?
Redd
post Nov 1 2012, 05:38 PM
Post #1


:<
Group Icon

Group: Revolutionary
Posts: 2,310
Type: Developer
RM Skill: Advanced




Is there a little scriplet someone could make that checks which direction the current event is facing? So that I can use it in a Conditional Branch?
I'm trying to make a "stealth kill" system (along with the Stealth/Detection Script) that makes it so that if you sneak up from behind someone you can use your equipped weapon to kill them sneakily. Problem is, there's only a "Player is facing" condition in Conditional Branch.
So what I'm asking for is, a script call that would determine which way the current event is facing (up, down, left, or right) so that you could assassinate them.

Credits will be given smile.gif Thanks!


__________________________
Go to the top of the page
 
+Quote Post
   
X-M-O
post Nov 1 2012, 06:40 PM
Post #2


Level 82
Group Icon

Group: Director
Posts: 6,347
Type: None
RM Skill: Undisclosed




What if you set the "character being assassinated" event to have a switch that if the player is within a certain area on the map that the event will detect the player?
If the event/character being assassinated is always in the same spot or always looking the same way, then you only need to detect if the player is in any location that would be a place where the event could detect the player.

If that makes sense.


__________________________
Go to the top of the page
 
+Quote Post
   
Redd
post Nov 1 2012, 08:20 PM
Post #3


:<
Group Icon

Group: Revolutionary
Posts: 2,310
Type: Developer
RM Skill: Advanced




The guard looks in different directions and some of them move though, so that would be quite cumbersome.
I could do variables, but I would have to have a different variable for each guard and that would not end up a happy time.


__________________________
Go to the top of the page
 
+Quote Post
   
stripe103
post Nov 11 2012, 02:06 PM
Post #4


PHP ERROR: Couldn't get value from UInteger. Value too large
Group Icon

Group: Revolutionary
Posts: 737
Type: Mapper
RM Skill: Intermediate




Don't know if you still need it, but I think you can do
CODE
$game_map.events[event id].direction

and it should return the direction. 2 for down, 4 for left, 6 for right and 8 for up.
Should be usable in an event.


__________________________

By Axerax

The rest of my sig



Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 06:47 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker