True Unbreakable
RigidChips :: Rigid-Chips :: Files :: Scripts
Page 1 of 1 • Share •
True Unbreakable
One annoying thing about this game is that "Unbreakable" isn't.
I used a bug in my regenerate script to get something that has the same basic effect. It's just that instead of regenerating, it's plain immortal.
Or if you want to be able to drop balls and such:
I used a bug in my regenerate script to get something that has the same basic effect. It's just that instead of regenerating, it's plain immortal.
- Code:
function isAttached(chip)
if chip == 0 then
return true
end
return _PARENT(chip) ~= -1
end
function OnFrame()
for i=2,chips-1 do
if not isAttached(i) then
_ADDCHIP(math.random(chips)-1,"COWL","N",180)
break
end
end
end
function OnInit()
chips=_CHIPS()
end
function OnReset()
end
function OnMode()
end
Or if you want to be able to drop balls and such:
- Code:
function isAttached(chip)
if chip == 0 then
return true
end
return _PARENT(chip) ~= -1
end
WindLevel=0
LastBall=-1
function OnFrame()
if(_SKEYDOWN(0)>0) then
LastBall=_ADDBALL(0.6, 2, _GETY(2,0)+6+LastBall ,LastBall/10, 0.3)
_SETOBJCOLOR(LastBall,1,0,1)
end
if(_SKEYDOWN(1)>0) then
WindLevel=WindLevel+1
if(WindLevel>3) then WindLevel=0 end
if(WindLevel==0) then _SETWIND(0,0,0) end
if(WindLevel==1) then _SETWIND(5,0,0) end
if(WindLevel==2) then _SETWIND(16,0,0) end
if(WindLevel==3) then _SETWIND(50,0,0) end
end
wx,wy,wz=_GETWIND()
if(WindLevel~=0) then out(0,"Wind = ",wx," ",wy," ",wz) end
if(LastBall>=0) then out(1,"Ball Count = ",LastBall+1) end
for i=2,chips-1 do
if not isAttached(i) then
_ADDCHIP(math.random(chips)-1,"COWL","N",180)
break
end
end
end
function OnInit()
WindLevel=0
LastBall=-1
chips=_CHIPS()
end
function OnReset()
end
Last edited by DanielLC on Wed Feb 16, 2011 2:33 am; edited 1 time in total (Reason for editing : Forgot to take some now-useless stuff out.)
DanielLC- Tank

- Posts: 68
Join date: 2010-10-24
Re: True Unbreakable
Interesting effect. However, after being under constant fire, RC crashed, and I guess that's because there were too many cowls attached to a single chip.
_________________
A.K.A. Bernard
bwansy- Admin
- Posts: 158
Join date: 2010-07-15

Re: True Unbreakable
I'm not on the right operating system right now, but you could try this:
Perhaps dropping the cowl will help.
- Code:
function isAttached(chip)
if chip == 0 then
return true
end
return _PARENT(chip) ~= -1
end
function OnFrame()
for i=2,chips-1 do
if not isAttached(i) then
x=_ADDCHIP(math.random(chips)-1,"COWL","N",180)
_BYE(x)
break
end
end
end
function OnInit()
chips=_CHIPS()
end
function OnReset()
end
function OnMode()
end
Perhaps dropping the cowl will help.
DanielLC- Tank

- Posts: 68
Join date: 2010-10-24
Similar topics» Persona 4 - Guide to get the True Ending
» Hitler reacts to F1 2010 by Codemasters not being a true simulation
» True Poem Of Sadness
» HARDSTYLE IS MY TRUE RELIGION!
» Compare True Archer with Dark Archer
» Hitler reacts to F1 2010 by Codemasters not being a true simulation
» True Poem Of Sadness
» HARDSTYLE IS MY TRUE RELIGION!
» Compare True Archer with Dark Archer
RigidChips :: Rigid-Chips :: Files :: Scripts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
