Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Bomy Island Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.