Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
cometstar

HELP with Skills Log

Question

I have a request for script ,I wish some one can design it for me, it's so hard script

,but maybe someone have good expieience with RGSS do it :

The script must do the fowllowing:

 

-Main thing is to show a message box same as Window Messege in RMXP but without Pause Mark ,and it must disappear after about 3 second or time I can spicify it, and this messige box to show the fowlloing:

 

-When a characther or battler uses a skill ,the window must show who use this skill

viz a message like "Ghost casts Stopspell"

-If the skill don't effect on target the window must show "/n is uneffected" ,then "\n"=the skill's target.

-If skill is work normally ,then I want to show somthing I can spicify it ,like"This skill increase ATK's power for all" or nay thing I want.

-If it's possible I want to now how is the value that the used skill increased or decreased if the skill include changing the target's values or parameters like ATK,AGI,INI.

I'm so sorry for my much question ,but I rely on this website to help my much

then I'mdesigning a game with RMXP ,I had good expierence with it ,but I don't with script, and there are many things I want to do and all of them need script

So excuse me.......AND THANK YOU MUCH

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Not sure if this is exactly what you want, but maybe it is a start.

 

 

class Window_Effect < Window_Base
 def initialize
   super(0, 64, 640, 96)
   self.contents = Bitmap.new(608,64)
   self.back_opacity = 160
   self.visible = false
 end
 def clear
   self.contents.clear
 end
end

class Scene_Battle
alias old_main main
alias old_update update
alias old_make_skill_action_result make_skill_action_result
alias old_update_phase4_step5 update_phase4_step5
 def main
   @skillz_win = Window_Effect.new
   old_main
   @skillz_win.dispose
 end
 def update
   @skillz_win.update
   old_update
 end
 def make_skill_action_result
   old_make_skill_action_result
   @skillz_win.visible = true
   @skillz_win.contents.draw_text(0,0,608,32,@active_battler.name+" casts "+@skill.name+".")
   @skillz_win.contents.draw_text(0,32,608,32,@skill.description)
 end
 def update_phase4_step5
   @skillz_win.visible = false
   @skillz_win.clear
   old_update_phase4_step5
 end
end

 

 

Just place it above Main in your scripts. It will make a window pop up when casting a skill. The window shows the user's name and the skill name used, along with the skill's description. So, you can modify the description part in the Database to have it show what you want it to say.

 

About the other parts: Showing if the skill was effective or not may be a bit redundant as damage is incurred and shown if a hit occurs and setting a state animation shows success as well. I feel confident that I could implement something though if those methods do not work, but you will have to make it extremely clear what exactly it should look like and do. For example, it would be possible for the word "Effective!" to display near the battler if a state change is imparted.

 

I would try to limit how much information is shown at once because of how quickly it disappears and how battle flow can be affected with prolonged window displays.

 

Just let me know if this is anywhere close to what you need or what changes should be made. Perhaps posting a screenshot of exactly what you need could improve the chances of getting it the way you like it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...