OmegaDev
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Kyle's Snippet Zone

+3
moneymenace
omegas7
Kyle?
7 posters

Page 1 of 2 1, 2  Next

Go down

Kyle's Snippet Zone Empty Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 1:26 am

Well Well I'm a kinda scripter newbish really so I make edits and snippets!



Snippet #1 - Random Transition (Credit to Guyver bane for base of script)
Spoiler:

Snippet 2# - Boss Transition (BETA):
Spoiler:

Snipper 3# - Male Or Female V0.3 BETA (Credit to Omegas for Helping me ages ago
Spoiler:


Last edited by Kyle? on Thu May 06, 2010 1:09 am; edited 6 times in total
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by omegas7 Fri Apr 30, 2010 7:42 am

For the random transition snippet, I'd recommend letting the user input his/her own trasition names in an array:

Spoiler:

So the user won't have to add cases when adding a new transition graphic Very Happy
Good luck with yer snippets.
omegas7
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

http://www.omegadev.biz

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Fri Apr 30, 2010 7:44 am

Can you make one where it doesn't make the transitions random but lets the creator choose? That way if I wanted a boss battle, I could use a special transition rather than a normal small battle transition.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 6:16 pm

Omegas7 wrote:For the random transition snippet, I'd recommend letting the user input his/her own trasition names in an array:

Spoiler:

So the user won't have to add cases when adding a new transition graphic Very Happy
Good luck with yer snippets.
Thanks and they kinda could but need some knowledge of how the transitions go and rand method just needs to change to how many like "rand(55)" but thanks for the pointer I'm mainly good at Size edit's in fact I'm making my own menu system Smile
It's going to be a bit customisable


moneymenace wrote:Can you make one where it doesn't make the transitions random but lets the creator choose? That way if I wanted a boss battle, I could use a special transition rather than a normal small battle transition.
Hmm... I'll try Razz to see what I can do with this

Maybe a switch so if your desired switch is on then it will use a transition of your choice?

EDIT:
Finished it money
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Fri Apr 30, 2010 8:40 pm

Cool thanks! I'm going to test it out now, I'll tell you if it works for me in a second.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 8:42 pm

Ok hope it works! Razz
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Fri Apr 30, 2010 8:48 pm

No, it doesn't work. I get a SyntaxError in line 13 before the title screen shows up.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 8:54 pm

How about this tested it worked on the title screen

Code:

module KYLE

SWITCH = 1
TRANSITION_NAME = "BossStart"

end

def perform_battle_transition
if $game_switches[SWITCH]
  Graphics.transition(80, "Graphics/System/" + TRANSITION_NAME, 80)
else
  Graphics.transition(80, "Graphics/System/BattleStart", 80)
  end
end
 
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Andinator Fri Apr 30, 2010 9:03 pm

If I may, can I request a script for smoother bgm transition during map transition? like say fadeout is 120 frames and bgm play is 60 frames (so it starts when the first bgm is half way faded out)
Andinator
Andinator
Student
Student

Posts : 100
Gald : 458

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 9:10 pm

Well I'm not really taking requests...
I took Moneys cause I thought it be preety easy...

But I think I can make this
may need help but I found the area
for transfer so I might make this in the end!

So I'll take it on
but remember not really taking requests just easy ones!
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Fri Apr 30, 2010 9:30 pm

Alright I tried it and am getting the exact same result with the Syntax Error in Line 13 before the title screen starts.
I modified the name and switch trigger to fit my parameters.
Code:
module KYLE

SWITCH = 3
TRANSITION_NAME = "Boss Transition"

end

def perform_battle_transition
if $game_switches[SWITCH]
  Graphics.transition(80, "Graphics/System/" + TRANSITION_NAME, 80)
else
  Graphics.transition(80, "Graphics/System/Battle Transition", 80)
  end
Tell me if I messed it up in some way.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 9:33 pm

Look's like you have deleted or didn't copy the
last end

After the normal transition there shoud be two
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Fri Apr 30, 2010 9:44 pm

Alright, that did it. But the script didn't do anything...
I placed the right name on the transition that I wanted.
I turned on switch 3 as it said. And I didn't change the script any further except for that one end.

