Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • ABS help
« previous next »
  • Print
Pages: [1]

Author Topic: ABS help  (Read 2177 times)

Offline benjie417234

  • Member
  • Initiate
  • *
  • Posts: 74
ABS help
« 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?
Logged

Offline lilsniffs3

  • Exemplar
  • *
  • Posts: 1,573
(No subject)
« Reply #1 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.
Logged

Offline benjie417234

  • Member
  • Initiate
  • *
  • Posts: 74
(No subject)
« Reply #2 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
Logged

Offline benjie417234

  • Member
  • Initiate
  • *
  • Posts: 74
(No subject)
« Reply #3 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?
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #4 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).
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • ABS help
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum