Skill custom formula help.

Status
Not open for further replies.

ProtoflareX

Veteran
Veteran
Joined
Jul 16, 2013
Messages
40
Reaction score
5
First Language
English
Primarily Uses
Hello, I am trying to make a skill that applies a stacking damage over time state to an enemy. On the skill's first use, it will apply state 1, on its second use, it will remove state 1 and add state 2, and on its third use, it will remove state 2 and add state 3 which is the final stack of the DoT. I attempted to use a script called "Neon Black's Stacking States" to accomplish this, but the script conflicts with another script in my project and does not work properly. As a result of that, I'm wondering if this stacking DoT can be created through the custom formula. Thank you in advance for your help.
 

ProtoflareX

Veteran
Veteran
Joined
Jul 16, 2013
Messages
40
Reaction score
5
First Language
English
Primarily Uses
Well, I figured out how to make state 1 change into state 2, but I can't seem to figure out how to make state 2 go to state 3. I know next to nothing about how ruby works, but I tried the following.

<conditional state>

if a.state?(4)

   5

else

   4

if a.state?(5)

   6

end

</conditional state>

 

and

<conditional state>

if a.state?(4)

   5

else

   4

end

</conditional state>

<conditional state>

if a.state?(5)

   6

else

   6

end

</conditional state>

 

Neither of them worked, so clearly I'm doing something wrong, might you be able to help me figure this out?
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Code:
if a.state?(4)   5else   4if a.state?(5)   6end
--> The structure of this is TOTALLY WRONG... you cannot put an if without ending the other if first... in your code, you have two successive ifs, and the upper one didn't have an end clause

Code:
if a.state?(4)   5elsif a.state?(5)   6else    4end
 
Last edited by a moderator:

ProtoflareX

Veteran
Veteran
Joined
Jul 16, 2013
Messages
40
Reaction score
5
First Language
English
Primarily Uses
if a.state?(4) 5else 4if a.state?(5) 6end--> The structure of this is TOTALLY WRONG... you cannot put an if without ending the other if first... in your code, you have two successive ifs, and the upper one didn't have an end clause

Code:
if a.state?(4)   5elsif a.state?(5)   6else    4end
Shows you how much I know about ruby, anyway I'll try your variant to see if it works.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
tell me if it works, though I think it should...
 

Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,327
Reaction score
473
First Language
English
Primarily Uses
RMMZ
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top