Issue with RTAB and battle event systems...

Started by samsonite789, November 06, 2009, 10:44:00 pm

Previous topic - Next topic

samsonite789

I am having a bit of a strange problem with RTAB and I'm not sure how to solve it...

So, I'm using battle event systems for certain kinds of skills, such as regeneration or doom.  I've tried various scripts for those, but they don't work with RTAB.  Using event systems DOES work, but there's a catch.  I'll explain...

So, for Regen, I have an event system that checks each turn (Span: Turn) whether or not each character has the state [Regen] inflicted.  This state is "inflicted" using the Regen skill, of course.  I tried setting the condition for the event to "Don't Run" but for some reason it doesn't work.  So, I set a switch (RegenUsed) to ON in a common event called when Regen is cast, and the event runs if RegenUsed is ON.  It works: the character regenerates X hp every turn when they have regen. 

However (and here is my problem), if the state Regen is inflicted, the command window redraws every time it's a new turn.  This is the same for Doom, Auto Life, etc.  The problem with the command window redrawing is that it resets the cursor to the top command which will get really annoying really fast when you're in the middle of a fast-paced battle and BOOM the cursor resets each turn. 

Does anyone have any idea how I can fix this irritating problem?

Blizzard

Which Doom/Auto-Life/Regen scripts are you using? Have you tried the one from Tons of Add-ons yet?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

samsonite789

I'm actually not using any scripts for them.  I've tried the ones in Tons of Addons, but they just don't work.

The problem I'm having is with the command window re-drawing and setting the cursor back to the top option every time the event (which has a span of Turn) is re-iterated.  Since RTAB keeps track of "turns" based on number of actions taken, I'm guessing that the problem is a conflict of interests between RTAB and the event system.  However, I'm not knowledgeable enough at scripting to know exactly how to circumvent the RTAB script resetting the command window each time an event is executed (such as a Regen event).

To clarify, the Regen system I'm using is simply an event system that detects if a player's state is Regen.  It does this every turn in the battle, and if their state IS Regen, then it heals them a little bit.  And it also draws the command window, which I don't want it to do.