This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-12-28 21:48:55

SImniel
Scratcher
Registered: 2008-09-27
Posts: 100+

Script Problem

I am having problems with my battle script for Jewel RPG 2.

Here's the problem:

When the character walks into the monsters it does what I wanted it to do PERFECTLY, it is to calculate if touching the the charcter and the character hasn't dodged (evade=0) then it calculates the DEF-MonsteDMG and if its below 1 its forces it to be valued at 1. and then subtracts it from the HP. But! When you do it again it doesn't work for some reason..

This is also when you kill the monster, its still gives the exp but on the second go... it doesn't.

Could anyone help please =]

Here is the link:
http://scratch.mit.edu/projects/SImniel/364907

NOTE:
To test this use the fighter, as I haven;t not scripted the attacks for mage and archer yet  smile

Offline

 

Board footer