The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: xeros on May 06, 2007, 09:37:52 AM

Title: [RESOLVED] need a script for preventing a event
Post by: xeros on May 06, 2007, 09:37:52 AM
I am using the abs battle system and I need to know how to make a  event which will teleport you somewhere if you defeat the boss and if you go to the event but didnt defeat the boss then a mesage will pop up saying something along the lines of you cant pass unless you defeat the boss, I posted this here because I think that a script would be needed, and then I could just use the call script command, thanks in sdvance if some one could make a script for me which does that, I will credit you if you do.
Title: Re: [request]-need a script for preventing a event
Post by: Winged on May 06, 2007, 10:31:33 AM
Switches...lemme give a rough outline of the event

Conditional Branch: When switch [Defeated Boss] is on
teleport to [Map]

Conditional Branch: When switcj [Defeated boss] is off
Show message: Beat the bloody boss!!


Also, at the map where the boss is, make a switch called Defeated Boss or whatever you want and turn it on when the player beats the boss...

If you don't get it I could get some screens soon..or someone else *wink wink nudge nudge*

~Winged
Title: Re: [request]-need a script for preventing a event
Post by: xeros on May 06, 2007, 10:42:04 AM
I know what you mean but how would I make it so when I defeated the boss then the switch would turn off?...would I have to make another switch as well for the boss?
Title: Re: [request]-need a script for preventing a event
Post by: Rune on May 06, 2007, 10:50:36 AM
No... set the switch to on when the boss is dead
Or if you want the switch to turn off when you beat the boss, set the switch to on at the start of the game or somewhere before you come across the teleport event

Also, I think this thread should be in troubleshooting... not scripts
Title: Re: [request]-need a script for preventing a event
Post by: Winged on May 06, 2007, 10:51:02 AM
It'd all be done with 1 switch right? Like in the event with the boss, you turn the switch ON AFTER the boss encounter. Am I making sense? O_o

~Winged

P.S You turn the switch ON, not OFF right?
Title: Re: [request]-need a script for preventing a event
Post by: xeros on May 06, 2007, 11:32:55 AM
sorry rune, but I didnt know if this problem needed a script or not so I presumed it needed one, so what would I use in the event screen to make the teleport event work when the boss is dead...what I mean is how do I make it so when the boss dies the teleport event happens?, because as you know Imm using the abs battle system and the bosses ID is boss\e[2]\b
Title: Re: [request]-need a script for preventing a event
Post by: Rune on May 06, 2007, 11:40:53 AM
Hold on... which ABS are you using? I tried something like this with Blizzard's ABS and couldn't get it to work :-\
Title: Re: [request]-need a script for preventing a event
Post by: xeros on May 06, 2007, 11:43:41 AM
I'm using blizards one, works just fine for me
Title: Re: [request]-need a script for preventing a event
Post by: Rune on May 06, 2007, 11:54:05 AM
I kept having trouble getting the enemies to disappear after they were killed... :-\

Hmm... make a new page in the boss' event. Put the boss image/charset/whatever you call it on page 2, and on page 1 do this

Switch operation: [Defeated Boss] ON

Now on the teleport event, do what Winged said:

Conditional Branch: When switch [Defeated Boss] is on
teleport to [Map]
else
Show message: Beat the bloody boss!!


Or if you turn the switch off when you beat the boss change the 'on' to 'off'

Hope this helps
Title: Re: [request]-need a script for preventing a event
Post by: xeros on May 06, 2007, 12:15:13 PM
Thanks for showing me how to do that, it worked greatly!, thanks rune and winged, I'll put you in the credits of my project, just again thanks!  :)
Title: Re: [Resolved]-need a script for preventing a event
Post by: Rune on May 06, 2007, 01:25:02 PM
Heh you don't have to add me... I like to help :D
Title: Re: [Resolved]-need a script for preventing a event
Post by: xeros on May 07, 2007, 03:16:51 AM
:) okay then, thanks anyway :)
Title: Re: [RESOLVED]-need a script for preventing a event
Post by: Rune on May 07, 2007, 08:04:44 AM
You're welcome. Like i said, I like to help :D