Objects Block

From WinWolf3D/WDC

(Redirected from Objects block)

The objects block is a WGD block that is used to define all the static objects for your game.

Syntax

Objects
  ...
End

Notes

  • The script parser allows you to have more than one Objects block in case you find it clearer to group commands.

Valid Commands

Example

Objects
   ; First add the object types.
   AddType bo_dressing 		oc_normal
   AddType bo_block 		oc_solid
   AddType bo_gibs 		oc_lowhealth 1
   AddType bo_alpo 		oc_health 4
   AddType bo_food 		oc_health 10
   AddType bo_firstaid 		oc_health 25
   AddType bo_key1 		oc_key 1
   AddType bo_key2 		oc_key 2
   AddType bo_cross 		oc_treasure 100
   AddType bo_chalice 		oc_treasure 500
   AddType bo_bible 		oc_treasure 1000
   AddType bo_crown 		oc_treasure 5000
   AddType bo_clip 		oc_ammo 8
   AddType bo_clip2 		oc_ammo 4
   AddType bo_machinegun 	oc_weapon 3
   AddType bo_chaingun 		oc_weapon 4
   AddType bo_fullheal 		oc_life
   ; Now add objects of these types.
   AddObject 23 108 bo_dressing
   AddObject 24 109 bo_block
   AddObject 25 110 bo_block
   AddObject 26 111 bo_block
   AddObject 27 112 bo_dressing
   AddObject 28 113 bo_block
   AddObject 29 114 bo_alpo
   AddObject 30 115 bo_block
   AddObject 31 116 bo_block
   AddObject 32 117 bo_dressing
   AddObject 33 118 bo_block
   AddObject 34 119 bo_block
   AddObject 35 120 bo_block
   AddObject 36 121 bo_block
   AddObject 37 122 bo_dressing
   AddObject 38 123 bo_dressing
   AddObject 39 124 bo_block
   AddObject 40 125 bo_block
   AddObject 41 126 bo_block
   AddObject 42 127 bo_dressing
   AddObject 43 128 bo_key1
   AddObject 44 129 bo_key2
   AddObject 45 130 bo_block
   AddObject 46 131 bo_dressing
   AddObject 47 132 bo_food
   AddObject 48 133 bo_firstaid
   AddObject 49 134 bo_clip
   AddObject 50 135 bo_machinegun
   AddObject 51 136 bo_chaingun
   AddObject 52 137 bo_cross
   AddObject 53 138 bo_chalice
   AddObject 54 139 bo_bible
   AddObject 55 140 bo_crown
   AddObject 56 141 bo_fullheal
   AddObject 57 142 bo_gibs
   AddObject 58 143 bo_block
   AddObject 59 144 bo_block
   AddObject 60 145 bo_block
   AddObject 61 146 bo_gibs
   AddObject 62 147 bo_block
   AddObject 63 148 bo_block
   AddObject 64 149 bo_dressing
   AddObject 65 150 bo_dressing
   AddObject 66 151 bo_dressing
   AddObject 67 152 bo_dressing
   AddObject 68 153 bo_block
   AddObject 69 154 bo_block
   AddObject 70 155 bo_dressing
   ; Assign bo_clip2 an unused object code.
   AddObject 9999 134 bo_clip2
   ; Set the sounds	
   SetSound 23 SLURPIESND
   SetSound 29 HEALTH1SND
   SetSound 43 GETKEYSND
   SetSound 44 GETKEYSND
   SetSound 47 HEALTH1SND
   SetSound 48 HEALTH2SND
   SetSound 49 GETAMMOSND
   SetSound 50 GETMACHINESND
   SetSound 51 GETGATLINGSND
   SetSound 52 BONUS1SND
   SetSound 53 BONUS2SND
   SetSound 54 BONUS3SND
   SetSound 55 BONUS4SND
   SetSound 61 SLURPIESND
   SetSound 9999 GETAMMOSND
   ; pickup face
   SetFace 51 GOTGATLINGPIC
End