The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



2DWorlds Forums
Ah, that stage in a script's progression... - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Ah, that stage in a script's progression... (/showthread.php?tid=5813)



Ah, that stage in a script's progression... - Phoenix - 06-14-2011

Where seeing it do absolutely anything would be a freaking miracle.
Debug, anyone?


Code:
enabled = true

link(script.Parent.Clicked, function(player, btn)
    if not enabled then return end
        enabled = false
        lazorcharges=50
        for i=1,lazorcharges do
            sleep(0.1)
            Charge = Instance.new("Box")
            Charge.Parent = game.World
            Charge.Position = Vec2D.new(math.random(340,342),math.random(19,21))
            Charge.Color = script.Parent.Color
            Charge.Size = Vec2D.new(0.1,0.1)
            Charge.Collidable = false
            Charge.CharacterCollidable = false
            Charge.Fixed = false
            Charge.Rotation = 0
            Charge.Velocity = Vec2D.new(0,0.5)
    firemylazor()
enabled = true
end
end)
  
function firemylazor()  
Matter = Instance.new("Box")
Matter.Parent = game.World
Matter.Position = Vec2D.new(math.random(340,342),math.random(19,21))
Matter.Color = script.Parent.Color
Charge.Size = Vec2D.new(0.1,0.1)
Charge.Collidable = false
Charge.CharacterCollidable = false
Charge.Fixed = false
Charge.Rotation = 0
Charge.Velocity = Vec2D.new(-20,0)
end

EDIT: Fixed one thing, code now is current, but still not working. t-t


RE: Ah, that stage in a script's progression... - Chaos - 06-15-2011

Maybe this should be in the scripters section...


RE: Ah, that stage in a script's progression... - Anti - 06-15-2011

Is it still broken, and if it is, what should it do in the first place? O_o' I dont want to start guessing what it should do...


RE: Ah, that stage in a script's progression... - Qwertygiy - 06-15-2011

Is it supposed to be in a tool, a box, what?


RE: Ah, that stage in a script's progression... - Phoenix - 06-15-2011

It's in a box which serves as a clickable button. It's supposed to cause red charges to appear at the position specified at random locations which float slowly upward.

After 50 of those charges are made, it's supposed to fire a large charge to the left at high speed.

Nothing happens when I click the button and no errors appear in output.


RE: Ah, that stage in a script's progression... - Phoenix - 06-15-2011

Edit: Got it to generate the boxes, the velocity is broken, though.

Code:
enabled = true

link(script.Parent.Clicked, function(player, btn)
    if not enabled then return end
        enabled = false
        lazorcharges=50
        for i=1,lazorcharges do
            sleep(0.1)
            Charge = create("Box")
            Charge.Parent = game.World
            Charge.Position = Vec2D(math.random(340,342),math.random(19,21))
            Charge.Color = script.Parent.Color
            Charge.Size = Vec2D(0.1,0.1)
            Charge.Collidable = false
            Charge.CharacterCollide = false
            Charge.Fixed = false
            Charge.Rotation = 0
            Charge.Velocity = Vec2D(0,50)
  
end
firemylazor()
enabled = true
end)
  
function firemylazor()  
Matter = create("Box")
Matter.Parent = game.World
Matter.Position = Vec2D(math.random(340,342),math.random(19,21))
Matter.Color = script.Parent.Color
Charge.Size = Vec2D(0.1,0.1)
Charge.Collidable = false
Charge.CharacterCollide = false
Charge.Fixed = false
Charge.Rotation = 0
Charge.Velocity = Vec2D(-200,0)
end