Print

Author Topic: Legend of Platinum Mushrooms  (Read 5103 times)

Chupperson Weird

  • Not interested.
« Reply #15 on: September 27, 2002, 11:46:53 PM »
What?
That was a joke.

« Reply #16 on: September 28, 2002, 01:42:51 PM »
Has to do with JavaScript. That's all I will say.

****! I'm no good with storylines! We gotta scrap this story!
_________________
The pen is mightier than the sword, unless the sword is in the hands of Lu Bu.

Chupperson Weird

  • Not interested.
« Reply #17 on: September 28, 2002, 11:32:38 PM »
I second the notion.
hehe

Anyway, this story made no sense from the beginning. Bye, story!

Dexter, boy genius...Dexter, the cookie
That was a joke.

« Reply #18 on: September 30, 2002, 06:40:04 PM »
As of now, my JavaScript is NOT working.  Also, I need to learn how to make the program remember your stats...and that means cookies.  More books for me.  Joy.

The following stats I am programming right now for use in the RPG:
Health: Obviously, when it's at 0, you die.

Flower Points: These are shared by the entire party.  Used for the magic spells.

Star Points: Do NOT confuse these with Paper Mario's Star Points.  These are used for the Special Attacks of each character, such as for Mario, Power Jump.

Strength: Determines how strong physical power is.

Defense: Determines how much you can prevent physical damage.

Wisdom: Determines "magic attack".

Holiness: Determines "magic defense".

Speed: The character with the fastest speed goes first.

Evasion: The higher this number, the higher your chances of evading enemy attacks.

Strike: The higher this number, the higher your chances of PowerHits (critical strikes).

Here is how the attacks are programmed.

For Physical:
damage = attack_power + strength - enemy_defense.  Damage minimum is 1.

For Magic:
damage = magic_spell + wisdom / enemy_holiness.  Damage minimum is 3.

And here's how I am making the chances of evasion and strike:

Basically, I tell the program to give me a random number from 0 to 1 (e.g. 0.532, 0.291, etc).  Then that number is multiplied by 100.  If this result is ABOVE your Evasion value, then the enemy attack hits.  If the result is BELOW or EQUAL TO your Evasion value, then the attack misses.  Same goes for Strike.  Here's how it goes in JavaScript:

var eva_chance = Math.rand() * 100;
if (eva_chance > eva)
 {
hp = hp-damage;
document.write('You were hit for ' + damage + ' damage');
 }
if (eva_chance <= eva)
 document.write('The attack missed')

LieutenantEagle
--------
Gandalf: The Eagles have come!  The Eagles have come!
LieutenantEagle: I know.  They''re in front of you.
LieutenantEagle
--------
Gandalf: The Eagles have come!  The Eagles have come!
LieutenantEagle: I know.  They''re in front of you.

Chupperson Weird

  • Not interested.
« Reply #19 on: September 30, 2002, 07:58:17 PM »
Does this have something to do with this RPG, or just some thing you're working on?

Dexter, boy genius...Dexter, the cookie
That was a joke.

« Reply #20 on: October 01, 2002, 05:22:25 PM »
It's his "creation", a game about Mario.

Note he said "JavaScript".

Click his profile to go to his site and see what's going on (or mine, doesn't matter).
_________________
The pen is mightier than the sword, unless the sword is in the hands of Lu Bu.

Chupperson Weird

  • Not interested.
« Reply #21 on: October 01, 2002, 07:46:49 PM »
Okeeeee...

Dexter, boy genius...Dexter, the cookie
That was a joke.

Print