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.
Help with a script (Actor Customization)

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 84
Hello everyone,

This is my first message here, and I'm writting because I can't solve this problem.
As the title says, I'm using the script Actor Customization http://rmrk.net/index.php?topic=20154.0.
It makes that the characters get points every level, and you can distribute it between the different stats. It has an option that allows to make different "upgrade per point", one using the actor ID of the database, and another using the class ID of the actor in the database.
When I tried it in a new project, it doesn't get any error, the same as when I used in my project. But when I edit it and say to use the class ID, an error appears.



Can anyone solve this?
Thanks for your time,
Agju

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, how precisely did you edit it? Show us what you changed. If I had to take a guess there's an addition operation involving the variable that held actor_id and when you replaced it with class_id it left you with an uninitialized variable actor_id which caused the script error when it got to the addition operation.

*
Rep: +0/-0Level 84
I'm sorry I can't precise more (I'm not in front of my computer), but if you have the script, in line 21 it says
Use_class_id = false   # Advance characters based on the class ID

I think that if you put
Use_class_id = true   # Advance characters based on the class ID

from this line
# Format = {Actor.id (or class_id) => Amount to raise}
Actor_HP = {1 => 5, 2 => 5}

the red numbers changed to be the class_id of the database.
Well, when I change Use_class_id = false to true, it's when I get that error.
I think there's no conflict whit other scripts I use, because it also happens in a new project with default scripts.

If you need more precision, I will make a more precise post when I get home (in 2 days)

Thanks again,
Agju