Thread: "Spell" Quest
View Single Post
  #9  
Old 10-26-2013, 02:17 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

No problem, int just keeps it from going to a decimal and making everything ugly and annoying, also keep in mind it's really not necessary to even define anything, you could do this.

if($entity_list->GetClientByID($caster_id)->GetTarget->GetHP() >= 500)

But people refer definitions because it's shorter and easier to interpret, I myself like to break away and define as little as possible, the coder logic of, "Do it in less lines."

Also, call me Kingly. :P
Reply With Quote