Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

Fanfiction stuff?

Very yes
Yes
Indifferent
No
Very no

Pages: 1 ... 25 26 [27] 28 29 ... 88

Author Topic: Sparking!!! Dragon Ball Mod (0.47, rolling releases): Half a Raditz  (Read 322813 times)

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #390 on: February 12, 2013, 03:20:35 pm »

So, how does the the instant transmission work?
I really want to try it out....
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #391 on: February 12, 2013, 05:49:04 pm »

So, how does the the instant transmission work?
I really want to try it out....

It's a DFHack script, of course. Just type "instant_transmission" into the DFHack console and you'll get a list of units and further instruction.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #392 on: February 12, 2013, 06:12:38 pm »

Quick question.
Where is the notepad thing for the new DFhack command?
Which folder, and such?
I MURST KNOW
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #393 on: February 12, 2013, 06:23:41 pm »

Quick question.
Where is the notepad thing for the new DFhack command?
Which folder, and such?
I MURST KNOW

Same as always, hack/scripts.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #394 on: February 12, 2013, 06:39:44 pm »

Grrrr
Command not working.
GRRRRRRRRRRRRR
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #395 on: February 12, 2013, 06:42:23 pm »

Postem the errors.

Torknick

  • Bay Watcher
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #396 on: February 12, 2013, 07:12:48 pm »

SSJ4 is not working. It may just be my game, but its powerlevel is 0 all my attacks pass right trough!
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #397 on: February 12, 2013, 07:30:03 pm »

SSJ4 is not working. It may just be my game, but its powerlevel is 0 all my attacks pass right trough!

That's why I phased it out. What you're experiencing is your body size actually overflowing into the negatives, making you an unkillable thing that can't attack.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #398 on: February 13, 2013, 02:56:42 pm »

-- Allows instant transmission.

math.randomseed(dfhack.getTickCount())

if df.global.gamemode~=1 then
   qerror("Adventure mode only (for now). Sorry!")
end

function getIsWalkable(coords)
   local ttype=dfhack.maps.getTileType(coords)
   local tileshape=df.tiletype.attrs[ttype].shape
   if df.tiletype_shape.attrs[tileshape] ==
end

function getPowerLevel(unit)
   local speed = 1000/dfhack.units.computeMovementSpeed(unit)
   local strength = unit.body.physical_attrs.STRENGTH.value/3550
   local endurance = unit.body.physical_attrs.ENDURANCE.value/1000
   local toughness = unit.body.physical_attrs.TOUGHNESS.value/2250
   local spatialsense = unit.status.current_soul.mental_attrs.SPATIAL_SENSE.value/1500
   local kinestheticsense = unit.status.current_soul.mental_attrs.KINESTHETIC_SENSE.value/1000
   local willpower = unit.status.current_soul.mental_attrs.WILLPOWER.value/1000
   local bodysize = unit.body.blood_count*10
   local powerlevel = (bodysize*speed*((strength*endurance*toughness*spatialsense*kinestheticsense*willpower)^(1/6)))*300
   return powerlevel
end

function getSubjectPronoun(unit)
   local sex = unit.status.current_soul.sex
   if sex == 1 then return "he"
      elseif sex == 0 then return "she"
      else return "it"
   end
end

function getObjectPronoun(unit)
   local sex = unit.status.current_soul.sex
   if sex == 1 then return "him"
      elseif sex == 0 then return "her"
      else return "it"
   end
end

function getPowerLevelComparison(unit1,unit2)
   local randomnumber = math.random(2)
   local subjectPronoun = getSubjectPronoun(unit2)
   local objectPronoun = getObjectPronoun(unit2)
   local comparison = getPowerLevel(unit2)/getPowerLevel(unit1)
   if comparison < .8 then
      if comparison < .1 then
         if randomnumber == 1 then return "Hmm, " .. subjectPronoun .. "'s not very powerful..."
         else return "Ha, " .. subjectPronoun .. "'s so weak!" end
      elseif randomnumber==1 then return "I can definitely take " .. objectPronoun .. "."
      else return "Eh, " .. subjectPronoun .. " shouldn't be too difficult to beat." end
   elseif comparison >= .8 and comparison <= 1.2 then
      if comparison == 1 then return "Huh. Identical power levels? Either this is me or this is weird."
      else return "I'm about as strong as " .. objectPronoun .. "." end
   elseif comparison > 1.2 and comparison <= 10 then return "Okay, " .. subjectPronoun .. "'s a bit stronger than I am!"
   elseif comparison > 10 and comparison <= 100 then return "Oh man, " .. subjectPronoun .. "'s a lot stronger than me! I hope my skill can prevail."
   elseif comparison > 100 and comparison <= 10000 then return "Okay, I do NOT want to fight that!"
   elseif comparison > 10000 and comparison <= 1000000 then return "No way can I win against a foe like that!"
   else return "QUACK!"
   end
end   
local player = df.global.world.units.active[0]
local unitcaste
if ...==nil then
for _uid,unit in ipairs(df.global.world.units.all) do
   print(_uid,df.creature_raw.find(unit.race).caste[unit.caste].caste_name[0],dfhack.TranslateName(dfhack.units.getVisibleName(unit)),getPowerLevelComparison(player,unit))
end
qerror("type the number for the creature you want to teleport to!")
end

local unitToTeleportTo = df.global.world.units.all[tonumber(...)]

dfhack.gui.showAnnouncement("You put two fingers up to your head and concentrate...",11)

player.pos.x = unitToTeleportTo.pos.x-1
player.pos.y = unitToTeleportTo.pos.y
player.pos.z = unitToTeleportTo.pos.z
If you want the DFhack thing, my last one seems to be the exact same error, with VERRRRRY minor changes.
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #399 on: February 13, 2013, 03:20:03 pm »

minor changes are important.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #400 on: February 13, 2013, 03:55:59 pm »

ehhhh.
Gimmie awhile. I'll be done before you know it.
Not.
Dammit.
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #401 on: February 13, 2013, 04:26:57 pm »

...ndra\appdata\local\temp\Rar$EX79.144\hack\lua\dfhack.lua:326:  ...\temp\Rar$EX79.144\hack\scripts/instant_transmission.lua:13: unexpected symbol near 'end' stack tradeback
[C]: in function 'error'
...ndra\appdata\local\temp\Rar$EX79.144\hack\lua\dfhack.lua:326: in function <...ndra\appdata\local\temp\Rar$EX79.144\hack\lua\dfhack.lua:316>
Dammit, they need to make a copy paste thing for DFhack.
Now.
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #402 on: February 13, 2013, 04:48:43 pm »

ahh wtf???

remove the getIsWalkable() function. That shouldn't be there.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #403 on: February 13, 2013, 06:02:08 pm »

soooo, that whole function? NOT JUST THE NAME?
Like, you want me to delete this:function getIsWalkable(coords)
   local ttype=dfhack.maps.getTileType(coords)
   local tileshape=df.tiletype.attrs[ttype].shape
   if df.tiletype_shape.attrs[tileshape] ==
end
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #404 on: February 13, 2013, 07:50:34 pm »

Yeah, the whole thing. Uploading a fix now.
Pages: 1 ... 25 26 [27] 28 29 ... 88