Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
Ace questions are not permitted to be posted. VX questions only, thanks in advance!
![]() ![]() |
Jun 30 2011, 05:09 PM
Post
#1
|
|
![]() ![]() Type: Designer Alignment: Neutral Good |
I was wondering if anybody had a way to create a state called Astra. Astra is a state that prevents the next debuff from hitting, but only once. So if a character is under the effects of Astra, and an enemy tries to blind him, Astra will cancel out the blind, and then go away itself.
I have browsed over the state scripts, and thought that I found a way to do it using Deriru's statuses, using the Null Element feature. I created a new element called debuff. I then created a status named Astra, that would prevent against element 19 (the debuff element). However, when my character is under the Astra effect, he can still be blinded, or poisoned. Does anyone have any idea how to accomplish this? Edit: Thanks for the Move BigEd! Now that it's in the script requests, I would like to thank any scripters in advance! This post has been edited by Crystal King: Jun 30 2011, 05:22 PM -------------------- |
|
|
|
Jun 30 2011, 05:11 PM
Post
#2
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
I'm going to go ahead and move this to the Script Request forum for you, but I'll leave a link here. It should be pretty simple; you just need to check for that state before ever applying a debuff (you will need to configure which states are considered debuffs of course.) I would do it but, you know, I'm at work.
-------------------- My blog - It's awesome, I assure you
QUOTE While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jun 30 2011, 05:24 PM
Post
#3
|
|
![]() Has broken out of Staby Rehab! ![]() Type: Undisclosed Alignment: Chaotic Evil |
As Ed said, easy-peasy...
Spoiler: Just add <astra> to the state you want to be considered Astra, and <nastra> to the states you want Astra to cancel. -------------------- |
|
|
|
Jun 30 2011, 05:38 PM
Post
#4
|
|
![]() ![]() Type: Designer Alignment: Neutral Good |
Works perfectly! Thanks for your help!
-------------------- |
|
|
|
Jun 30 2011, 05:44 PM
Post
#5
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
Ahh, I just love it when the community comes together like this. Puts me in the mood for s'mores and Kumbaya.
-------------------- My blog - It's awesome, I assure you
QUOTE While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jan 15 2012, 06:25 PM
Post
#6
|
|
![]() Type: Undisclosed |
Hello!
Sorry for reviving the topic, but I was testing the script and unfortunately it didn't work properly. I tested in the RMVX's Default Battle System, but every state that is marked with <nastra> tag is never applied, regardless of the character is or isn't protected with Astra. This happened to someone else? Can someone help me? Thanks! |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 22nd May 2013 - 11:07 PM |
|
|