Advertisement
Guest User

Untitled

a guest
Jan 26th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ///@description create hive type
  2. ///@arg maxHoney the maximum amount of honey that a hive can make
  3. ///@arg maxFrames the maximum number of frames
  4. ///@arg startHiveHealth starting health of the hive
  5.  
  6. var argNum = argument_count;
  7.  
  8. if (!ds_exists(ds_hive_types, ds_type_grid)) {
  9. ds_hive_types = ds_grid_create(argNum,1);
  10. var height = 1;
  11.  
  12. } else {
  13. var height = ds_grid_height(ds_hive_types);
  14. ds_grid_resize(ds_hive_types,argNum,height+1)
  15. height += 1;
  16. }
  17.  
  18. var yy = height -1;
  19. var i = 0; repeat(argNum) {
  20.  
  21. ds_hive_types[# i,yy] = argument[i];
  22. i += 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement