The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: vindaca on September 08, 2013, 11:42:01 AM

Title: V's Conditional Check's v1.2
Post by: vindaca on September 08, 2013, 11:42:01 AM
V's Conditional Check's  v1.2
Written by Vindaca


Introduction
This script adds additional checks for conditional branches like:
Screenshots
Not needed.


Updates / Bug Fixes

Any and all changes made can be found in the Description section located in the top portion of the script.


How to Use

Instructions can be found in the top of the script.

Script

This script is too long for now, so here is a link (http://pastebin.com/raw.php?i=q0uXuYXH) to the script


Requests

If anyone has any requests for alterations please PM me the details and I will try to accommodate them for you.


Quote
Is your wallet obese, does it have a hard time fitting into your old jeans. I have found the cure. You can now put your wallet on a diet by donating to the less fortunate.
Title: Re: V's Check Mate v0.3
Post by: Caveras on September 09, 2013, 07:26:38 AM
Nice one, definitely useful!

Only one thing: You could paste some of your instructions here so people would know better what the script is about instead of checking pastebin first.

Oh, and it's "past this point", not "passed" ;)

Thanks anyway, good script!
Title: Re: V's Check Mate v0.3
Post by: vindaca on September 09, 2013, 08:18:01 AM
LOL. Thank you very much. I can't believe I didn't catch that!

I had some of them up but the list got kinda long and this script is on more then one site. So to save on the editing time I will have to decline on the request to post them here. The description should be enough to make someone look...
If you looked to find out, others can too. I made it very clear there what the script can do, and no offense, but honestly, if they don't look then their missing out, and that's what they get for judging a book by it's cover.
In order for me to keep putting out scripts fast, I just make one edit to the script not the posts. If I spend all my time editing the posts every time I update, or in this case add a new check, I won't have time for anything else.

Sorry and I hope you understand.
Title: Re: V's Check Mate v0.3
Post by: Caveras on September 09, 2013, 10:49:39 PM
No problem =) I'm happy I clicked anyway! .. although I admit that I thought this was some chess-related game script, judging from the title alone =)
Title: Re: V's Check Mate v0.3
Post by: vindaca on September 10, 2013, 12:05:46 AM
That I can fix.
Title: Re: V's Conditional Check's v0.4
Post by: TheoAllen on September 11, 2013, 11:27:28 PM
I just looked at your script. And I found interesting methods
  def has_weapon_equiped?
    weapons.compact.any? {|i| i.etype_id == 0 }
  end
  def has_armor_equiped?
    armors.compact.any? {|i| i.etype_id == 1 }
  end

If you don't mind, I would suggest you one thing
If you want to check whether weapons or armors is exist, you may just write it

!weapons.compact.empty?
!armors.compact.empty?


Hope it may improve your scripting skill
Title: Re: V's Conditional Check's v0.4
Post by: vindaca on September 12, 2013, 03:50:15 AM
Thank you Theo, I didn't even think about using .empy? to check. I was just trying to write it as quick as possible and I had to use that method quite a few time for other reasons. But thank you for pointing that out.

I think I'm finished with this one, unless anyone has any requests for me to add in. Honestly there's not really much else that can't be check with the system already.