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
> Skill storage, I just have to get this out of the way YEY MY FIRST SCRIPT!!
breadlord
post Apr 24 2009, 08:47 AM
Post #1


What did you expect...
Group Icon

Group: Revolutionary
Posts: 461
Type: Developer
RM Skill: Intermediate




This script allows you to store an actors skills and replace an actors skills with those stored, you can store up to 5 sets of skills with this script by default, though you can easily store more by following the instructions in the script. All the instructions are in the script.

[Show/Hide] The script
CODE
#================================================================
======



# Store skill system by Breadlord



#==============================================================================



# Use the following script calls to use the script :



# $game_actors[n].store_skills_?



# This script call stores the current skills of the actor with the id of 'n'



# the '?' should be replaced with a number from 1 to 5, this number specifies



# which slot the skills would be stored in.



#



# $game_actors[n].restore_skill_from_?



# Again the n refers to an actor id, this time the skills stored in slot will



# be stored in the actors skills. The ? again refers to a slot, 1 to 5.



#



# $game_actors[1].delete_skills



# This is pretty obvious, it takes the skills of the actor specified, and



# deletes all there skills.



#



# $game_actors[1].check_store_?



# What this script calll does is it checks the contents of a store and



# displays the ids of all the skills stored in that store.For this script



# call put 1 were you would put the actor id in the other script calls, the



# '?' refers to the store to check.



#



#==============================================================================



# If you want more storage slots copy and paste these segments:



# def store_skills_1



# @skill_store_1 = @skills



# end



#



# def restore_skill_from_1



# @skills = @skill_store_1



# end



#



# def check_store_1



# print @skill_store_1



# end



#



# And change all the numbers to the number slot it is, say if you got another



# slot then in total you would have 6 slots, so you would replace the 1s with 6s



# You also have to go to the module Breadlord_Storage and add a new thing saying



#'@skill_store_? = {}'



#==============================================================================



module Breadlord_Storage



@skill_store_1 = {}



@skill_store_2 = {}



@skill_store_3 = {}



@skill_store_4 = {}



@skill_store_5 = {}



end



class Game_Actor < Game_Battler



alias :breadlords_skill_storage_initialize :initialize



def initialize(actor_id)



breadlords_skill_storage_initialize(actor_id)



end



def delete_skills



@skills = {} # This sets th eactors skills to {}



end



def store_skills_1



@skill_store_1 = @skills # This sets skill_store_? to the actors skills



end



def store_skills_2



@skill_store_2 = @skills # This sets skill_store_? to the actors skills



end



def store_skills_3



@skill_store_3 = @skills # This sets skill_store_? to the actors skills



end



def store_skills_4



@skill_store_4 = @skills # This sets skill_store_? to the actors skills



end



def store_skills_5



@skill_store_5 = @skills # This sets skill_store_? to the actors skills



end



def restore_skill_from_1



@skills = @skill_store_1 # This sets the actors skills to the skills in skill_store_?



end



def restore_skill_from_2



@skills = @skill_store_2 # This sets the actors skills to the skills in skill_store_?



end



def restore_skill_from_3



@skills = @skill_store_3 # This sets the actors skills to the skills in skill_store_?



end



def restore_skill_from_4



@skills = @skill_store_4 # This sets the actors skills to the skills in skill_store_?



end



def restore_skill_from_5



@skills = @skill_store_5 # This sets the actors skills to the skills in skill_store_?



end



def check_store_1



print @skill_store_1 # This shows the value in skill_store_?



end



def check_store_2



print @skill_store_2 # This shows the value in skill_store_?



end



def check_store_3



print @skill_store_3 # This shows the value in skill_store_?



end



def check_store_4



print @skill_store_4 # This shows the value in skill_store_?



end



def check_store_5



print @skill_store_5 # This shows the value in skill_store_?



end



end



#==============================================================================



# YEY THE END OF MY FIRST SCRIPT



#==============================================================================



P.S MY FIRST SCRIPT happy.gif


__________________________

Check out my project http://www.rpgrevolution.com/forums/index....showtopic=29698
[Show/Hide] I thought my sig was to big so... Clicky clicky


[Show/Hide] My RRR card, Thanks Holder!!




[Show/Hide] What things am I, CLICK!!!

I taste a bit like Almonds.


Mmm, the taste of almonds - anathema to many with nut allergies, and a bad sign for many more, as my taste is not unlike that of cyanide. Am I good or am I poison? A risky thing to guess about. What Flavour Are You?



What Mystical creature are you?
Pegasus



