Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Hey guys.........
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

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Some help with super heroes

Go down

Some help with super heroes

Post by Metal Avalon on Sun Jul 25, 2010 1:36 am

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?
avatar
Metal Avalon

Posts : 168
Rep : 2
Join date : 2010-06-06
Age : 29

View user profile

Back to top Go down

Re: Some help with super heroes

Post by KenHTMS on Sun Jul 25, 2010 9:49 am

How did you change heros names?

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
http://img266.imageshack.us/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

View user profile

Back to top Go down

Re: Some help with super heroes

Post by Metal Avalon on Sun Jul 25, 2010 10:46 am

That helps the understanding of it bu not the overall how too. Thanks though.
avatar
Metal Avalon

Posts : 168
Rep : 2
Join date : 2010-06-06
Age : 29

View user profile

Back to top Go down

Re: Some help with super heroes

Post by Craig on Wed Aug 11, 2010 4:44 am

I'll help Avalon, just give me a week

Craig

Posts : 57
Rep : 0
Join date : 2010-06-07
Age : 27

View user profile

Back to top Go down

Re: Some help with super heroes

Post by Metal Avalon on Wed Aug 11, 2010 1:44 pm

kk ty Craig.
avatar
Metal Avalon

Posts : 168
Rep : 2
Join date : 2010-06-06
Age : 29

View user profile

Back to top Go down

Re: Some help with super heroes

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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