How do I get the Tileset ID of the current map?
I evented a time, night/day, calendar, weather system which runs as a common event. The system works perfectly fine, but I wanted an easier way to check whether or not the player is indoors. The idea is, if the current map is using the Interior or Dungeon tiles, my Indoors? switch is flipped. At the moment, I'm using an array of IDs designated as interiors(which is probably a better idea), but I'd still like to know how to do this.
Did you read the error they were returning?
You don't have them in a class or method, which means $game_switches doesn't even exist when you're trying to do that.
To turn on switches when the game begins, people usually just add a Control Switches command in an autorun/parallel event on the first map, that then turns on a self switch and add a second page conditioned by that self switch. You don't have to resort to scripts to do that.
And if you're doing events, you don't need to use a script call to change a switch.
Start a new thread with your question (as it's not about script calls), explain what you're trying to achieve, and then show us your events as you've got them set up.
Ok. I didn't think that this was worth its own thread so i refrained from starting a new one.
Having temporarily increased the MHP of an actor, I need a script call which will remove the extra HP when the increase is removed.
What happens is that the MHP is reduced, but the extra HP the character had remains, so the status page would show something like 221/203 (or whatever, I have no way of knowing what the figures will be as it happens repeatedly throughout the game). Once the character is damaged in battle, the extra is lost, but he goes into battle with that bonus still present. I did think of using a variable to store the MHP before the bonus is applied, but the player might level up between then and the time for the bonus to be removed, so that won't work.
I'm not sure that description is very clear, but it's the best I can do. Sorry if it's a bit vague.
Thanks.
The increase is both added and removed via your dynamic features script. Now not on my computer for several hours but I'll test these as soon as I can.
Thanks
Ah, okay - so you've got a script call in there somewhere. Just adding one of those commands on the next line ought to do it 🙂
Both suggestions give the following error message
Game_Interpret line 1411: NameError occurred
undefined local variable or method 'a' for
#<Game_Interpreter:0x8b1c8147>
The context is the series of script calls from your dynamic features script which remove features, specifically this one
remove_feature🙂actor, 1, 😛aram, 0, 1.05)
It's not in battle, it's when the player changes maps where the weather changes, as this is being used to create geomancy attributes. A common event is called to either add or remove features as needed.
EDIT
Using the addition, plus the first option, works, so my system is back in operation.
Thank you.
That brings up a NoMethodError
undefined method 'hp' for #<Game_Actors
Is it possible to use message codes or an equivalent within a message box via scrip call? I want to color some text.
Just for example:
$game_message.background = 1
$game_message.position = 0
$game_message.add("Not enough \C[6]Spirit\\C[0] or \C[6]Mana\\C[0]!")
This, would of course, simply crash the game.