I Was Thinking About Making A Topic Where People Can Ask For Simpler Codes For There Game And It Does The Exact Thing You Want Them To Do. For Example:
[Blocks]
<when green flag clicked>
<forever if><( <{ Lv. }><=> 1 )>
<set{ Max HP }to( 11 )>
<end>
<when green flag clicked>
<forever if><( <{ Lv. }><=> 2 )>
<set{ Max HP }to( 12 )>
<end>
<when green flag clicked>
<forever if><( <{ Lv. }><=> 3 )>
<set{ Max HP }to( 13 )>
<end>
[/Blocks]
Why Not Do:
[Blocks]
<when green flag clicked>
<forever>
<set{ Max HP }to( (( <{ Lv. }> <+> 10 )) )>
<end>
[/Blocks]
(I Suggested That To A Project called Stick RPG. He Had 1-18 Of The First Example.)
So Here's Where You Can Help People Make Simpler Codes or Ask For A Simpler Code!
Offline
Probs you can use my way of getting my HP (I will change the END stat to LVL stat)
[blocks]
<when green flag clicked>
<forever>
<if><( <{ Experience_Numerator }> <>> (( <{ Experience_Denominator }> <-> 1 )) )>
<broadcast[ Level UP
<change{ Level }by( 1
<end>
<end>
<when I receive[ Level UP
<set{ HP_Denominator }to( (( HP_Denominator <*> Level ))
[/blocks]
But of course you gotta start your game with a HP_denominator value or it wont work.
this is just another way i figured out... depends on how you want your game to work out.
Offline
SImniel wrote:
Probs you can use my way of getting my HP (I will change the END stat to LVL stat)
[blocks]
<when green flag clicked>
<forever>
<if><( <{ Experience_Numerator }> <>> (( <{ Experience_Denominator }> <-> 1 )) )>
<broadcast[ Level UP
<change{ Level }by( 1
<end>
<end>
<when I receive[ Level UP
<set{ HP_Denominator }to( (( HP_Denominator <*> Level ))
[/blocks]
But of course you gotta start your game with a HP_denominator value or it wont work.
this is just another way i figured out... depends on how you want your game to work out.
[blocks]
<when green flag clicked>
<set{ HP_Denominator }to( 1 )>
<forever>
<if><( <{ Experience_Numerator }> <>> (( <{ Experience_Denominator }> <-> 1 )) )>
<broadcast[ Level UP
<change{ Level }by( 1
<end>
<end>
<when I receive[ Level UP
<set{ HP_Denominator }to( (( HP_Denominator <*> Level ))
[/blocks]
Like That? And This Is Not My Game. I'm Just Making A Place Where People Can Ask For Simpler Codes and We Give Them A Simpler Code Or Tell Them Thats The Only Way.
Off Topic: I Think Some People Are Crazed Out That The Police Are On The Forums (I'm The User Police) I Don't Even Know Why I Created That User... Who Cares If I Delete It A Police Group Is Gone...Which Is.. Bad? Maybe I Could Make A Suggestion That You Can Merge Your Other User With Your Main One. If They Do The Thing I Want...
Offline
Look Its Not My Project.. This Is So People Can Ask For Simpler Codes. So You Don't Have A HUGE Mess in the scripting area...
Offline