You are a shy, night time person and you are very gentle and soft hearted. You are like the opposite from your cousin the unicorn.


Which Final Fantasy Character Are You?
Final Fantasy 7


[Show/Hide] Can you read this?
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[Show/Hide] Personality things




Your answers suggest you are a Strategist

The four aspects that make up this personality type are:



Summary of Strategists

* Quiet, easy-going and intellectually curious
* Use logical, objective thinking to find original solutions to problems
* Think of themselves as bright, logical and individualistic
* May be impractical, forgetting practical issues, such as paying bills or doing the shopping

More about Strategists

Strategists are quiet people who like to get to the heart of tough problems on their own and come up with innovative solutions. They analyse situations with a sceptical eye and develop ways of measuring everything, including themselves.

Strategists are the group most likely to say they are unhappy in their job, according to a UK survey.

Strategists are generally easy-going. They are intellectually curious and enjoy abstract ideas. Sometimes they like thinking of a solution to a problem more than taking practical steps to solve it.

In situations where they can't use their talents, are unappreciated, or not taken seriously, Strategists may become negatively critical or sarcastic. Under extreme stress, Strategists could be prone to inappropriate, tearful or angry outbursts.

Strategists may be insensitive to the emotional needs of others or how their behaviour impacts the people around them.


Go to the top of the page
 
+Quote Post
   
TimmahX
post Apr 24 2009, 11:00 AM
Post #2


Level 6
Group Icon

Group: Member
Posts: 82
Type: Event Designer
RM Skill: Skilled




Kudos on your first script. happy.gif

Could you possibly give a little more of an explanation though? Is it similar to the KCG_SkillCP system or something?


__________________________
This is a signature. I know right?
Go to the top of the page
 
+Quote Post
   
breadlord
post Apr 24 2009, 12:02 PM
Post #3


What did you expect...
Group Icon

Group: Revolutionary
Posts: 461
Type: Developer
RM Skill: Intermediate




Thanks for the kudos. And to say, this is not like the kgc cp system, this does not let you limit the skills the actor has. What this script does is that it can store the actors skills in the script, it can also change the actors skills to those in the script. This could be used by saying having the actors normal skills in th script aswell as a group of other skills. You could use this to have a transform skill that changes the actors skills to the other skills by using the script calls in the script, then you could have it so when the actor transforms back the actors skills are set to his normal skills (The ones previously stored in the script). The script calls are in the script.



__________________________

Check out my project http://www.rpgrevolution.com/forums/index....showtopic=29698
[Show/Hide] I thought my sig was to big so... Clicky clicky


[Show/Hide] My RRR card, Thanks Holder!!




[Show/Hide] What things am I, CLICK!!!

I taste a bit like Almonds.


Mmm, the taste of almonds - anathema to many with nut allergies, and a bad sign for many more, as my taste is not unlike that of cyanide. Am I good or am I poison? A risky thing to guess about. What Flavour Are You?



What Mystical creature are you?
Pegasus



You are a shy, night time person and you are very gentle and soft hearted. You are like the opposite from your cousin the unicorn.


Which Final Fantasy Character Are You?
Final Fantasy 7


[Show/Hide] Can you read this?
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[Show/Hide] Personality things




Your answers suggest you are a Strategist

The four aspects that make up this personality type are:



Summary of Strategists

* Quiet, easy-going and intellectually curious
* Use logical, objective thinking to find original solutions to problems
* Think of themselves as bright, logical and individualistic
* May be impractical, forgetting practical issues, such as paying bills or doing the shopping

More about Strategists

Strategists are quiet people who like to get to the heart of tough problems on their own and come up with innovative solutions. They analyse situations with a sceptical eye and develop ways of measuring everything, including themselves.

Strategists are the group most likely to say they are unhappy in their job, according to a UK survey.

Strategists are generally easy-going. They are intellectually curious and enjoy abstract ideas. Sometimes they like thinking of a solution to a problem more than taking practical steps to solve it.

In situations where they can't use their talents, are unappreciated, or not taken seriously, Strategists may become negatively critical or sarcastic. Under extreme stress, Strategists could be prone to inappropriate, tearful or angry outbursts.

Strategists may be insensitive to the emotional needs of others or how their behaviour impacts the people around them.


Go to the top of the page
 
+Quote Post
   
SuperMega
post Apr 24 2009, 01:12 PM
Post #4


Public memberTitle(String n)
Group Icon

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled




Congrats on the first script! Maybe it's time for that personal house system smile.gif



