Thread: Dumb
View Single Post
  #37  
Old 04-27-2002, 01:58 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Googi


I like && though, because It makes the scripts shorter line-wise.
Yet using as you did makes them less: Logical, efficient, extensible, readable. And not nesting structures makes scripts larger in terms of bytes. Here's a far superior version of what you posted:

NPC Code:

if (playerchats){
if(strequals(#c,morph)){
if(strequals(#s(client.race),bomy)) setstring client.race,human;
else setstring client.race,bomy;
}
}

__________________
Reply With Quote