SP Share Script Edit

Started by omegapirate2000, October 20, 2008, 06:46:43 pm

Previous topic - Next topic

omegapirate2000

October 20, 2008, 06:46:43 pm Last Edit: October 22, 2008, 12:22:07 pm by omegapirate2000
EDIT: Ok, nevermind, it doesn't cause a problem anymore for whatever reason.
Spoiler: ShowHide

Aqua

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

omegapirate2000

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.

Spoiler: ShowHide

Aqua

Did you put the ID # of the actor that the SP is taken from inside the []?

omegapirate2000

Spoiler: ShowHide

Blizzard

Should be "$game_actors", not "$game_actor". Shit happens. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

omegapirate2000

October 21, 2008, 10:19:54 am #6 Last Edit: October 21, 2008, 10:21:42 am by omegapirate2000
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.
Spoiler: ShowHide

Satoh

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.
Requesting Rule #1: BE SPECIFIC!!

Light a man a fire and he'll be warm for a night...
Light a man afire and he'll be warm for the rest of his life... ¬ ¬;

My Resources

omegapirate2000

Yeah it just gives them from all over that area.
Spoiler: ShowHide