Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Conditioned Traits
Kread-EX
post Dec 28 2011, 10:51 AM
Post #1


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




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.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies (1 - 4)
Yusshin
post Feb 22 2012, 12:26 PM
Post #2


In'shallah !
Group Icon

Group: Revolutionary
Posts: 282
Type: Writer
RM Skill: Beginner




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...

This post has been edited by Yusshin: Feb 22 2012, 12:30 PM


__________________________
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Feb 22 2012, 12:35 PM
Post #3


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Remove the zeroes. They are not needed and they might be confused for octal numbers.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Yusshin
post Feb 22 2012, 08:14 PM
Post #4


In'shallah !
Group Icon

Group: Revolutionary
Posts: 282
Type: Writer
RM Skill: Beginner




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

This post has been edited by Yusshin: Feb 22 2012, 08:23 PM


__________________________
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Feb 23 2012, 02:07 AM
Post #5


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




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.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 02:24 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker