Similar topics
Search
Latest topics
Some help with super heroes
3 posters
Page 1 of 1
Some help with super heroes
I got everything down except a few things.
How can I add more heroes, make them do stuff, and set their level requirement?
How can I add more items?
How can I change current super heroes abilities?
How can I add more heroes, make them do stuff, and set their level requirement?
How can I add more items?
How can I change current super heroes abilities?
Metal Avalon- Posts : 168
Rep : 2
Join date : 2010-06-06
Age : 35
Re: Some help with super heroes
Edit: I think you should go to sh_values.lua to add more hero
sh_name: Name of hero
sh_limit: limit point
sh_reg_pt: point you should have to upgrade heros
"Make them do stuff"
I think it's more difficult than the classic super hero but anyway i saw some line in sh_func.lua that does some abilities of 3 heros:
- Code:
function sh_second()
sh_time = sh_time 1
if sh_time > 3 then
for i = 1, pl_count do
if (player(i,"exists")) then
if sh_id[35 * (i - 1) 8] > 0 then pl_gren[i] = pl_gren[i] 4 if pl_gren[i] > 30 - sh_id[35 * (i - 1) 8] * 4 then sh_equip(i,51); pl_gren[i] = 0; end; end
if sh_id[35 * (i - 1) 7] > 0 then sh_money(i,sh_id[35 * (i - 1) 7] * 45); end
if sh_id[35 * (i - 1) 20] > 0 then sh_heal(i,sh_id[35 * (i - 1) 20] * 10); end
if pl_stunt[i] > 0 then pl_stunt[i] = 0; sh_speed(i,sh_id[35 * (i - 1) 3] sh_id[35 * (i - 1) 12] sh_id[35 * (i - 1) 22] sh_id[35 * (i - 1) 27]); end
if pl_psn[i] > 0 then pl_psn[i] = pl_psn[i] - 1; parse('sethealth '..i..' ' ..player(i,"health") - 5); end
end
end
sh_time = 0
end
end
Go to sh_value.lua and you ill see some sh_name, look at this screenshot
https://2img.net/r/ihimizer/img266/4165/45768402.png
In this code you can see 8, 7, 20 . 8 is Bomberman hero. 7 is businessman, 20 Wolverine
Bomber man: if sh_id[35 * (i - 1)8] > 0 then pl_gren[i] = pl_gren[i] 4 if pl_gren[i] > 30 - sh_id[35 * (i - 1) 8 * 4 then sh_equip(i,51); pl_gren[i] = 0; end; end
Businessman: if sh_id[35 * (i - 1) 7] > 0 then sh_money(i,sh_id[35 * (i - 1) 7] * 45); end
Wolverine: if sh_id[35 * (i - 1) 20] > 0 then sh_heal(i,sh_id[35 * (i - 1) 20] * 10); end
The bomberman abilities is get a Grenade every xx second (limit upgrade is 10 so i guess they can just get 10 grenade)
The businessman get [lv of this hero * 45] money every xx second (not credits)
The wolverine get heal every xx second
And these function is abilities of 3 heros, you can search in the sh_func.lua to find more hero then improve it.
Like bomberman, you can improve it to get Mine, laser mine, other grenade every xx second
Sorry if what i said is wrong
KenHTMS- Posts : 12
Rep : 0
Join date : 2010-07-24
Re: Some help with super heroes
That helps the understanding of it bu not the overall how too. Thanks though.
Metal Avalon- Posts : 168
Rep : 2
Join date : 2010-06-06
Age : 35
Re: Some help with super heroes
I'll help Avalon, just give me a week
Craig- Posts : 57
Rep : 0
Join date : 2010-06-07
Age : 33
Re: Some help with super heroes
kk ty Craig.
Metal Avalon- Posts : 168
Rep : 2
Join date : 2010-06-06
Age : 35
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Fri Sep 09, 2011 4:58 pm by WhiteWolf
» Last to post wins
Fri Sep 09, 2011 4:57 pm by WhiteWolf
» COMBAT ARMS WOOOOO
Tue Oct 19, 2010 10:59 pm by viperjake31
» Its over (Bye)
Wed Sep 22, 2010 10:05 pm by Supanooba
» Sorry guys...
Wed Sep 22, 2010 10:01 pm by Supanooba
» bad feeling...
Tue Sep 21, 2010 1:16 pm by Supanooba
» This game...
Sun Sep 19, 2010 10:01 am by Supanooba
» Me, D@rk T3mpl4r, Hacking?
Sun Sep 19, 2010 12:36 am by D@rk T3mpl4r
» fractured my arm and leg
Sat Sep 18, 2010 9:08 pm by Supanooba