Difference between revisions of "Rooted"

From IvanWiki
Jump to navigation Jump to search
(Created page with "{{code}} Rooted dictates that the character in question cannot move to another tile of its own accord, regardless of available limbs or AGI stat. IsRooted is defined in a charact...")
 
 
Line 7: Line 7:
 
truth character::CanMove() const  
 
truth character::CanMove() const  
  
8840
 
 
{  
 
{  
 
8841
 
 
   return !IsRooted() || StateIsActivated(LEVITATION);  
 
   return !IsRooted() || StateIsActivated(LEVITATION);  
 
8842
 
 
}  
 
}  
 
</pre>
 
</pre>

Latest revision as of 01:57, 1 September 2014

Coding: This article contains code which is for experienced users only, and may reveal game secrets

Rooted dictates that the character in question cannot move to another tile of its own accord, regardless of available limbs or AGI stat. IsRooted is defined in a character's entry inside char.dat and is currently used by all forms of carnivorous plant and mushroom. Rooted does not prevent a character from interacting with adjacent tiles or enemies, however.

A rooted character can only move via teleportation or levitation, and cannot be knocked back by a kick.

truth character::CanMove() const 

{ 
  return !IsRooted() || StateIsActivated(LEVITATION); 
}