Help - Search - Members - Calendar
Full Version: Conditioned Traits
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS3
Kread-EX
Conditioned Traits


Version: 1.05

Author: Kread-EX


Introduction
A simple script allowing you to specify conditions for traits in the every case it applies.
Features:
- Level condition (for actors)
- Switch condition (for classes and enemies)
- Skill condition (for actors and classes)

Instructions
Very easy, just use a notetag in either the actors, classes or enemies tab.
CODE
<trait_condition: x, y, z>

x = the trait number in the field (note that it starts at 0, not 1)
y = threepossible strings: level, switch (level is only for actors) or skill (actors and classes)
z = either the level threshold or the switch/skill ID

Script
Download

Terms and Conditions
You are free to adapt this work to suit your needs.
You can use this work for commercial purposes if you like it.
Credit is appreciated.
Yusshin
Thanks for pointing me here earlier, Kread :3

I put this in:

CODE
<trait_condition: 6, switch, 024>
<trait_condition: 7, switch, 025>
<trait_condition: 8, switch, 022>
<trait_condition: 9, switch, 023>


But it's not working. The switch is off, but it still gives the traits anyway.

:s

[Edit]

I tried putting another zero for the switches i.e. 0025 but it still didn't work...
Kread-EX
Remove the zeroes. They are not needed and they might be confused for octal numbers.
Yusshin
I removed the zeros; it looks like this now:

CODE
<trait_condition: 6, switch, 24>
<trait_condition: 7, switch, 25>
<trait_condition: 8, switch, 22>
<trait_condition: 9, switch, 23>


but I'm still getting the bonus. I should have 251HP at Level 4, but I have 263 because it's applying the +5%HP trait when it shouldn't (switch #22)

Here's the images:

[How It Should Look]

http://i43.tinypic.com/r6xq9k.png

[What it Actually Looks Like]

http://i44.tinypic.com/aorx4o.png

[Status Window]

http://i42.tinypic.com/292mx5x.png

[Scripts]

http://i44.tinypic.com/jhauqe.png
Kread-EX
I tested some more and found a bug that appears when you condition several traits in a row. I fixed it, so try to download the script again and see if the issue is solved.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.