Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Bernkastel

1
Well, I guess it wouldn't have to scroll down, since the game uses 4 party members at a time. And as I said before, those are all optional. I just need the teleport functions. ^^
2
I thank you for your help, but I'm still having trouble making the window refresh and close when I want it to..
3
Bump.

No more help?
4
Well, she's still confused. Could you explain it a little better?
She wants to know how you call the modified/alias Scene_map. That's what she doesn't understand the most.


Also, I forgot to mention that the window is supposed to show the amount of skillpoints depending on which actor is stated.
I guess this was supposed to tell who's skillpoints are being shown:
@spwindow.contents.draw_text(4, 0, 
120, 32, "Skillpoints:")
@actor = $game_actors[7]
@spwindow.contents.draw_text(4, 32,
50, 32, @actor.skillpoints.to_s)
5
Quote from: SBR* on February 25, 2011, 04:31:11 am
Alright, what she has to do, is alias the Scene_Map methods called 'main' and 'update'.

The alias of main would be this:


class Scene_Map
 alias whatever_you_want_it_to_be main
 def main
   @spwindow = Window_Skillpoints.new
   whatever_you_want_it_to_be
   @spwindow.dispose
 end
end


The update one should call the window's update method.

The window's update method should check if the previous amount of skillpoints is the same as the current one and if that's the case, it should call the refresh method. The refresh method draws the text.

So the text, drawn in the event, is drawn in the refresh method. This way, the event isn't necessary at all :D.


Thank you for the reply. <3

Well, will that even work? It's not a scene. It's a window.

Sorry, I sound like a total moron.
6
First of all, my friend made a window in our game that displays the amount of skill points. The problem is, when you gain or lose the points while the window is still there, it doesn't update itself. Not only that it won't close/dispose or whatever it's called.

Below is the script that she made. She's pretty new to Ruby so she hit a brick wall. I have no idea what to do either, so I'm asking for help.

# ===========================================================
# Author: AbsolutePrincess
# ===========================================================
# Displays Skillpoints in the Skill Tree window.
# ===========================================================

class Window_SkillPoints < Window_Base
 
  # =========================================================
  # Object Initialization
  # =========================================================
 
  def initialize
    super(24, 24, 144, 96)
    refresh
    self.contents = Bitmap.new(width - 32, height - 32)
  end
 
  # =========================================================
  # Refresh
  # =========================================================
 
  def refresh
    if self.contents != nil
      self.contents.dispose
      self.contents = nil
    end
  end
   
end


Here is a screenshot of the event that brings up the window.
Spoiler: ShowHide

7
Quote from: Zexion on February 24, 2011, 10:19:20 pm
okay well I will take a crack at this, but I'm not like a scripting god, so Idk how it will turn out :P. I'm just gonna mod blizz's script to do what you want it to do instead. Question though... if you want the battler in the top left, why is the space so small for it. Anyways, I'll see what I can do. The weekend is comming up so thats probably when I'll try/ finish it.


Oh, I have a side-view animated battle system. My 'battler's are single frame character sets. x3

Thank you very much, means a lot.
8
Quote from: ForeverZer0 on February 24, 2011, 12:24:42 pm
That is very similar to Blizzard's Easy Party Switcher.


Mind you, I'm nowhere near a scripter. That's why I'm asking for help.
9
Quote from: Zexion on February 23, 2011, 11:37:53 pm
you could also event it with pictures. It would take a few variables a few switches (maybe) and the pictures, but it would look better graphicaly that just windows. :P


Yeah, I could do that. But I don't want the game looking any shittier.
10
Script Requests / [XP] Party Member Transfer Window???
February 23, 2011, 10:46:17 pm
I'm looking to see if someone will make me a window script, or whatever you wanna call it.

Basically, it's a window that shows all current party members, and their names are selectable. When you select them, it transfers you to a map.

