View Single Post
  #7  
Old 12-07-2001, 05:43 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by TDO2000

um I do not need to but I just wanted to show an easy example... but if u want it another way...

//show stat if player enters
if(playerenters){
if(save[0]==0){message Door closed;}
else {message Door open;}
}
//What happens if touched
if(playertouchsme){
if(save[0]==1){setlevel2 level,x,y;}
else {say2 Closed go away!;}
}

//changing stat
if(playerchats && strequals(#a,Account)){
if(strequals(#c,open)){
save[0]=1;
message Door open;
}
if(strequals(#c,close)){
save[0]=0;
message Door closed
}
}

just an easy example too but should work
u keep forgeting the ;
Reply With Quote