Status
Not open for further replies.

Pokeblue

Warper
Member
Joined
Feb 11, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMXP
Hello, I've looked everywhere for an answer as to why I can't seem to deal any damage via default attack.
I am using RPG Maker XP 1.02a. And yes, I have tried the "skill 1 is the basic attack" trick.
Here are some screenshots:actors.PNGenemies.PNGSkills.png

I don't know, there might be something terribly wrong that I'm not noticing. I'm new to this program.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
425
Reaction score
176
First Language
English
Primarily Uses
RMXP
Do you not have a weapon equipped? If your Attack stat is 0, your basic attack won't do anything.
Code:
      # Calculate basic damage
      atk = [attacker.atk - self.pdef / 2, 0].max
      self.damage = atk * (20 + attacker.str) / 20
 

Pokeblue

Warper
Member
Joined
Feb 11, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMXP
Oh, that must be it. I'm a dumb**s. I thought I would be able to deal a basic amount of damage with no weapon, my logic pointing to punching stuff, but thank you, this fixed my issue.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,645
Reaction score
6,152
First Language
Dutch
Primarily Uses
RMXP

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.

Latest Threads

Latest Posts

Latest Profile Posts

Making progress. And simplifying.
jV7qfoy.gif
Not sure why I'm a jack of all trades , master of none... Sigh. Album out 06/03/2022 on all ur favorite platforms. 10 tracks.
Hmm... Mushrooms, maybe they're not poisonous...
unknown.png
Hi, I'm a new and upcoming Indie Developer, and I could really use some help when it comes to system programming. Explorers can only go so far before needing a map, you know?
I made a comic strip with the characters of my game.Flor en la cola eng.jpg

Forum statistics

Threads
122,058
Messages
1,146,205
Members
160,331
Latest member
alfdhgsh
Top