Oceanspirit Dennis: 3D [mags]

Started by Icey, Thu 28/04/2011 07:03:40

Previous topic - Next topic

Icey

Awesome! At least one person didn't have a prob with the 3D!  :D
Thanks grim.

Construed

No problem, I've always been a big 3d enthusiast.
I felt sorry for myself because I had no shoes.
Then I met the man with no feet.

Monsieur OUXX

#82
EDIT: unnecessary post.
 

ig299

Quote from: Icey games on Thu 23/02/2012 23:16:44
Well they are actually Health Indicators.

Here's a look at a edited piece of the S3 RPG module or script I made to use for my games.

Code: ags

//Place this line in a New script
function repeatedly_execute_always() { wait a sacond you have to make your own function right


}
(%d) this is where the numbers will be shown.

PlayerHP or PlayerBaseHP is the Variable used to express the players health. You must make a Int Variable in the Global Variable section.
You can give it a set number like 100 or something in the 3rd text box. Or you can do it somewhere in the room script.
Just put PlayerHP += (what ever amount you want).

Note: If your gonna sue PlayerBaseHP then you gotta use Player HP.

If use something like a Potion or a Hi-Potion is used by the player which might make the PlayersHP exceed the PlayerBaseHP. 
You would use something like this in the new script:

----------------
if(PlayerHP >= PlayerBaseHP){
    PlayerHP = PlayerBaseHP;
  }
---------------




PlayerHpLabel.Text = String.Format("HP:%d", PlayerHP);//Health of the player
  
or
 
PlayerHpLabel.Text = String.Format("HP:%d/%d", PlayerHP, PlayerBaseHP);//Health of the player

}


Edit/add anything you want, just keep it all in the Function I gave you above.

ig299

wait a second you have to make your own function right?

LimpingFish

@ig299

As Icey has suggested, you would be better off taking any questions you have for him to PM. Thanks. :)
Steam: LimpingFish
PSN: LFishRoller
XB: TheActualLimpingFish
Spotify: LimpingFish

SMF spam blocked by CleanTalk