__________________________
Translated Scripts:
Diagonal Movement (Eight Direction) and Smooth Jumping
Attack Party, Heal Enemies
Display Party Status On Map (DQ Style)
Display Maps Under Maps
Save Screen Customization
Subtitled Menus

If you want to suggest a translation for something, PM me, and I'll take a look. I AM TRYING TO GIVE AWAY LOCKERZ.com INVITES, SO PLEASE LET ME KNOW IF YOU WANT ONE.
Currently Working on 2 RPG Maker VX Projects. They are very unique, and have a different kind of style then the usual RPGs. So don't think of them as just another RPG. Did that sound rude? :D Not sure if I want them to go public yet, but we'll see how it goes.
Need a script translated? Come talk to me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
Trek
post Apr 24 2009, 01:44 PM
Post #5


Level 2
Group Icon

Group: Member
Posts: 20
Type: Developer
RM Skill: Skilled




I'm gonna check this script out, but I think you should also include a demo of the script, so people and actually see what it does before they use the script in their game... But, that's just my opinion... biggrin.gif Anyways, kudos on your first script.... I'll let you know what I think of it after I check it out... biggrin.gif Peace...!
Go to the top of the page
 
+Quote Post
   
Speed@
post Apr 25 2009, 12:24 AM
Post #6


Level 12
Group Icon

Group: Revolutionary
Posts: 203
Type: None
RM Skill: Undisclosed




Nice!

