RPG Maker Forums

A bit thrown by this one, 'specially since the exact same lines worked peach-keen in a parallel process common event.

I'm setting up save points, and that a bedroll or tent must be used either there or on the overworld map.  The trouble comes when the item permissions when approaching or stepping on the save point.

Maybe what I've punched up would be helpful in diagnosing what the crap went awry.  Having it recognize map types is going without a hitch, using this script (my apologies for the lack comments).

class Game_Map
  alias steak_wants_map_types_declared setup
  def setup(map_id)
    steak_wants_map_types_declared(map_id)
    $tell_steak_about_the_map = ["nope", "nothing"]
    @map.note[/<(Overworld|Level|Dungeon|SaveRoom|Cutscene), (Safe|Unsafe)>/]
    $tell_steak_about_the_map[0] = $1
    $tell_steak_about_the_map[1] = $2
  end
end
I had a common event set up to handle what items should be allowed to work on which map, as well as an exit spell (courtesy of Hime's Warp Stone script: http://forums.rpgmakerweb.com/index.php?/topic/4065-warp-stone/), and all of this seemed to work fine, too.  Switched out tags on the maps, and things were going okay.  That script:

script.png
Now this was where the trouble came: setting up the save point.  I placed events around the save point with the script, so that the bedroll and tent couldn't be used off the save point:

$game_items[33].occasion = 3

$game_items[34].occasion = 3

And this on the save point itself, so that they could be:

$game_items[33].occasion = 2

$game_items[34].occasion = 2

EDIT: I should specify, both sets of lines were set in common events, that were called for by a step-on triggered event.

And while these lines were there, it threw me this error.

error.png
I'm confused; the exact same lines worked fine in the common parallel process.  Does anybody know what went awry?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top