Julia
The only SRB2 and Touhou fan ever to exist lmao
When I run this script, it says "')' expected (to close '(' at line 1) near 'end'. Can anyone tell me what I need to do? I'm just starting Lua, mind you.
Legacy Homing Main script (note uses some modified code, this will be credited upon release!):
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "sonic" then
player.charability = CA_HOMINGTHOK
player.jumpfactor = 1*FRACUNIT + player.speed/150
and player.speed < 50*FRACUNIT
player.normalspeed = 40*FRACUNIT
end
end
end
end)
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "sonic" then
if player.pflags & PF_THOKKED
and (not(player.homing))
and player.powers[pw_super] == 0
player.mo.state = S_PLAY_ROLL
end
end
end
end)
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "sonic" then
if player.pflags & PF_JUMPED
player.mo.state = S_PLAY_ROLL
end
end
end
end)