diff --git a/404.html b/404.html index d90e4d39..52476f73 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ - - sfall sfall | Sfall documentation Link Search Menu Expand Document

404

Page not found :(

The requested page could not be found.

+ - sfall sfall | Sfall documentation Link Search Menu Expand Document

404

Page not found :(

The requested page could not be found.

diff --git a/alter-min-max/index.html b/alter-min-max/index.html index 6651993a..d4025016 100644 --- a/alter-min-max/index.html +++ b/alter-min-max/index.html @@ -1,4 +1,4 @@ - Alter min/max - sfall Alter min/max | sfall Link Search Menu Expand Document

Alter min/max

The set_stat_max/min functions can be used to set the valid ranges on stats. Values returned by get_current_stat will be clamped to this range. The set_pc_ function only affects the player, the set_npc_ functions only affects other critters, and the set_ functions affects both.

Functions


set_npc_stat_max

void set_npc_stat_max(int stat, int value)
+     Alter min/max - sfall       Alter min/max | sfall                      Link      Search      Menu      Expand      Document       

Alter min/max

The set_stat_max/min functions can be used to set the valid ranges on stats. Values returned by get_current_stat will be clamped to this range. The set_pc_ function only affects the player, the set_npc_ functions only affects other critters, and the set_ functions affects both.

Functions


set_npc_stat_max

void set_npc_stat_max(int stat, int value)
 

set_npc_stat_min

void set_npc_stat_min(int stat, int value)
 

set_pc_stat_max

void set_pc_stat_max(int stat, int value)
 

set_pc_stat_min

void set_pc_stat_min(int stat, int value)
diff --git a/animations/index.html b/animations/index.html
index 6f3e7794..545a4b61 100644
--- a/animations/index.html
+++ b/animations/index.html
@@ -1,4 +1,4 @@
-     Animations - sfall       Animations | sfall                      Link      Search      Menu      Expand      Document       

Animations

Functions


reg_anim_animate_and_hide

void reg_anim_animate_and_hide(ObjectPtr, int animID, int delay)
+     Animations - sfall       Animations | sfall                      Link      Search      Menu      Expand      Document       

Animations

Functions


reg_anim_animate_and_hide

void reg_anim_animate_and_hide(ObjectPtr, int animID, int delay)
 

Exactly like reg_anim_animate but the object will automatically disappear after the last animation frame (but not destroyed).


reg_anim_callback

void reg_anim_callback(procedure proc)
 

Adds the given procedure to an animation sequence-list and executes it in the registered sequence.


reg_anim_change_fid

void reg_anim_change_fid(ObjectPtr, int FID, int delay)
 

Should work like art_change_fid_num but in reg_anim sequence.


reg_anim_combat_check

void reg_anim_combat_check(int enable)
diff --git a/array-functions/index.html b/array-functions/index.html
index 81dbb005..7b12560d 100644
--- a/array-functions/index.html
+++ b/array-functions/index.html
@@ -1,4 +1,4 @@
-     Array functions - sfall       Array functions | sfall                      Link      Search      Menu      Expand      Document       

Array functions

Functions


array_key

mixed array_key(int arrayID, int index)
+     Array functions - sfall       Array functions | sfall                      Link      Search      Menu      Expand      Document       

Array functions

Functions


array_key

mixed array_key(int arrayID, int index)
 

Don’t use it directly; it is generated by the compiler in foreach loops.


arrayexpr

int arrayexpr(mixed key, mixed value)
 

Don’t use it directly; it is used by compiler to create array expressions.


create_array

int create_array(int size, int nothing)
 

Creates permanent array (but not “saved”).


fix_array

void fix_array(int arrayID)
diff --git a/arrays/index.html b/arrays/index.html
index 1307faee..fa3fa914 100644
--- a/arrays/index.html
+++ b/arrays/index.html
@@ -1,4 +1,4 @@
-     Arrays - sfall       Arrays | sfall                      Link      Search      Menu      Expand      Document       

Arrays

sfall introduces new method of storing variables - arrays.

Array is basically a container which can store variable number of values (elements). Each element in array can be of any type. Arrays can be extremely useful for some more advanced scripting, in conjunction with loops. See array function reference here.

Arrays concept

Array elements are accessed by index or key. For example:

// this code puts some string in array "list" at index 5:
+     Arrays - sfall       Arrays | sfall                      Link      Search      Menu      Expand      Document       

Arrays

sfall introduces new method of storing variables - arrays.

Array is basically a container which can store variable number of values (elements). Each element in array can be of any type. Arrays can be extremely useful for some more advanced scripting, in conjunction with loops. See array function reference here.

Arrays concept

Array elements are accessed by index or key. For example:

// this code puts some string in array "list" at index 5:
 list[5] := "Value";
 

There are 2 different types of arrays currently available: