babyProject #03 : Priest the Healer

View previous topic View next topic Go down

babyProject #03 : Priest the Healer

Post by luv60D on Sat Nov 21, 2009 11:36 pm



Dalam beberapa game, sering kita tau ada namanya job healer yang dikenal dengan priest, acolyte, cleric dan lainnya. Nah kita akan mencoba sedikit simulasi dari heal area yang biasa dimiliki oleh job ini.

Pertama, input jumlah party anda (0<partyNum<10). Lalu tanyalah currentHP (0<currentHP<=maxHP) dan maxHP (1< maxHP<=9999) tiap player dalam party.

AreaHeal dapat menyembuhkan 500HP (currentHP) ke semua anggota dalam party.
Output yang keluar adalah “AreaHeal casted” lalu semua currentHP dan maxHP setelah skill AreaHeal.

Hints: Ingat, currentHP tidak boleh melebihi maxHP. Kalau currentHP = 0 (alias DEAD), maka player tidak ter-heal.

Perhatian!! Mulai babyProject kali ini… TIDAK PERLU eror handling input, jadi input akan selalu dalam batas yang ada. dan penampilan pesan input TIDAK HARUS dicantumkan juga tidak apa-apa, yang penting outputnya benar.

Contoh Hasil Program:
4 //<- Jumlah player dalam party
100 120 //<- currentHP dan maxHP
1200 3000
0 999
750 1000 //<- 4 kali input karena ada 4 player
AreaHeal Casted //<- Mulai output
120/120
1700/3000
0/999
1000/1000

HINTS:
1. tanya jumlah party
2. pengulangan (for) sampe jumlah party, tanya currentHP dan maxHP, masukkinnya dalam array
3. pengulangan (for) cast AreaHeal dan cek apakah HP melebihi batas (if else)
4. pengulangan (for) cetak deh hasilnya... jangan lupa formatnya pake "/" yah...

luv60D
Paparoner
Paparoner

Number of posts : 30
Age : 27
Location : Earth...
Points :
0 / 1000 / 100

Registration date : 2008-02-28

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by XenRichia on Sun Nov 22, 2009 12:03 pm

yang ini pake hide ngak?

XenRichia
Paparoner
Paparoner

Number of posts : 36
Age : 25
Location : Jakarta-Karawaci-Jakarta
Points :
0 / 1000 / 100

Registration date : 2009-08-29

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by luv60D on Sun Nov 22, 2009 12:14 pm

pake juga smuanya.... hehe..

luv60D
Paparoner
Paparoner

Number of posts : 30
Age : 27
Location : Earth...
Points :
0 / 1000 / 100

Registration date : 2008-02-28

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by CenT on Sun Nov 22, 2009 10:11 pm

keberapax ne??


CenT
Paparon Maniac
Paparon Maniac

Number of posts : 215
Age : 26
Points :
0 / 1000 / 100

Registration date : 2008-08-30

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by XenRichia on Sun Nov 22, 2009 10:35 pm


XenRichia
Paparoner
Paparoner

Number of posts : 36
Age : 25
Location : Jakarta-Karawaci-Jakarta
Points :
0 / 1000 / 100

Registration date : 2009-08-29

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by plue_rave on Tue Nov 24, 2009 6:00 pm



Last edited by plue_rave on Wed Dec 02, 2009 9:00 pm; edited 1 time in total

plue_rave
Paparoner
Paparoner

Number of posts : 49
Age : 26
Location : Cimone
Points :
0 / 1000 / 100

Registration date : 2008-10-30

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by XenRichia on Tue Nov 24, 2009 8:22 pm

sur, kaga pake - hide nya hohoho XD

XenRichia
Paparoner
Paparoner

Number of posts : 36
Age : 25
Location : Jakarta-Karawaci-Jakarta
Points :
0 / 1000 / 100

Registration date : 2009-08-29

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by hans_989 on Thu Nov 26, 2009 8:26 pm

eaa..
gag baca deh pasti..
skrg jawaban sur bisa dbaca smua orang..haha

_________________
Seven days without chocolate makes one weak

hans_989
Moderators
Moderators

Number of posts : 1246
Age : 27
Location : Lonesome country
Points :
0 / 1000 / 100

Registration date : 2008-02-27

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by ::n93L:: on Tue Dec 01, 2009 5:49 pm

Kalo di hide yang bisa baca cuma admodsnya yuph?

::n93L::
Paparon Newbie
Paparon Newbie

Number of posts : 8
Age : 25
Location : Everywhere~
Points :
0 / 1000 / 100

Registration date : 2009-08-23

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by hans_989 on Fri Dec 11, 2009 11:23 pm

kalo lw udah ngepost juga bisa..
makanya diharapkan ngepost dulu baru coment gan..

_________________
Seven days without chocolate makes one weak

hans_989
Moderators
Moderators

Number of posts : 1246
Age : 27
Location : Lonesome country
Points :
0 / 1000 / 100

Registration date : 2008-02-27

View user profile

Back to top Go down

Re: babyProject #03 : Priest the Healer

Post by Sponsored content Today at 11:21 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum