Fulltext results:
- operator_expressions @script:walkthrough
- $ print 'Numbers:', 1 + 1, -.5 + .5 Numbers: 2 0 $ print 'Larger than 32-bit:', \ 0xffffffffff + 0xffffffffff Larger than 32-bit: 2.19902e+12 $ print 'Text:', 'Hello' + 'World' Te... : d } $ print 'Time:', Time() + 3600 Time: 2019-11-19 22:56:53.514 ===== Subtraction ===== ... 5 - .5 Numbers: 0 -1 $ print 'Larger than 32-bit:', 0xffffffffff - 0xffffffffff Larger than 32-bit: 0 $ print '
- world @script:module
- #@Identifier_HTML~angle~@# ( ) (Availability: added in [[version:2.3.2]]) Returns the angle of the thing: 0 = East, 90 = North, 180 = West, 270 = South. #@Identifier_HTML~attack~@# ( #@Arg_HTML~Number,d... #@Arg_HTML~Number,degrees~@# ) (Availability: added in [[version:2.3.2]]) Changes the angle of the thing to //degrees//. 0 = East, 90 = North, 180 = West, 270 = South. #@Identifier_HTML~setNoBlocking~@# (
- statements_and_compounds @script:walkthrough
- ill looping because 3 > 0 Still looping because 2 > 0 Still looping because 1 > 0 ==== break ==== The ''break'' statement is used to break out of loop... rint "Uh-oh, now I'm in trouble!" break 2 end end print "Whew" ==== for ==== ''... ining the key and the value. a = {'a': 1, 'b': 2} for i in a print i end Output: [ a
- defs @script:module
- 0, 0, 0 ] name: Zombieman painChance: 200 radius: 20 reactionTime:8 sounds: [ popain, podth1, posact, , posit1 ] spawnHealth: 20 speed: 8 states: [ POSS_STND, POSS... re stored in the order they were read from the [[:DED]] files. The order is meaningful because generall
- core @script:module
- ules, /data/net.dengine.client.pack/modules ] Loaded packages can add paths here using ''importPath'' ... TML~Number,target~@#, #@Arg_HTML~Number,span~@# = 0, #@Arg_HTML~Number,delay~@# = 0 ) Starts a new animation from the current value to //target//. The ... , however the delay time is considered to be included in //span// so increasing the value of //delay//
- reference
- In older versions: [[/script/reference?rev=1576480962#using_doomsday_script|2.2]] ==== Editor support ==== * Visual Studio C
- audio @script:module
- bient sound effects are linked to DoomEd numbers 1200-1299. When one of these map spots is placed in a ... /sequenceNumber// zero corresponds DoomEd number 1200. There can be up to eight sequences playing in th... tic's built-in sequences ("Drops", DoomEd number 1202): <code> Audio.setAmbientSequence(2, [ "pla... undID, volume | Play a sound at specified volume (0...127) | | ''playrelvol'' | soundID, volumeOffset | Pl
- app @script:module
- lable in Hexen.) Returns the current armor type (0, 1, or 2) of the player. #@Identifier_HTML~giveAmmo~@# (... e internal ammo type IDs defined in doomdef.h or h2def.h. #@Identifier_HTML~giveArmor~@# ( #@Arg_H... * App.Player.PT_FLIGHT * App.Player.PT_HEALTH2 * App.Player.PT_INFRARED * App.Player.PT_INVI... App.Player.PT_SHIELD * App.Player.PT_WEAPONLEVEL2 #@Identifier_HTML~health~@# ( ) Returns the cu
- functions @script:walkthrough
- sed in the end. def func1(): pass def func2() end The ''return'' statement is used to retu... def func5(a, b, c) Default values can be included. def func5(a, b='default', c=100) When calling a function, all arguments must have values. Argument names can always be included in
- gui @script:module
- ,path~@# ) Returns a version of //path// where "@2x" is appended to the end if ''DisplayMode.PIXEL_RATIO'' is 2 (approximately). #@Identifier_HTML~scale~@# ( #@UArg