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!
———

> [RGSS]Event is facing?
Redd
post Nov 1 2012, 05:38 PM
Post #1


:<
Group Icon

Group: Revolutionary
Posts: 2,327
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
   
 
Start new topic
Replies
stripe103
post Nov 11 2012, 02:06 PM
Post #2


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

Group: Revolutionary
Posts: 740
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
   

Posts in this topic


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: 18th June 2013 - 11:53 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker