|
-
Yoshi021
- Moderator
 -
-
Yoshi021
- Moderator
 - Age: 22
- Reputation: 170
- Posts: 693
- Joined: 15 Feb 2016
- Location: Yoshi's Island
Post #14by Yoshi021 » 22 Jun 2018, 17:07
Mari0no1 wrote: Help me please
It looks like you accidentally messed with the file. Try replacing the scripts with there (the orignals) - Spoiler
- SMB1 HUD
Code: Select all 'initialize,0,0,0,0,0,0,0,0,0 call hudset("initialize",0,0,0,0,0,0,0,0,0) '!!!!!!!!!!bitmap source = "scflash.png"!!!!!!!!!!
do if lvlTimer(Count)>9999 then lvlTimer(Count)=9999 end if val(timer)=lvlTimer(Count) if char(1).x<>char(2).x and char(1).y<>char(2).y then 'val(P2)=1 else char(2).x=char(1).x char(2).y=char(1).y end if call hudset("bitmap",1,0,0+16*char(1).id,94,16,48,30,0,-1) if char(1).id=>2 then if char(1).hitpoint=>1 then call hudset("bitmap",2,0,80,16,16,144,30,0,-1) else call hudset("bitmap",2,16,80,16,16,144,30,0,-1) end if if char(1).hitpoint=>2 then call hudset("bitmap",3,0,80,16,16,160,30,0,-1) else call hudset("bitmap",3,16,80,16,16,160,30,0,-1) end if if char(1).hitpoint=>3 then call hudset("bitmap",4,0,80,16,16,176,30,0,-1) else call hudset("bitmap",4,16,80,16,16,176,30,0,-1) end if else call hudset("bitmap",2,0,80,16,16,144,-800,0,-1) call hudset("bitmap",3,0,80,16,16,144,-800,0,-1) call hudset("bitmap",4,0,80,16,16,144,-800,0,-1) end if
if sysval(Score)<10 then call hudset("text:000000&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) elseif sysval(Score)<100 then call hudset("text:00000&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) elseif sysval(Score)<1000 then call hudset("text:0000&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) elseif sysval(Score)<10000 then call hudset("text:000&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) elseif sysval(Score)<100000 then call hudset("text:00&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) elseif sysval(Score)<1000000 then call hudset("text:0&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) elseif sysval(Score)<10000000 then call hudset("text:&sys(Score)",6,48,val(YScore),48,57,1,val(NPCnumber),-1,-1) end if
if sysval(StarCount)>0 then call hudset("bitmap",7,32,80,32,48,274,30,0,-1) if sysval(StarCount)<10 then call hudset("text:0&sys(StarCount)",10,308,62,48,57,1,val(NPCnumber),-1,-1) else call hudset("text:&sys(StarCount)",10,308,62,48,57,1,val(NPCnumber),-1,-1) end if if sysval(Playerhealth)<10 then call hudset("text:0&sys(Playerhealth)",8,308,30,48,57,1,val(NPCnumber),-1,-1) else call hudset("text:&sys(Playerhealth)",8,308,30,48,57,1,val(NPCnumber),-1,-1) end if if sysval(CoinCount)<10 then call hudset("text:0&sys(CoinCount)",9,308,46,48,57,1,val(NPCnumber),-1,-1) else call hudset("text:&sys(CoinCount)",9,308,46,48,57,1,val(NPCnumber),-1,-1) end if else call hudset("bitmap",7,32,80,32,32,274,30,0,-1) if sysval(Playerhealth)<10 then call hudset("text:0&sys(Playerhealth)",8,308,30,48,57,1,val(NPCnumber),-1,-1) else call hudset("text:&sys(Playerhealth)",8,308,30,48,57,1,val(NPCnumber),-1,-1) end if if sysval(CoinCount)<10 then call hudset("text:0&sys(CoinCount)",9,308,46,48,57,1,val(NPCnumber),-1,-1) else call hudset("text:&sys(CoinCount)",9,308,46,48,57,1,val(NPCnumber),-1,-1) end if end if 'bitmap,id,sourcex,sourcey,width,height,destx,desty,advset,-1 call hudset("bitmap",11,0,128,80,28,488,30,0,-1) if val(world)>99 then val(world)=99 end if if val(level)>99 then val(level)=99 end if if val(world)<10 then call hudset("text:&val(world)",12,504,46,48,57,1,val(NPCnumber),-1,-1) else call hudset("text:&val(world)",12,488,46,48,57,1,val(NPCnumber),-1,-1) end if call hudset("text:&val(level)",13,536,46,48,57,1,val(NPCnumber),-1,-1) call hudset("bitmap",14,0,156,64,16,688,30,0,-1) 'text:text,id,destx,desty,startasc,endasc,lnum,npcid,-1,-1 if val(timer)<10 then call hudset("text:&val(timer)",15,736,46,48,57,1,val(NPCnumber),-1,-1) elseif val(timer)<100 then call hudset("text:&val(timer)",15,720,46,48,57,1,val(NPCnumber),-1,-1) elseif val(timer)<1000 then call hudset("text:&val(timer)",15,704,46,48,57,1,val(NPCnumber),-1,-1) elseif val(timer)<10000 then call hudset("text:&val(timer)",15,688,46,48,57,1,val(NPCnumber),-1,-1) end if
if val(P2)=1 then val(YScore)=62 call hudset("bitmap",21,0,0+16*char(2).id,94,16,48,46,0,-1) if char(1).id=>2 then if char(1).hitpoint=>1 then call hudset("bitmap",22,0,80,16,16,144,46,0,-1) else call hudset("bitmap",22,16,80,16,16,144,46,0,-1) end if if char(1).hitpoint=>2 then call hudset("bitmap",23,0,80,16,16,160,46,0,-1) else call hudset("bitmap",23,16,80,16,16,160,46,0,-1) end if if char(1).hitpoint=>3 then call hudset("bitmap",24,0,80,16,16,176,46,0,-1) else call hudset("bitmap",24,16,80,16,16,176,46,0,-1) end if else call hudset("bitmap",22,0,80,16,16,144,-800,0,-1) call hudset("bitmap",23,0,80,16,16,144,-800,0,-1) call hudset("bitmap",24,0,80,16,16,144,-800,0,-1) end if else val(YScore)=46 call hudset("bitmap",21,0,0+16*char(2).id,94,16,48,-800,0,-1) call hudset("bitmap",22,0,0+16*char(2).id,94,16,48,-800,0,-1) call hudset("bitmap",23,0,0+16*char(2).id,94,16,48,-800,0,-1) call hudset("bitmap",24,0,0+16*char(2).id,94,16,48,-800,0,-1)
end if
call sleep(1) loop 'variables 'call hudset("text:&sys(coincount)",2,65,22,48,57,1,213,-1,-1) 'call hudset("text:&val(a)",3,65,54,48,57,1,213,-1,-1) 'call hudset("text:&sys(playerhealth)",4,65,84,48,57,1,213,-1,-1) 'call hudset("text:custom text",10,600,25,32,128,16,89,-1,-1)
- SMB1 END
Code: Select all 'Script No.2 Name:New Script 2
call sleep(126) do if lvlTimer(Count)=0 then else call tcreate([SOUND]Endsound,0) lvlTimer(Count)=lvlTimer(Count)-10 sysval(Score)=sysval(Score)+500 char(1).xsp=0 char(2).xsp=0 end if call sleep(1) loop
- Links
  

 "Going to University is FUN!" 
| |