Loading...
  OR  Zero-K Name:    Password:   

Abandoned

15 posts, 782 views
Post comment
Filter:    Player:  
sort
some people keep asking how to find my modes you can access them via PLAY . MODES . NOT FEATURED

ill also post links from here as-well as keep a list of example code and other stuff its WIP but i plan to add allot here..

MODES:

[Spoiler]

USEFUL:

[Spoiler]

CODE:

[Spoiler]

[Spoiler]
+9 / -0
bugs to fix:
[Spoiler]
+1 / -0
KNOWN ISSUES / things to remember when writing code:
[Spoiler]
+0 / -0
cant seem to find why this wont work
[Spoiler]
+0 / -0
6 days ago
[Spoiler]
+0 / -0
thanks.. ill rty to help you.

this is how i do things: i add 1 piece of code at a time to test it.

for example:

for name, ud in pairs(UnitDefs) do
if ud.weapondefs then
for weaponname, wd in pairs(ud.weapondefs) do
if wd.range then
wd.range = wd.range * 100
end
end
end
end
+0 / -0
6 days ago
thanks.
im particularly troubled with this:

quote:

if wd.damage then
for _,damag in pairs(wd.damage) do
damag = multiply_and_round(damag, rmultiplier)
end
end
if wd.shield then
for nm,shiel in pairs(wd.shield) do
if (nm == "power") then
shiel = multiply_and_round(shiel, rmultiplier)
end
if (nm == "powerregen") then
shiel = multiply_and_round(shiel, rmultiplier)
end
end
end


Here, I try to edit the damages and shield tables which look like this:
{ value = 10, value2= 200 }
I have tried many ways of accessing these, with and without pairs,but it just won't work.
+1 / -0
6 days ago
[Spoiler]

does any of this working code help?
i have spent most of the night ddoing other things and cant help right now because im too sleepy.. ill help you more later once im rested. i didnt look long but your code has the word shiel in it should that be shield?
+1 / -0
4 days ago
Yes, thanks!
I could access the values with "if wd.damage and wd.damage.default then"
+0 / -0
4 days ago
wtf?
Why does 1 work, but 2 does not?

1:

function multiply_and_round(n, e)
n = n * e
if (n > 100) then
n = round_to_ten(n)
else
n = round_to_five(n)
end
return n
end


2:

function multiply_and_round(n, e)
n = n * e
if (n > 1000) then
n = round_to_fifty(n)
end
if (n > 100) then
n = round_to_ten(n)
else
n = round_to_five(n)
end
return n
end
+0 / -0

4 days ago
COMEBACK SMOKEHERO !

THE GAMES WE PLAY ARE WORTH MORE THAN THIS...

WE ARE ALLWAYS LEARNING !
+0 / -0
Comeback SmokeDragon!
+0 / -0
3 days ago
What? Is SMokedragon ded???
+0 / -0
Yah he made a drama post, was told to stop, asked for his account to be deleted so GF reset his password.

SmokeDragon be gone.

Unfortunate. The guy ran a room with weird game modes. That was fun for a while.
+0 / -0


3 days ago
quote:
Yah he made a drama post, was told to stop, asked for his account to be deleted so GF reset his password.

That is not what happened. I clarified: https://zero-k.info/Forum/Post/267252#267252
+0 / -0