Jump to content

BSL:BFW Scripting Language: Difference between revisions

m
no edit summary
m (why not a "code pieces" section - why inventing same things over and over)
mNo edit summary
Line 122: Line 122:
==Code pieces==
==Code pieces==


  # and old but useful character setup function by geyser
  # an old but useful character setup function by geyser
  func '''SpawnNameFlagHealthReset'''(string n, int f, int h, int r){
  func '''SpawnNameFlagHealthReset'''(string n, int f, int h, int r){
     ai2_spawn(n); chr_teleport(n, f)
     ai2_spawn(n); chr_teleport(n, f)
Line 131: Line 131:
  # can be like this ...
  # can be like this ...
  func wave_setup {
  func wave_setup {
     #note that missing arguments are taken to be 0)
     # note that missing arguments are taken to be 0)
     SpawnNameFlagHealthReset Griffin 23 600
     SpawnNameFlagHealthReset Griffin 23 600
     SpawnNameFlagHealthReset Muro 22 2500
     SpawnNameFlagHealthReset Muro 22 2500
8,245

edits