V's Conditional Check's v1.2
Written by VindacaIntroductionThis script adds additional checks for conditional branches like:
- PC Time
- Game Time
- Checks to see if a actor has certian weapon equipped
- Checks to see if a actor has certian type of weapon is equiped
- Checks for HP, MP and TP values
- Checks for Params and X & S Params
- Item Quantities
- Gold Spent in Stores
- Total Gold Found
- Steps Taken, and many more.
ScreenshotsNot needed.
Updates / Bug FixesAny and all changes made can be found in the Description section located in the top portion of the script.
How to UseInstructions can be found in the top of the script.
ScriptThis script is too long for now, so here is a link (http://pastebin.com/raw.php?i=q0uXuYXH) to the script
RequestsIf 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.
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!
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.
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 =)
That I can fix.
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
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.