RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Setting characters' max SP

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
Menu & Battle System Guru
Anybody know how to set the maximum sp a character can reach (I want to set it to 100)?

I think it would be something like this but im not sure
if actor.max_sp >= 100
  set actor.max_sp = 100

i'm looking at where to set this limit (script wise) so that characters cannot curve past 100 sp.

i hope thats not too confusing,
thanks!

*****
Ancient Mummy
Rep:
Level 90
Yes i think that is the right way putting it..

***
Rep:
Level 88
Menu & Battle System Guru
lol, yes but do u know what script to throw it in?

*****
Ancient Mummy
Rep:
Level 90
I'm guessing in game_character 1 or 2 or 3..

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Most Mature Member2011 Favourite Staff Member2011 Best Use of Avatar and Signature Space2011 Best Veteran2011 Best RPG Maker User (Scripting)2010 Best RPG Maker User (Scripting)2010 Most Mature Member
Why not just set it in the database?

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Oh, you wanted the limitation IN GENERAL! Lol, I thought you wanted it for the CSGS specifically. Then just use this code:

Code: [Select]
class Game_Actor

  def maxsp
    n = super
    return (n > 100 ? 100 : n)
  end
 
  def maxsp=(val)
    super(val > 100 ? 100 : val)
  end
 
end

Sorry for the misunderstanding, blazin'. (>.<)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

***
Rep:
Level 88
Menu & Battle System Guru
aaaaand blizzard comes in clutch yet again. RESOLVED!

thanks, blizz.

btw who is that baaaaaaanging chick in ur avator?

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
It's a friend of a girl I chat with on ICQ.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!