Index · Preferences · Help
Announcements · BYOND Features · Bug Reports · Fixes and Features · Developer How-To · Code Problems · Design Philosophy · Creations · Classified Ads · Gaming · Computers & Technology · Community
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (17)] [Return to Design Philosophy]

Author:Garthor [Posts]
Date:11/5/09 4:52 pm
Topic:Re: Useage of if() proc
Post ID:725906
Parent ID:725889
Next ID:725911
A better example would be:

mob/proc/update_healthbar()
  if(hp == 100)
    healthbar.icon_state = "10"
  else if(hp >= 90)
    healthbar.icon_state = "9"
  else if(hp >= 80)
    healthbar.icon_state = "8"
  else if(hp >= 70)
    healthbar.icon_state = "7"
  //...

Messages in this Thread: [Show All (17)]

  Useage of if() proc Ant305 (11/5/09 1:33 pm)
      Re: Useage of if() proc Magicsofa (11/17/09 12:24 pm)
          Re: Useage of if() proc Garthor (11/17/09 12:29 pm)
      Re: Useage of if() proc Rushnut (11/5/09 2:46 pm)
      Re: Useage of if() proc Jeff8500 (11/5/09 2:00 pm)
          Re: Useage of if() proc Garthor (11/5/09 4:52 pm)
              Re: Useage of if() proc Ant305 (11/5/09 5:16 pm)
                  Re: Useage of if() proc Garthor (11/5/09 5:31 pm)
                      Re: Useage of if() proc Popisfizzy (11/5/09 8:45 pm)
                          Re: Useage of if() proc Garthor (11/5/09 9:01 pm)
                      Re: Useage of if() proc Ant305 (11/5/09 8:01 pm)
          Re: Useage of if() proc Stephen001 (11/5/09 2:10 pm)
              Re: Useage of if() proc Jeff8500 (11/5/09 2:33 pm)
                  Re: Useage of if() proc Ant305 (11/5/09 4:36 pm)
                      Re: Useage of if() proc Garthor (11/5/09 4:50 pm)
      Re: Useage of if() proc ArcaneDragonX (11/5/09 1:47 pm)
      Re: Useage of if() proc Garthor (11/5/09 1:37 pm)