(Optional 1: (Depending on if you wanna spend the time to add this, I don't mind if you don't.) In the top left corner of the window will display the battler of the party member's name that the cursor is hovering over.)

(Optional 2: (Again, if you don't want to be bothered with this, I don't mind) It shows the party member's stats. HP, MP, Int, Str, etc.)

Here's a good example.

Spoiler: ShowHide


Sorry for the size of the picture.

I will absolutely love you forever if someone did this for me.

Edit: The thing is, I could use a crappy looking text window and do it easily with an event, but I think that looks horrible. I think you all would agree. That's really all I want.
11
I'm a retard. It's been fixed. Sorry for forgetting about this thread. x.x


Thanks for all of the help.<3
12
Honestly, I'm not even sure what to call it.

What I'm wondering is if there is a script that displays a screen at the end of a battle that shows the amount of EXP, Gold and Items earned.
A good example of that would be on one of the Final Fantasy games. FFX to be exact.

Does anyone have any idea if one exists? Help would be appreciated. I hope I explained it well enough.
13
I was wondering, if possible, I could make small changes into Blizz's Regen script from Tons of Add-ons and turn it into Poison.

I know I sound like a moron wanting to create something that already exists, but for some reason "poison" doesn't work if I use tons of add-ons with the CBS I'm using. I tested the regen and it worked, so I assumed if I made it opposite, it would work and turn into poison.

Help will be greatly appreciated. I pasted the regen part of the script here.

Also, I didn't put this in the scripts' thread because it was already stated that it had problems with exotic CBS.

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Regen Status Effect by Blizzard
# Version: 2.0b
# Type: Game Experience Improvement
# Date: 4.5.2006
# Date v1.1b: 12.1.2007
# Date v2.0: 22.10.2007
# Date v2.0b: 13.11.2007
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# new in v1.1b:
#   - fixed glitches, improved code and made it possible to have Regen and
#     Poison at the same time (they nullificate each other on the map, but not
#     in battle)
#
# new in v2.0:
#   - overworked system
#   - added SP Regen effect
#   - added SP Poison effect
#  
# new in v2.0b:
#   - fixed eventual bugs
#   - now possible to have more than one Regen status effect
#   - now beta
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

HP_REGEN_IDS = [18] # add any status effect IDs that will be HP Regen
SP_REGEN_IDS = [19] # add any status effect IDs that will be SP Regen
SP_POISON_IDS = [20] # add any status effect IDs that will be SP Poison

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

#==============================================================================
# Game_Party
#==============================================================================

class Game_Party
 
 alias check_map_slip_damage_regen_later check_map_slip_damage
 def check_map_slip_damage
   check_map_slip_damage_regen_later
   if $game_system.REGEN_STATUS
     @actors.each {|actor|
         if actor.hp > 0
           if HP_REGEN_IDS.any? {|i| actor.states.include?(i)}
             actor.hp += [actor.maxhp / 100, 1].max
           end
           if SP_REGEN_IDS.any? {|i| actor.states.include?(i)}
             actor.sp += [actor.maxsp / 100, 1].max
           end
           if SP_POISON_IDS.any? {|i| actor.states.include?(i)}
             actor.sp -= [actor.maxsp / 100, 0].max
           end
         end}
   end
 end
 
end

#==============================================================================
# Game_Battler
#==============================================================================

class Game_Battler

 alias slip_damage_regen_later? slip_damage?
 def slip_damage?
   if $game_system.REGEN_STATUS && !$scene.is_a?(Scene_Map) &&
       (HP_REGEN_IDS + SP_REGEN_IDS + SP_POISON_IDS).any? {|i| @states.include?(i)}
     return true
   end
   return slip_damage_regen_later?
 end
 
 alias slip_damage_effect_regen_later slip_damage_effect
 def slip_damage_effect
   if $game_system.REGEN_STATUS
     if !(HP_REGEN_IDS.any? {|i| @states.include?(i)}) &&
         slip_damage_regen_later?
       slip_damage_effect_regen_later
     elsif (HP_REGEN_IDS.any? {|i| @states.include?(i)}) &&
         !slip_damage_regen_later?
       dam = -self.maxhp / 10
       if dam.abs > 0
         amp = [dam.abs * 15 / 100, 1].max
         dam -= rand(amp+1) + rand(amp+1) - amp
       end
       self.hp -= dam
       self.damage = 0 if self.damage == nil
       self.damage += dam
     end
     if (SP_REGEN_IDS.any? {|i| @states.include?(i)}) !=
         (SP_POISON_IDS.any? {|i| @states.include?(i)})
       dam = self.maxsp / 10
       if dam > 0
         amp = [dam * 15 / 100, 1].max
         dam += rand(amp+1) + rand(amp+1) + amp
       end
       dam = -dam if SP_REGEN_IDS.any? {|i| @states.include?(i)}
       self.sp -= dam
       self.damage = 0 if self.damage == nil
       self.damage += dam
     end
   else
     slip_damage_effect_regen_later
   end
 end

end
14
Care to explain further? I'm really horrible when it comes to Common Events. :x
15
Quote from: The Niche on January 29, 2011, 04:51:33 pm
Common event, force use of a hp recovery skill.


I don't think that works when it's a roulette skill.
16
Quote from: Blizzard on January 28, 2011, 07:38:46 pm
Use SP Damage skill from Tons of Add-ons to allow a skill to affect SP instead of HP. Then just make a skill with -9999 power and set it as SP Damage skill.


Thank you very much. Glad you saw my thread.....again. :D

EDIT:
# - Explanation:
#
#   Instead of dealing damage / healing HP, this add-on allows your skill toƤ
#   do damage to / heal SP.
#   
# - Configuration
#   
#   SPKILL_IDS - include any IDs of SP Damage Skills and separate them with
#                commas (i.e. [58, 59, 60])
#   SP_TEXT    - set this to true if you want the SP word to be displayed in
#                the damage


This doesn't heal both HP and SP. Script says so itself.
17
Quote from: The Niche on January 28, 2011, 07:02:28 pm
If sp cost can be set to a negative value, set it to -9999.


It cannot be set to negative. I've tried that before I even searched for a script.

Quote from: The Niche on January 28, 2011, 07:02:28 pm
oh, yeah. If that doesn't work, you're fucked.


Thanks I guess? I'm pretty sure I've seen a script that allows a skill to fully recover the selected person. I can't find it anymore, hence the reason I'm asking.
18
I've searched all over the place for a skill that recovers both HP and SP, but I've only found something for SP. I'm looking for a script that can help me out. It's for an overdrive skill that completely recovers whoever it's used on. If someone can help me that would be really great. (:
19
RMXP Script Database / Re: [XP] Easy Party Switcher
January 27, 2011, 03:38:45 pm
Quote from: ForeverZer0 on January 27, 2011, 12:14:35 pm
You got some sort of funky business going on. Somehow, someway, a party member, which should be an instance of Game_Actor, is now an array. Start a new project, re-copy and paste the script in from the website, and try again. Likely some edit was made that shouldn't have been made.


That was exactly it. I feel like a total retard. Thank you both for helping me. Means a lot. :^_^': :^_^':
20
RMXP Script Database / Re: [XP] Easy Party Switcher
January 27, 2011, 04:13:32 am
No, actually. This is the only party script I have.

I tried doing what you told me to do. $game_party.actors[7][0] That didn't work. I'm really confused :???: :???: :???: I got a new error.

NoMethodError occurred while running script.
undefined method for '[]' for nil:NilClass