Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: benjie417234 on October 11, 2007, 08:47:21 AM

Title: ABS help
Post by: benjie417234 on October 11, 2007, 08:47:21 AM
I'm gonna get right into it. First, make a new event, name it ?enemy?, and set it's graphic to you enemies graphic. Set the trigger condition to "Colision with Hero" and make it on the same level as the hero. Make it's movement type "toward hero". In the event's commands, make a fork condition, and make it "If event was started using action key", and check "Else Case". In that fork, "?play sound: hit?", "Flash event, this event, .5 sec", "Move event, this event, start jump, random, end jump", Make a new variable called "?Enemy's HP?", then "Variable, subtract 1 from Enemy's HP".

Now, make a new page. Set the graphic to blank, make it below hero. Under "Preconditions", check "variable, if enemy's hp is 0". Now go back to the first page.

Under the "Else Case", "?play sound: hit?", "Flash event, Hero, .5 sec", "Move event, Hero, start jump, random, end jump", make a new variable called "?Hero's HP?", then "Variable, subtract 1 from Hero's HP".

Now, after "End", make a fork condition, "If Hero's HP is 0, no Else Case" and inside the fork, put "Game Over". This will end the game if the hero takes too much damage.

okay that's it....the only problem is that i don't know where to put the hero's hp and the monster's hp...help?
Title:
Post by: lilsniffs3 on October 12, 2007, 02:40:28 AM
Change the thing from new page to 10. Then after you have the fork about the action key, put variable operations, plus 1 to monster hp. The hero will go to game over on its own.
Title:
Post by: benjie417234 on October 14, 2007, 07:03:24 AM
The weird thing is that the monster dosen't get
damged but i get damaged....i keep dying
Title:
Post by: benjie417234 on October 15, 2007, 07:25:20 AM
Sorry but i'm a moron..i don't get it.
Can you send a screenshot or something?
Title:
Post by: DragonBlaze on October 15, 2007, 06:35:30 PM
 
Quote
okay that's it....the only problem is that i don't know where to put the hero's hp and the monster's hp...help?


Can you be a little more specific? The heros hp and the monsters hp need to be stored in variables. The hp subtraction commands from the hero or enemy should be stored on page 1 of the enemy event. (page 2 is the dead enemy, so it wouldn't make much sense putting it there).