User Tools

Site Tools


data_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
data_files [2021/04/21 20:16]
justin
data_files [2021/04/21 20:17] (current)
justin
Line 17: Line 17:
  
 <code bauxite> <code bauxite>
-for item_id in data["start_items"] do +for $item_id in data["start_items"] do 
-   give_item(item_id);+   give_item($item_id);
 end; end;
 </code> </code>
Line 25: Line 25:
  
 <code bauxite> <code bauxite>
-for i in range(3) do +for $i in range(3) do 
-   give_item(data["start_items"][i]);+   give_item(data["start_items"][$i]);
 end; end;
 </code> </code>
Line 70: Line 70:
  
 <code bauxite> <code bauxite>
-for prop in data["npc_props"] do +for $prop in data["npc_props"] do 
-   set_entity_property(entity["npc01"], prop, data["npc_props"][prop]);+   set_entity_property(entity["npc01"], $prop, data["npc_props"][$prop]);
 end; end;
 </code> </code>
  
 ~~NOTOC~~ ~~NOTOC~~
data_files.txt · Last modified: 2021/04/21 20:17 by justin