Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: LiTTleDRAgo on February 21, 2011, 07:41:25 am

Title: [XP][VX][VXA] Simple Event Sensor
Post by: LiTTleDRAgo on February 21, 2011, 07:41:25 am
Simple Event Sensor
Authors: LiTTleDRAgo
Version: 1.10
Type: Add-on
Key Term: Misc Add-on



Introduction

It's simple, if your character's distance with an event, that event self switch will turned on


Features




Screenshots

(http://i.imgur.com/6wfGJ.gif)


Demo

If requested


Script

Here (http://littledrago.blogspot.com/2011/09/rgss-simple-event-sensor.html)


Instructions

Set the event name to : <Sensor(RANGE)>
example :
           <Sensor4>

If player is in event sensor range, Self switch D (default) will turned ON


Compatibility

Should compatible with anything


Credits and Thanks




Author's Notes

It's just a simple script, I'm not sure if I should apply the template or not

Enjoy ~
Title: Re: [XP] Simple Event Sensor
Post by: G_G on February 21, 2011, 05:29:09 pm
Suggestion. Add a \dswitch tag for event names. and a \drange tag. Again this way it won't do it for all events. I can easily see someone using the "D" switch in a autorun event or something, then the player gets close to it and bam, problems all over.
\dswitch (detect switch)
\drange (detect range)
Title: Re: [XP] Simple Event Sensor
Post by: nathmatt on February 21, 2011, 05:35:45 pm
like this (http://forum.chaos-project.com/index.php/topic,5756.0.html) ?
Title: Re: [XP] Simple Event Sensor
Post by: SBR* on February 23, 2011, 02:07:40 pm
Quote from: nathmatt on February 21, 2011, 05:35:45 pm
like this (http://forum.chaos-project.com/index.php/topic,5756.0.html) ?


Lol. Little_Drago, add a hearing-thing and it's original :D.
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: LiTTleDRAgo on April 18, 2012, 03:19:21 am
update screenshot, configuration, and cross engined
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: Kiwa on April 17, 2014, 04:16:28 am
Does this sensor not work with the "List of event commands" ? on the right side of the Edit Event window?

Its just that i couldn't get it to work with anything other than the autonomous movements.
i couldn't execute event commands with parallel process, autorun, player touch, ect...
I tried interacting directly with the event by making it have a text box pop up but it wouldn't let me interact at all. it was on its own mission all alone lol.
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: KK20 on April 17, 2014, 11:03:24 am
If you can't get your problem solved, try Heretic's implementation: http://forum.chaos-project.com/index.php/topic,13686.0.html
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: Kiwa on April 17, 2014, 11:52:12 am
I'm really not sure what I was doing wrong.. i must be eventing it wrong. I'll Give heretics a run tomorrow. I'm about to crash. I'll let you all hear my results I'm sure lol....

Thanks~
Cheers.
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: Heretic86 on April 17, 2014, 06:14:01 pm
There are two reasons I can think of why either Sensor wont work.

#1  Order of Scripts

If you have another script below either Sensor script that overwrites Event Update method, neither Sensor will trigger a Page Change.

#2  Event Page Configuration

Each Event can have multiple Pages, but on each of those Pages, the Conditions need to be different.  IE, on Page 1, there are No Conditions, but on Page 2, Self Switch D should be checked as a Page Condition.  Thats the simplest form of a Sensor with both scripts.  As an experiment, try putting in different Graphics on each page.  That way you can at least tell that the Event Page changes, then you can move on to Triggers not working.
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: Kiwa on April 17, 2014, 11:41:32 pm
I've tried absolutely everything I can imagine.. not sure why it wont work.

<Sensor4>
is what i'm using in the name.
I've placed it above BABS under BABS.
I Removed "BlizzABS Battle Music by Nathmatt" in case it was interrupting.
I've changed events to action button, parallel process, autorun.
I've placed Self switch triggers in the event command box and nothing..


I currently have page 1 as a dog.. page 2 is a cat with conditions self switch D checked.
The script says default switch is 'D' so I have no idea why its not working.

If i place a message in the event command box. for page1 i can talk to it by action button.
if i do the same for page2. no such luck.

***EDIT***

I think it disagrees with BABS.
I started a new project with only BABS i was having the same trouble.
I removed BABS and it worked just fine.
Title: Re: [XP][VX][VXA] Simple Event Sensor
Post by: Heretic86 on April 18, 2014, 06:35:56 pm
Being that this may be related to the nature of BABS, it might be better to ask LittleDrago to create a version of his Sensor script that is intended as an Addon to Blizz-ABS since it doesnt appear to function as expected.