...
pichaque said:
Thanks DarkMage, I tried it, but for some reason the pictures dont show up on the correct spot. ANd i have a question...how will i do the damage?
Yes, yes, yes. Pictures are a pain in the ***. The reason is the locations are screen-relative, not map relative. With a map of 15x20, you can have locations for pictures in the five hundreds (ex: 20x350). Also, the Y axis in inverted, so if you add one to Y, it goes down relative to your screen. The X axis is still left to right though. The only way to get precise location is guess and check. As soon as you get the coordinates right, though, just reuse them for all the other pictures. If the enemy location is (5,7)(which it isn't) just use that locale for each enemy pokemon picture.
Damage is relatively easy. You need a variable representing the damage and a formula to calculate the damage. This should include your pkmn's attack, the enemies defense, and a bit of randomness. Start be making a conditional branch stating IF Pikachu (or someone else) is level 30 or above. Under that, Variable Operations and make a new variable called Damage Range. Set it to a random number between the range of, say, 30-50. That's about how much damage will be dealt.
The formula I use is your attack divided by two (halved) added to the Damage Range variable. Then the enemies defense is divided by four and subtracted from Damage Range. Attack+(30to50)-(Defense/4)= Damage dealt.
To do that, make a variable for Pikachu's attack (set in the database under heros) and a variable for enemy's defense. Take Attack and click Divide in the next field, and under Operand select Set and 2. Repeat the process and it should look like this:
<>FORK Conditions: Pikachu level is at least 30
Variable Operations:[0001:Damage Range]Set,30-50
Variable Operations:[0002:Ally Attack]Set, Pikachu Attack
Variable Operations:[0002:Ally Attack] /, 2
Variable Operations:[0001:Damage Range]+v[0002]
Variable Operations:[0003:Enemy defense]Set,20
Variable Operations:[0003:Enemy defense] /,4
Variable Operations:[0001:Damage Range]-v[0003]
:Else Case
Fork Conditions: Pikachu level is at least 15
yadayadayada
Good luck with the pictures' placement. I hope your damage question was answered.