Jump to content


Photo

Changing an event's priority and action trigger


  • Please log in to reply
4 replies to this topic

#1 golbez

golbez

    Member

  • Early Adopter
  • 23 posts
  • Primarily UsesN/A

Posted 15 April 2012 - 07:09 PM

Is there a simple event script I can run that will change the current event's priority and/or action trigger?

edit: and of course I forget to mark the topic like the big stickied thread says to. sorry :(

I'm using Ace

Edited by golbez, 15 April 2012 - 07:10 PM.


#2 Ronove

Ronove

    ♠ ♠ ♠

  • Early Adopter
  • 407 posts
  • LocationOver the moon
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 15 April 2012 - 07:17 PM

You can use switches and pages. If you want to change the event's priority and action trigger, have one page set to the first event's priority and action trigger, and on the second page have what you want the new event's priority and action trigger but have its conditions set to a switch being flipped on. And whenever you want to change those two parts, just flip a switch.

Projects:
SSPBanner.png HWSbanner.png eaG4i3c.png
Developer's Blog:
ronoveofthestars.png


#3 golbez

golbez

    Member

  • Early Adopter
  • 23 posts
  • Primarily UsesN/A

Posted 15 April 2012 - 08:20 PM

My bad, I should've been more specific; I need to do this on a single page. The event system I have set up isn't going to be very friendly towards any additional pages.

#4 PK8

PK8

    Close the window.

  • Members
  • 455 posts
  • LocationStanding on the backs of angels
  • Primarily UsesRMXP
  • First LanguageEnglish

Posted 16 April 2012 - 01:33 AM

You'll have to do something like this in a script call:
$game_map.events[id].instance_eval("@priority_type = value")
* id being the event id of course (or you could use @event_id to mean "this event")
* Value: 0: Below, 1: Same, 2: Above

But if you're changing their priority type through Move Route, you can use this:
instance_eval("@priority_type = value")
Single-handedly putting an end to the monopolisation of the scripting forums. Proud member of The Underground and JIFZ-NFPZ.
pk8.png fb.png tw.png yt.png

Have you ever wanted to attach switches, variables, and various information onto your Actors, Events, Classes, Skills, Armors, Items, Weapons, and Skills? Now you can. The Self Data Suite -- The Most Extensive Set of Scripts Around (also available for RPG Maker XP and VX)

#5 golbez

golbez

    Member

  • Early Adopter
  • 23 posts
  • Primarily UsesN/A

Posted 16 April 2012 - 11:44 AM

And going off of that I figured you could change the trigger type through a move event as well with: instance_eval("@trigger = value")

This is awesome, thanks a bunch!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users