- Joined
- Oct 10, 2014
- Messages
- 34
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Hi guys,
I know I've been asking a lot of questions, and I am glad for the help, I think this is my last problem, for a while. I'm just having some issues with a custom damage fomula.
I took a look at Fomar's tutorial. Made a separate Entry in my scripts, it took me all day, but I came up with my formula.
Its a long one.
I then put the following into my Custom Formula box:
a.custom_pa_attack(a,; c;But, I have a feeling that it's wrong. Can somebody help me out, I have no idea what I'm doing and it took me all day just to do the coding part above in a hopefully correct format.
EDIT: Oh yeah, it doesn't give any errors, but when I use the skill, it always shows up as null.
EDIT 2: Aaand I posted in the wrong spot again, what is wrong with me? Could somebody move this to the RPG Maker VX Ace support forum? I don't even know why I posted it here.
I know I've been asking a lot of questions, and I am glad for the help, I think this is my last problem, for a while. I'm just having some issues with a custom damage fomula.
I took a look at Fomar's tutorial. Made a separate Entry in my scripts, it took me all day, but I came up with my formula.
Its a long one.
def custom_pa_attack(a, b ) c = ((v[2]*((a.atk/1.5)**0.5)) * (1+(v[9]*0.01))) / (1+(v[9]*0.01)); e = ((rand(2)+1)*(a.level/3)) f = ((rand(1)+1)*(a.level/4)) if (rand(2)+1) == 1; c += e; elsif (rand(2)+1) == 3; c -= f; else; c = c; end; c *= ((a.level**0.5)+(0.01*(rand(75)+25))); if b.def <= 5; if rand(100) <= 4; c = c * 0.85; elsif rand(100) <= 15; c = c * 0.9; end; elsif b.def <= 10; if rand(100) <= 2; c = c * 0.75; elsif rand(100) <= 13; c = c * 0.8; elsif rand(100) <= 46; c = c * 0.85; end; elsif b.def <= 15; if rand(100) <= 4; c = c * 0.7; elsif rand(100) <= 22; c = c * 0.75; elsif rand(100) <= 63; c = c * 0.8; else; c = c * 0.9; end; elsif b.def <= 20; if rand(100) <= 4; c = c * 0.65; elsif rand(100) <= 16; c = c * 0.7; elsif rand(100) <= 31; c = c * 0.75; elsif rand(100) <= 80; c = c * 0.85; else; c = c * 0.8; end; elsif b.def <= 25;if rand(100) <= 5;c = c * 0.6;elsif rand(100) <= 20;c = c * 0.65;elsif rand(100) <= 45;c = c * 0.7;elsif rand(100) <= 85;c = c * 0.75;else;c = c * 0.8; end; elsif b.def <= 30;if rand(100) <= 5;c = c * 0.55;elsif rand(100) <= 25;c = c * 0.6;elsif rand(100) <= 65;c = c * 0.65;elsif rand(100) <= 95;c = c * 0.70;else;c = c * 0.75; end; elsif b.def <= 35;if rand(100) <= 5;c = c * 0.5;elsif rand(100) <= 25;c = c * 0.55;elsif rand(100) <= 65;c = c * 0.6;elsif rand(100) <= 95;c = c * 0.65;else;c = c * 0.7; end; elsif b.def <= 40;if rand(100) <= 10;c = c * 0.5;elsif rand(100) <= 35;c = c * 0.55;elsif rand(100) <= 85;c = c * 0.6;elsif rand(100) <= 95;c = c * 0.65;else;c = c * 0.67; end; elsif b.def <= 45;if rand(100) <= 10;c = c * 0.45;elsif rand(100) <= 35;c = c * 0.5;elsif rand(100) <= 85;c = c * 0.55;elsif rand(100) <= 95;c = c * 0.6;else;c = c * 0.65; end; elsif b.def <= 50;if rand(100) <= 15;c = c * 0.45;elsif rand(100) <= 45;c = c * 0.5;elsif rand(100) <= 90;c = c * 0.55;elsif rand(100) <= 95;c = c * 0.6;else;c = c * 0.65; end; elsif b.def <= 60;if rand(100) <= 15;c = c * 0.45;elsif rand(100) <= 75;c = c * 0.5;elsif rand(100) <= 95;c = c * 0.55;else;c = c * 0.6; end; elsif b.def <= 75;if rand(100) <= 15;c = c * 0.4;elsif rand(100) <= 75;c = c * 0.45;elsif rand(100) <= 95;c = c * 0.5;else;c = c * 0.55; end; elsif b.def <= 90;if rand(100) <= 15;c = c * 0.35;elsif rand(100) <= 75;c = c * 0.4;elsif rand(100) <= 95;c = c * 0.45;else;c = c * 0.5; end; elsif b.def <= 1000;if rand(100) <= 15;c = c * 0.3;elsif rand(100) <= 75;c = c * 0.35;elsif rand(100) <= 95;c = c * 0.4;else;c = c * 0.45; end; end;c.to_i;end;
a.custom_pa_attack(a,; c;But, I have a feeling that it's wrong. Can somebody help me out, I have no idea what I'm doing and it took me all day just to do the coding part above in a hopefully correct format.
EDIT: Oh yeah, it doesn't give any errors, but when I use the skill, it always shows up as null.
EDIT 2: Aaand I posted in the wrong spot again, what is wrong with me? Could somebody move this to the RPG Maker VX Ace support forum? I don't even know why I posted it here.
Last edited by a moderator: