mob
proc
hudattacks()
if(usr.click == 1)
if(usr.kilearn == 1)
usr << "You select 'Ki Blast' as your attack."
usr.click += 1
usr.attacks = "Ki Blast"
for(var/obj/hudattack/o in usr.client.screen)
o.icon_state = "ki"
return 0
if(usr.click == 2)
if(usr.standardlearn == 1)
usr << "You select 'Melee' as your attack."
usr.attacks = "Melee"
for(var/obj/hudattack/o in usr.client.screen)
o.icon_state = "standard"
usr.click += 1
return 0
if(usr.click == 3)
if(usr.bigbanglearn == 1)
usr << "You select 'Big Bang Attack' as your attack."
usr.attacks = "Big Bang"
for(var/obj/hudattack/o in usr.client.screen)
o.icon_state = "bigbang"
usr.click += 1
return 0
else
usr.click += 1
usr.hudattacks()
if(usr.click == 4)
if(usr.tribeamlearn == 1)
usr << "You select 'Tri Beam' as your attack."
usr.attacks = "Tri Beam"
for(var/obj/hudattack/o in usr.client.screen)
o.icon_state = "tribeam"
usr.click += 1
return 0
else
usr.click += 1
usr.hudattacks()
if(usr.click == 5)
if(usr.kamelearn == 1)
usr << "You select 'Kamehameha' as your attack."
usr.attacks = "Kamehameha"
for(var/obj/hudattack/o in usr.client.screen)
o.icon_state = "kame"
usr.click = 1
return 0
else
usr.click = 1
usr.hudattacks()
k just informing you so you dont think thats the problem.. you start off with melee and ki blast.. now when i learn tri beam before like big bang or something it screws up.. i click the hud button it changes the attack to ki blast.. so i click it again.. and it changes it to melee.. so i click yet again and it says You select 'tri beam' as your attack..then right away says You select 'ki blast as your attack'.. it skips tri beam for some reason...someone please help me.. this problem has stumped me for like a week..
ID:148100
Jul 11 2003, 12:12 am
|
|
Jul 11 2003, 12:16 am
|
|
Try using a list to store learned techniques/attacks. A list is much more efficient/easier to deal with.
|
In response to Goku72
|
|
nvm i redid the coding and now it seems to work fine..thx for your help anyway..
|