Simple Event Sensor
Authors: LiTTleDRAgo
Version: 1.10
Type: Add-on
Key Term: Misc Add-on
IntroductionIt'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)
DemoIf requested
ScriptHere (http://littledrago.blogspot.com/2011/09/rgss-simple-event-sensor.html)
InstructionsSet the event name to : <Sensor(RANGE)>
example :
<Sensor4>
If player is in event sensor range, Self switch D (default) will turned ON
CompatibilityShould compatible with anything
Credits and Thanks
Author's NotesIt's just a simple script, I'm not sure if I should apply the template or not
Enjoy ~
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)
like this (http://forum.chaos-project.com/index.php/topic,5756.0.html) ?
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.
update screenshot, configuration, and cross engined
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.
If you can't get your problem solved, try Heretic's implementation: http://forum.chaos-project.com/index.php/topic,13686.0.html
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.
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.
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.
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.