Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Battle Event Trouble
Scathach
post Dec 11 2011, 07:30 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




Alright, so this is problem I'm having with trying to make a human enemy seem at least remotely intelligent. Namely, the player is guaranteed to have a buff at this stage so I've given the opponent a means of countering that buff. It's set so that if a turn ends with the buff in place, it should trigger an event that would have the enemy counter it but that's where the problem is. It either only triggers on the first turn, or if I seem to fix that and get it to trigger on any turn it then triggers on every subsequent turn because it's not ending itself properly somehow. I feel like I'm just working in circles at this point since I can't seem to get it to do anything but those two things.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 11 2011, 07:36 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Can you post a screenshot of your event pages?


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 11 2011, 07:42 AM
Post #3


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




Yeah sure;

Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 11 2011, 07:54 AM
Post #4


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Okay. First, when you want an event page to be triggered every turn, don't use Battle, but Turn as a span. Also, you need just one page. Like this:



On a general note, self-switches are more designed to field use rather than battle use.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 11 2011, 08:02 AM
Post #5


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




Ah, I see what you mean. I'm just a tad used to using self-switches to close, well, self-contained events so I just sorta thought it'd work here too. Amazing how simple that problem actually was to fix. Well, thanks for showing me how to do things like this properly smile.gif
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 11 2011, 08:19 AM
Post #6


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Another general advice when you work with battle events is to not believe that using multiple pages with solve your problems. Unlike with map events, the pages aren't processed in reverse order.

Side note, is this Roxis in your avatar?


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 11 2011, 08:27 AM
Post #7


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




Huh, so if they aren't done in reverse order for battles how does it determine which one takes priority?

And, yeah, that's Roxis.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 11 2011, 08:32 AM
Post #8


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




All of them are processed if the conditions are met. The order is exactly as it appears in the editor: the first page, then the second and so on...


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 12 2011, 07:32 AM
Post #9


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




So, after solving that problem I run into a bit of an issue with a second battle event;



This should enable an extra party member to enter the fight when the first's HP runs out, but rather than doing that it just cuts straight to a game over instead. There's no "If Actor is State then" command so I had to try and get it to work in a slightly different manner. Shame it doesn't work, but I can't quite tell why or how to get it to work. Everything I try just ends up with it cutting to the game over screen instead.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 12 2011, 08:12 AM
Post #10


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




If you have a lone actor and their HP drops to 0, it's always Game Over. So you'll need a script command to make him immortal (just like when you check Immortal on the troop enemy sheet). His HP will go down to 0, but he will not die. What you should do is create another page, put Turn 0 as condition so it runs right at the start of the battle, then use a Script event command with that inside:
CODE
$game_party.members[X].immortal = true

Replace X with your unnamed actor's number ID in your database.

Then, after you used the Recover All command, revert the immortality with another Script command:
CODE
$game_party.members[X].immortal = false


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 12 2011, 11:24 AM
Post #11


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




Thanks, I added that as you suggested but I'm not entirely sure how well it works since once Turn 0 resolved I got this;

Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 12 2011, 11:44 AM
Post #12


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




You probably entered a bad value for X. Look up your hero in the database and replace X with his number.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 12 2011, 12:48 PM
Post #13


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




That was my first thought as well, but I double checked it afterwards and it was the right number. I didn't truncate the "00" from the front either, just in case, and that still came up.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 12 2011, 12:56 PM
Post #14


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




That's the problem then XD

The two zeroes are just there for cosmetic purpose; if you put them in a script, your number is treated as an octal number and well, this causes errors.

If that still doesn't work after that, you should post another screen of the event.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Dec 12 2011, 01:13 PM
Post #15


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




I'd have figured they were needed since they are part of the ID and all. Good to know, for future reference, they they're superfluous though. Even if dropping them didn't actually help.




I think the problem might be that it doesn't know what to do with the immortal since it's trying to fetch a class that isn't defined anywhere? I could be wrong with that, but that's what it looks like to me at least.
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Dec 12 2011, 01:25 PM
Post #16


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




No, the problem is that I'm a moron. I actually confused two different things. I'm sorry :/

Anyways, forget what I said before. Use $game_actors[2], not $game_party.members[2]... Man, how high can I be.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Scathach
post Apr 16 2012, 07:02 PM
Post #17


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Beginner




Well, hrm, been a while since I ran into any issues of pressing concern but that's mostly been due to being too busy to work on something like this. Anyway, minor issue with a skill to enable an enemy to summon backup at will (rather than a mid-battle event). I'm sure, as per usual, there'll be a simple fix for this that I'm just not seeing but here's what I have so far:

fairly large images I guess



Incredibly inelegant but I thought it'd work. Turns out I was wrong, since whenever the skill gets used either nothing happens at all or it just states that the target wasn't affected. Not sure why either of those happen, unfortunately.

E; Oh and the "trigger" was set to parallel at one point in my attempts but I couldn't get it to work then either so for simplicity sake here I turned it back off again just so I didn't look like an idiot...and chances are now I do with it off. Ah well, c'est la vie and such.

E2; Upon doing a bit of reading of other threads while waiting/checking to see if anyone else had a similar/identical issue I came across a script to enable common events during a battle. After configuring it according to my settings, it seemed to have worked, in that it didn't give me an error message, though the "no effect" message still came up in-battle.

This post has been edited by Scathach: Apr 16 2012, 07:14 PM
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 08:31 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker