Author Topic: [XP][VX][VXA] Simple Event Sensor  (Read 10824 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
[XP][VX][VXA] Simple Event Sensor
« on: February 21, 2011, 02:41:25 PM »
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

  • Event Sensor

Screenshots



Demo

If requested

Script

Here

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

  • LiTTleDRAgo

Author's Notes

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

Enjoy ~
« Last Edit: April 27, 2012, 06:22:47 AM by LiTTleDRAgo »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Simple Event Sensor
« Reply #1 on: February 22, 2011, 12:29:09 AM »
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)

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: [XP] Simple Event Sensor
« Reply #2 on: February 22, 2011, 12:35:45 AM »
like this ?
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline SBR*

  • Chaos User
  • ******
  • Posts: 1195
  • LV: -7
  • Gender: Male
    • View Profile
Re: [XP] Simple Event Sensor
« Reply #3 on: February 23, 2011, 09:07:40 PM »
like this ?

Lol. Little_Drago, add a hearing-thing and it's original :D.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #4 on: April 18, 2012, 09:19:21 AM »
update screenshot, configuration, and cross engined

Offline Kiwa

  • Transcended Spirit
  • ***
  • Posts: 155
  • LV: 4
    • View Profile
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #5 on: April 17, 2014, 10: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.
« Last Edit: April 17, 2014, 10:26:39 AM by Kiwa »

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3206
  • LV: 387
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #6 on: April 17, 2014, 05:03:24 PM »
If you can't get your problem solved, try Heretic's implementation: http://forum.chaos-project.com/index.php/topic,13686.0.html



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline Kiwa

  • Transcended Spirit
  • ***
  • Posts: 155
  • LV: 4
    • View Profile
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #7 on: April 17, 2014, 05:52:12 PM »
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.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 776
  • LV: 34
    • View Profile
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #8 on: April 18, 2014, 12:14:01 AM »
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.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline Kiwa

  • Transcended Spirit
  • ***
  • Posts: 155
  • LV: 4
    • View Profile
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #9 on: April 18, 2014, 05:41:32 AM »
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.
« Last Edit: April 18, 2014, 06:56:27 AM by Kiwa »

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 776
  • LV: 34
    • View Profile
Re: [XP][VX][VXA] Simple Event Sensor
« Reply #10 on: April 19, 2014, 12:35:56 AM »
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.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)