Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: omegapirate2000 on October 20, 2008, 06:46:43 pm

Title: SP Share Script Edit
Post by: omegapirate2000 on October 20, 2008, 06:46:43 pm
EDIT: Ok, nevermind, it doesn't cause a problem anymore for whatever reason.
Title: Re: SP Share Script Edit
Post by: Aqua on October 20, 2008, 07:05:47 pm
Uck... this requires SDK @.@

Anyway.. what you have to edit is...


def maxsp
    sp = 0
      sp += $game_actor[ID_of_ACTOR].sp
    return sp
  end


This should work unless SDK /totally/ redefines how you get the actor's SP... or I'm just being dumb XD
Title: Re: SP Share Script Edit
Post by: omegapirate2000 on October 20, 2008, 10:49:31 pm
So replace

  def maxsp
    sp = 0
    @actors.each do |actor|
      sp += actor.seph_partysp_gmactr_maxsp
    end
    return sp
  end


With your code? Because I seem to be getting an error when I try to use it.

(http://i8.photobucket.com/albums/a3/omegapirate2000/anothererrorbaww.png)
Title: Re: SP Share Script Edit
Post by: Aqua on October 20, 2008, 11:14:37 pm
Did you put the ID # of the actor that the SP is taken from inside the []?
Title: Re: SP Share Script Edit
Post by: omegapirate2000 on October 20, 2008, 11:19:31 pm
Yep
Title: Re: SP Share Script Edit
Post by: Blizzard on October 21, 2008, 07:13:44 am
Should be "$game_actors", not "$game_actor". Shit happens. xD
Title: Re: SP Share Script Edit
Post by: omegapirate2000 on October 21, 2008, 10:19:54 am
Well now I'm getting problems at startup with the stack level being too deep on line 99 of Game_Actor.

Something to do with an exp list, I have no idea why that would be a problem, but apparently it is.

EDIT: It will also, seemingly at random, say the problem is at line 100.
Title: Re: SP Share Script Edit
Post by: Satoh on October 21, 2008, 02:35:08 pm
Quote from: omegapirate2000 on October 21, 2008, 10:19:54 am
Well now I'm getting problems at startup with the stack level being too deep on line 99 of Game_Actor.

Something to do with an exp list, I have no idea why that would be a problem, but apparently it is.

EDIT: It will also, seemingly at random, say the problem is at line 100.


Then it could very well be on line 98 or earlier, it's giving you the message based on what line it last read, most compilers will occasionally read a few lines before they crashes completely...

at least that's my first thought, it could be that there's errors on both of the line you mentioned... but check some of the other lines in that vicinity.
Title: Re: SP Share Script Edit
Post by: omegapirate2000 on October 21, 2008, 05:14:06 pm
Yeah it just gives them from all over that area.