there should be an easier way to do this with variables in script insteadt of writing 20 lines more, ask someone...
Anyways I reestyled it a bit(Don't put it in codebox, put it in code and spoiler tag:
[Show/Hide] Skill Storage System
CODE
#==============================================================================
# Store Skill System 1.0            
#==============================================================================
# Script By: Breadlord    
#------------------------------------------------------------------------------
# Use the following script calls to use the script :
# $game_actors[n].store_skills_?
# This script call stores the current skills of the actor with the id of 'n'
# the '?' should be replaced with a number from 1 to 5, this number specifies
# which slot the skills would be stored in.
#
# $game_actors[n].restore_skill_from_?
# Again the n refers to an actor id, this time the skills stored in slot will
# be stored in the actors skills. The ? again refers to a slot, 1 to 5.
#
# $game_actors[1].delete_skills
# This is pretty obvious, it takes the skills of the actor specified, and
# deletes all there skills.
#
# $game_actors[1].check_store_?
# What this script calll does is it checks the contents of a store and
# displays the ids of all the skills stored in that store.For this script
# call put 1 were you would put the actor id in the other script calls, the
# '?' refers to the store to check.
#
#------------------------------------------------------------------------------
# If you want more storage slots copy and paste these segments:
# def store_skills_1
# @skill_store_1 = @skills
# end
#
# def restore_skill_from_1
# @skills = @skill_store_1
# end
#
# def check_store_1
# print @skill_store_1
# end
#
# And change all the numbers to the number slot it is, say if you got another
# slot then in total you would have 6 slots, so you would replace the 1s with 6s
# You also have to go to the module Breadlord_Storage and add a new thing saying
#'@skill_store_? = {}'
#==============================================================================

#==============================================================================
# Breadlord_Storage
#------------------------------------------------------------------------------
# This module makes the whole system.
#==============================================================================

   module Breadlord_Storage

    @skill_store_1 = {}
    @skill_store_2 = {}
    @skill_store_3 = {}
    @skill_store_4 = {}
    @skill_store_5 = {}
  end

  class Game_Actor < Game_Battler

    alias :breadlords_skill_storage_initialize :initialize
     def initialize(actor_id)
      breadlords_skill_storage_initialize(actor_id)
    end

     def delete_skills
     @skills = {} # This sets th eactors skills to {}
    end

    def store_skills_1
    @skill_store_1 = @skills # This sets skill_store_? to the actors skills
   end

    def store_skills_2
    @skill_store_2 = @skills # This sets skill_store_? to the actors skills
   end

    def store_skills_3
    @skill_store_3 = @skills # This sets skill_store_? to the actors skills
  end

    def store_skills_4
    @skill_store_4 = @skills # This sets skill_store_? to the actors skills
  end

    def store_skills_5
    @skill_store_5 = @skills # This sets skill_store_? to the actors skills
  end

    def restore_skill_from_1
    @skills = @skill_store_1 # This sets the actors skills to the skills in skill_store_?
  end

    def restore_skill_from_2
    @skills = @skill_store_2 # This sets the actors skills to the skills in skill_store_?
  end

    def restore_skill_from_3
    @skills = @skill_store_3 # This sets the actors skills to the skills in skill_store_?
  end

    def restore_skill_from_4
    @skills = @skill_store_4 # This sets the actors skills to the skills in skill_store_?
  end

    def restore_skill_from_5
    @skills = @skill_store_5 # This sets the actors skills to the skills in skill_store_?
  end

    def check_store_1
    print @skill_store_1 # This shows the value in skill_store_?
  end

    def check_store_2
    print @skill_store_2 # This shows the value in skill_store_?
  end

    def check_store_3
    print @skill_store_3 # This shows the value in skill_store_?
  end

    def check_store_4
    print @skill_store_4 # This shows the value in skill_store_?
  end

    def check_store_5
    print @skill_store_5 # This shows the value in skill_store_?
  end
end

#==============================================================================
# YEY THE END OF MY FIRST SCRIPT
#==============================================================================




Go to the top of the page
 
+Quote Post
   
breadlord
post Apr 25 2009, 12:45 AM
Post #7


What did you expect...
Group Icon

Group: Revolutionary
Posts: 461
Type: Developer
RM Skill: Intermediate




Thanks, and does anyone know how I could shortern the script (like speed said)



__________________________

Check out my project http://www.rpgrevolution.com/forums/index....showtopic=29698
[Show/Hide] I thought my sig was to big so... Clicky clicky


[Show/Hide] My RRR card, Thanks Holder!!




[Show/Hide] What things am I, CLICK!!!

I taste a bit like Almonds.


Mmm, the taste of almonds - anathema to many with nut allergies, and a bad sign for many more, as my taste is not unlike that of cyanide. Am I good or am I poison? A risky thing to guess about. What Flavour Are You?



What Mystical creature are you?
Pegasus



You are a shy, night time person and you are very gentle and soft hearted. You are like the opposite from your cousin the unicorn.


Which Final Fantasy Character Are You?
Final Fantasy 7


[Show/Hide] Can you read this?
Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.


[Show/Hide] Personality things




Your answers suggest you are a Strategist

The four aspects that make up this personality type are:



Summary of Strategists

* Quiet, easy-going and intellectually curious
* Use logical, objective thinking to find original solutions to problems
* Think of themselves as bright, logical and individualistic
* May be impractical, forgetting practical issues, such as paying bills or doing the shopping

More about Strategists

Strategists are quiet people who like to get to the heart of tough problems on their own and come up with innovative solutions. They analyse situations with a sceptical eye and develop ways of measuring everything, including themselves.

Strategists are the group most likely to say they are unhappy in their job, according to a UK survey.

Strategists are generally easy-going. They are intellectually curious and enjoy abstract ideas. Sometimes they like thinking of a solution to a problem more than taking practical steps to solve it.

In situations where they can't use their talents, are unappreciated, or not taken seriously, Strategists may become negatively critical or sarcastic. Under extreme stress, Strategists could be prone to inappropriate, tearful or angry outbursts.

Strategists may be insensitive to the emotional needs of others or how their behaviour impacts the people around them.


Go to the top of the page
 
+Quote Post
   
TimmahX
post Apr 25 2009, 03:32 AM
Post #8


Level 6
Group Icon

Group: Member
Posts: 82
Type: Event Designer
RM Skill: Skilled




QUOTE (breadlord @ Apr 25 2009, 04:45 AM) *
Thanks, and does anyone know how I could shortern the script (like speed said)


Well you put a lot of space between lines, maybe cut those out?


__________________________
This is a signature. I know right?
Go to the top of the page
 
+Quote Post
   
Speed@
post Apr 25 2009, 06:56 AM
Post #9


Level 12
Group Icon

Group: Revolutionary
Posts: 203
Type: None
RM Skill: Undisclosed




QUOTE (TimmahX @ Apr 25 2009, 03:32 AM) *
QUOTE (breadlord @ Apr 25 2009, 04:45 AM) *
Thanks, and does anyone know how I could shortern the script (like speed said)


Well you put a lot of space between lines, maybe cut those out?

Eh we are talking how he could shorten it, so that he doesn't define
@ skillset.1
@skillset.2
and so on,

but writes it like
@skillset = [1,2,3...]

Cause if you check my wersion there are all the spaces removed and reformatted.
Go to the top of the page
 
+Quote Post
   
woratana
post Apr 25 2009, 09:21 AM
Post #10


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Really nice idea!

By the way, do you have any screenshot? >_>" At least one might help.


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
george30032
post Sep 10 2010, 09:34 PM
Post #11


Level 1
Group Icon

Group: Member
Posts: 7
Type: Event Designer
RM Skill: Skilled




Put a demo up.....
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: 17th June 2013 - 09:07 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker