Every time Im in battle mode I pick attack and I have the sword slashing the enemy, but no damage is taken. How do I take damage to an enemy? What part do I fix the damage?
Announcement
Collapse
No announcement yet.
Battle damage help.
Collapse
X
-
Re: Battle damage help.
It sounds like you made your Direct Effect from scratch.
There is much to learn and explain to correct the problem.
The fast and easy way is to simply copy, paste, and modify a pre-existing Direct Effect and attach it to your item.
Then go to the Tutorials section of the Submissions forum here and find DungeonWarden's Advanced FAQ. It is extremely informative.
If you are using a preset effect, then I would need more information to properly answer your question.
Good Luck wit it.
Peace.
-
Re: Battle damage help.
Well first off you have to load the target data using Data->System->Substitute target attribute for variable then you do the hitpoints = hitpoints - damage. The hitpoints variable itself doesn't actually contain anyones hitpoints until you load them in using either the above command or Data->Member->Load if it is a member. The after you do the calculation you save the hitpoints variable back using Data->System->Substitute target variable for attribute. Of course there is a lot more to attacking than just this. So it seems you are new to RPGM2 so like Rodak said the FAQ is a must for any beginner who wants to do things with the battle system. If you have not gotten too far I would suggest starting a new game on Easy mode then switching to Hard so that you get all the preset data which is very helpful, and with it in hard you still get full control.
Here is the preset damage script
Script 47: Attack Success
000- Text: Clear Message
001- Battle: Make active character
002- Script: Call (Reduce HP)
003- Battle: Make active character
004- Script: Call (Target Name)
005- Text: Message 'was hurt for'
006- Text Content: Variable: Display (Damage Total) Digits not fixed
007- Script Branch: Condition Variable (damage total)=+1
008- Text: Message
009- Script Condition End
010- Script Branch: Condition Variable (Damage Total)=/1
011- Text Message
012- Script Condition End
Script 275: Reduce HP
000- Battle: Subsitute Target Attribute for variable
001- Data: Variable: (HP)=(HP)-(damage total)
002- Battle: Subsitute Variable for Target Attribute
*NOTE* That you have to use the make Active Character command before loading data and then after saving data, this is because these commands apply to the attacker by default, and by using this command you switch the attacker with the target temporarily, do the damage, then switch back.Last edited by thetruecoolness; 09-05-2005, 04:10 PM.
Comment
-
Re: Battle damage help.
Ummm...Originally posted by DokopopThanks guys. Now I know to start on easy mode when ever I get rpg maker 3.
RPGM3 is nothing like 2 and has only one, very limited, mode.
Nice thought though. If it offered two modes which unlocked other options I'd be a lot less critical of it.
Peace.
Comment





5198-2124-7210 Smash
Comment