AktorTraits XP - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: AktorTraits XP (/thread-8772.html) |
AktorTraits XP - kyonides - 06-26-2023 AktorTraits XP
by Kyonides
Introduction A forumer once asked for a very specific script to be made, a Trait System for the player's mobsters. Add as many "traits" to each list this way: Code: LIKES = ["ice cream", "football", "science", "languages"] If it gets too long, you can add more traits in the following lines. Code: LIKES = ["ice cream", "football", "science", "languages", "dancing", It has several Optional Script Calls, thus feel free to read the # embedded comments left there. Embedded Comments
Code: # * Script Calls * # WARNING!
It would fail if you are testing your game using old save files. An Actor's Position or Actor's Index can be any Number starting from 0. The larger your Party is, the more positions there will be available. Terms & Conditions Free for use in any game. Due credit is mandatory. Don't piss me off! That's it! RE: AktorTraits - kyonides - 06-27-2023 Small But Useful Update
So far you could ask questions to find out if an Actor or Clone had the right "Trait". What the script now lets you do is passing 1 out of 2 types of arguments. Let me explain this with an example. Code: actor.personality?("Brave") As you can see above, in one case we asked the script if the clone is brave but in the second one we wanted to know if the second clone called actor2 has the same personality as the first actor. The former is pretty straightforward and it's useful whenever you wanna check if he has the right attitude. The latter is a bit different. The script will extract actor2's personality and compare it with actor's own personality. This will be extremely helpful for you whenever you need to find out whether or not they'll be good teammates. |