slentara1
Member-
Content Count
34 -
Joined
-
Last visited
Community Reputation
0About slentara1

-
Rank
Advanced Member
-
I wish i knew a little more. i searched around but didn't see anything similar to what i'm wanting to accomplish here. I'll keep looking.
-
slentara1 started following Custom TP Gains
-
So that is what i was doing wrong? good to know i wasnt breaking the game lol
-
I think i know what i did wrong. after making changes i never actually clicked to save the project. i entered the script onto my other computer then clicked to save project and everything worked as it was.supposed to.
-
I'll try to keep up with it from now on.
-
William I down loaded the project file, I copied and pasted the first skill and the script into my project and it didn't work. So I copied all the data files from your project into mine and it worked. I replaced the value with the formula I wanted to use and it also worked. So all is well now. Thank you for sticking with me through this. I still don't know what originally went wrong but I appreciate all your help.
-
I'll try to do what you're asking, but I have added absolutely nothing to any projects except for this script. imagine having just installed the software and opened your first project, that is what I'm working with I've added no event, I haven't even drawn a map or set my starting point all that I have done is add the script. I'm not trying to say your lying about getting it to work, I'm sure you can make it work, but I can't and I'm just as frustrated as you because I don't know anything about scripting and I've fixed everything I did wrong and still can't get it to work. it just keeps coming back as no damage. I'll post the project when my wife is done with the computer, but if I can't get it working today then I'm not gonna worry about it anymore.
-
I started a new game and still returns zero damage I don't understand why it isn't working. class Game_BattlerBase def conditional_attack(a, base_damage = 15 if a.atk <= 100 base_damage = base_damage elsif a.atk <= 125 base_damage = base_damage * 2 elsif a.atk <= 150 base_damage = base_damage * 3 elsif a.atk <= 175 base_damage = base_damage * 4 elsif a.atk <= 200 base_damage = base_damage * 5 end final_damage = base_damage.to_i final_damage.to_i end end This how the script is supposed to look right? I've uploaded my script and skill data for you to look at maybe you can see something I can't. Data.zip
-
I have the extra lines added now and it still returns zero damage I'm clueless as to why it isn't working. if I send you my project file would you be able to figure it out better?
-
here is the script that I inserted under game_battlerbase. def conditional_attack(a, base_damage = 15 if a.atk <= 100 base_damage = base_damage elsif a.atk <= 125 base_damage = base_damage * 2 elsif a.atk <= 150 base_damage = base_damage * 3 elsif a.atk <= 175 base_damage = base_damage * 4 elsif a.atk <= 200 base_damage = base_damage * 5 end final_damage = base_damage.to_i final_damage.to_i end I created a new script like you said. Created a skill called the formula like you said and it is returning zero damage and my actor has 20 attack. the values I changed earlier are back to there defaults .to_i. I've also attached a screenshot of the skill. If anything is messed up it should be in one of these areas.
-
ok I'm not trying to ignore what you're asking but I'm commenting on my phone because I don't have connection on my computer. I'm not able to copy and paste the scripts
-
damage is just running zero. it's on a new project file, so other than your script everything else is default
-
I copied the script and added it at the bottom of the game_battlerbase above the final 'end' command. in the damage formula of the skill I put 'a.conditional_attack(a, b)' I don't know what's going wrong.
-
could you go over how to call the skill again just so I'm sure I'm doing it right
-
copied and pasted the script and it didn't work. I don't know why.