By the way, if this is a bother to you... you don't have to do this, it's just that small extra thing that could make my game better.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Fri Apr 30, 2010 10:42 pm

Solved forgot to add the class O.o stupid me Razz

Here:
Spoiler:
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Sat May 01, 2010 2:15 am

Update:
Added a 3rd snippet
Omegas7 might remember this script...
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by omegas7 Sat May 01, 2010 8:49 am

Very Happy. Remember to use script call
Code:
Name.execute
after turning the desired switches Wink.
omegas7
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

http://www.omegadev.biz

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Sat May 01, 2010 10:07 am

Alright, cool, it transitions. But, for some reason it turns on the call switch by itself. I don't have any event doing that. After every battle I check the F9 function, and I see that the call switch (Switch 3) was automatically turned on... then I turn it off, go into the battle, win, then check again it's on again.

So basically it just permanently stays on the new transition, rather than the original.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by omegas7 Sat May 01, 2010 10:58 am

moneymenace wrote:Alright, cool, it transitions. But, for some reason it turns on the call switch by itself. I don't have any event doing that. After every battle I check the F9 function, and I see that the call switch (Switch 3) was automatically turned on... then I turn it off, go into the battle, win, then check again it's on again.

So basically it just permanently stays on the new transition, rather than the original.

There is a small error in the script. Find the line
Code:
if $game_switches[KYLE::SWITCH] = true
And replace with
Code:
if $game_switches[KYLE::SWITCH] == true
omegas7
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

http://www.omegadev.biz

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Dezz123 Sat May 01, 2010 11:54 am

Wow, these are great, Kyle?! Gonna try them and maybe use them in my games! Razz
Oh, just what does the Male or Female script do?
Is it basically letting you be a Male or Female?
Dezz123
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by omegas7 Sat May 01, 2010 12:29 pm

dezz123 wrote:Oh, just what does the Male or Female script do?
Is it basically letting you be a Male or Female?

Ever had a game where the player can choose to be male or female? When an NPC talks to the player, you have to check if the player is male or female His sword or Her sword. It is quite annoying to create two different message windows just for that. The script will store words depending on the gender on some variables for you to use in one single window...
omegas7
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

http://www.omegadev.biz

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Andinator Sat May 01, 2010 1:27 pm

i guess, but I really wouldn't mind eventing it since I could get some more personalization out of it...
Andinator
Andinator
Student
Student

Posts : 100
Gald : 458

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Dezz123 Sat May 01, 2010 1:56 pm

Woah...:O
That's cool. Imma be using that for my next game. Great job, Kyle? (and Omegas7 for helping)!
I'll try it out.
Dezz123
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Sat May 01, 2010 7:52 pm

Thanks Omega, I will be able to test out the change when I get access to my other computer.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Kyle? Sat May 01, 2010 8:57 pm

Omegas7 wrote:Very Happy. Remember to use script call
Code:
Name.execute
after turning the desired switches Wink.
It's in the instructions though

Omegas7 wrote:
moneymenace wrote:Alright, cool, it transitions. But, for some reason it turns on the call switch by itself. I don't have any event doing that. After every battle I check the F9 function, and I see that the call switch (Switch 3) was automatically turned on... then I turn it off, go into the battle, win, then check again it's on again.

So basically it just permanently stays on the new transition, rather than the original.
Don't use debug try eventing it

There is a small error in the script. Find the line
Code:
if $game_switches[KYLE::SWITCH] = true
And replace with
Code:
if $game_switches[KYLE::SWITCH] == true
Updated it know Omegas Loz I always do that
Kyle?
Kyle?
Platinum Cookiez
Platinum Cookiez

Posts : 500
Gald : 418

Stats
Cookies: 5

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by moneymenace Sun May 02, 2010 4:55 pm

New problem, (don't you love them).
The boss transition will take the place of the default battle transition no matter if the switch is on or off.
moneymenace
moneymenace
Resource Moderator
Resource Moderator

Posts : 538
Gald : 1337

Stats
Cookies: 0

Back to top Go down

Kyle's Snippet Zone Empty Re: Kyle's Snippet Zone

Post by Sponsored content


Sponsored content


Back to top Go down

Page 1 of 2 1, 2  Next

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum