Advertisement
TJSJ

Birdylami Console Commands

Feb 4th, 2022
2,421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Birdylami Console Commands:
  2.  
  3.  
  4.  
  5.  
  6. Alarm Event for alarm 2:
  7.  
  8. execute code:
  9.  
  10. ///Command Example
  11. //if i = <number of arguments needed>
  12. //{ if string(array[0]) == "/commandname"
  13. //{ do stuff
  14. //}
  15. //}
  16.  
  17. execute code:
  18.  
  19. ///DEBUG COMMANDS "./debug" & "./debug show <data>"
  20.  
  21. draw_set_font(font2)
  22.  
  23. if i = 0
  24. if string(array[0]) == "/debug"
  25. if !instance_exists(displaydebug)
  26. {
  27.                 alarm[4] = 180
  28.                 instance_create(1,1,displaydebug)
  29.                 can_show_text = 1
  30.                 show_text = "Debug Enabled! Press Q to disable debug"
  31. }        
  32.  
  33. if i = 0
  34. if string(array[0]) == "/debug"
  35. {
  36. if instance_exists(displaydebug)
  37. {
  38.                 can_show_text = 1
  39.                 {
  40.                 show_text = "Debug is already Enabled!#Press Q to disable debug"
  41.                 alarm[4] = 180
  42.                 }
  43. }
  44. }
  45.  
  46. if i = 1
  47. if string(array[0]) == "/debug"
  48. { switch(array[1])
  49. {
  50.     case "gameFPS": global.show_debug = 0; break;
  51.     case "mainStats": global.show_debug = 1; break;
  52.     case "loadedObjects": global.show_debug = 2; break;
  53.     case "systemInfo": global.show_debug = 3; break;
  54.     case "enableTime": global.show_time = 1; break;
  55.     case "disableTime": global.show_time = 0; break;
  56.     default:
  57.     {
  58.     show_text = "No such argument exists: "+array[1]
  59.     can_show_text = 1
  60.     alarm[4] = 180
  61.     }
  62. }
  63. }
  64.  
  65. if i = 1
  66. if string(array[0]) == "/debug"
  67. {
  68. show_text = "Not Enough Arguments"
  69. can_show_text = 1
  70. alarm[4] = 180
  71. }
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. objnme1 = array[2]
  81. objvar1 = array[3]
  82. // ./debug showObjectValue <object> <variable>
  83. if i = 3
  84. if string(array[0]) == "/debug"
  85. if string(array[1]) == "showObjectVar"
  86. if object_exists(asset_get_index(array[2]))
  87. {
  88. if instance_exists(array[2])
  89. with (array[2])
  90. {
  91. var myvar = other.objvar1
  92. if !is_undefined(other.objvar1)
  93.     {
  94.     global.customDebug = real(other.objvar1)
  95.     global.customDebugObject = other.objnme1
  96.     global.customDebugVar = other.objvar1
  97.     }
  98. }
  99. }
  100.  
  101. draw_set_font(font0)
  102.  
  103.  
  104. execute code:
  105.  
  106. ///SETVALUE COMMANDS: ex. "./setlives <amount>" & "./setgems <amount>"
  107. var real1;
  108. real1 = real(array[1])
  109.  
  110. // ./tp <x> <y>
  111. if i = 2
  112. if (string(array[0]) == "/teleport"
  113.   || string(array[0]) == "/tp")
  114.   && (string(real(array[1])) == string(array[1]) && (string(real(array[2])) == string(array[2])))
  115.   {
  116.   with (mainchar)
  117.   {
  118.   x = real(other.array[1])
  119.   y = real(other.array[2])
  120.   other.show_text = "You teleported to#the coordinates of ("+string(other.array[1])+","+string(other.array[2])+")"
  121.   other.can_show_text = 1
  122.   other.alarm[4] = 400
  123.   }
  124.   }
  125. if i < 2
  126. { if (string(array[0]) == "/teleport"
  127.   || string(array[0]) == "/tp")
  128.   {
  129.   show_text = "Missing arguments, command syntax is#./tp <x-coord> <y-coord>"
  130.   can_show_text = 1
  131.   alarm[4] = 400
  132.   }
  133. }
  134.  
  135. // ./tprel <x> <y>
  136. if i = 2
  137. if (string(array[0]) == "/tprel"
  138.   || string(array[0]) == "/tp~")
  139.   && (string(real(array[1])) == string(array[1]) && (string(real(array[2])) == string(array[2])))
  140.   {
  141.   with (mainchar)
  142.   {
  143.   x += real(other.array[1])
  144.   y += real(other.array[2])
  145.   other.show_text = "You teleported to#the coordinates of ("+string(other.array[1])+","+string(other.array[2])+")"
  146.   other.can_show_text = 1
  147.   other.alarm[4] = 400
  148.   }
  149.   }
  150. if i < 2
  151. { if (string(array[0]) == "/tprel"
  152.   || string(array[0]) == "/tp~")
  153.   {
  154.   show_text = "Missing arguments, command syntax is#./tprel <x-off> <y-off>"
  155.   can_show_text = 1
  156.   alarm[4] = 400
  157.   }
  158. }
  159.  
  160. // ./roomnav <roomname>
  161. if i = 1
  162. if (string(array[0]) == "/roomnav"
  163.   || string(array[0]) == "/rn")
  164. if room_exists(asset_get_index(array[1]))
  165.   {
  166.   audio_stop_all()
  167.   room_goto(asset_get_index(array[1]))
  168.   }
  169. if i = 1  
  170. { if (string(array[0]) == "/roomnav"
  171.   || string(array[0]) == "/rn")
  172.   if !room_exists(asset_get_index(array[1]))
  173.   {
  174.   other.show_text = "Room "+array[1]+" does not exist! D:"
  175.   other.can_show_text = 1
  176.   other.alarm[4] = 600
  177.   }
  178. }
  179.  
  180. // ./addexp <amount>
  181. if i = 1
  182. { if (string(array[0]) == "/addexp"
  183.   || string(array[0]) == "/exp+")
  184.   {
  185.   global.add_exp = 1
  186.   global.stamina_exp += real(array[1])
  187.   show_text = "You have acquired: "+string(real1)+" exp!"
  188.   can_show_text = 1
  189.   alarm[4] = 400
  190.   }
  191. }
  192.  
  193.  
  194.   // ./set <variable> (integer)
  195.  
  196. if i = 2
  197. { if (string(array[0]) == "/setvalue"
  198.   || string(array[0]) == "/set")
  199.   {
  200.   switch(string(array[1]))
  201.   {
  202.         case "gems":
  203.         {
  204.         global.currency = real(array[2])
  205.         show_text = "You now have "+array[2]+" gems!"
  206.         can_show_text = 1
  207.         alarm[4] = 400
  208.         } break;
  209.         case "lives":
  210.         {
  211.         global.gamelives = real(array[2])
  212.         show_text = "You now have "+array[2]+" lives!"
  213.         can_show_text = 1
  214.         alarm[4] = 400
  215.         } break;
  216.         case "vspeed":
  217.         {
  218.         view_object[0].vspeed = real(array[2])
  219.         show_text = "Your vertical speed has#been set to "+array[2]
  220.         can_show_text = 1
  221.         alarm[4] = 400
  222.         } break;
  223.         case "hspeed":
  224.         {
  225.         view_object[0].hspeed = real(array[2])
  226.         show_text = "Your horizontal speed has#been set to "+array[2]
  227.         can_show_text = 1
  228.         alarm[4] = 400
  229.         } break;
  230.         case "hp":
  231.         {
  232.         global.marsoehp = real(array[2])
  233.         show_text = "Your health has now been set to "+array[2]+"HP"
  234.         can_show_text = 1
  235.         alarm[4] = 400
  236.         } break;
  237.         default:
  238.         {
  239.         other.show_text = "Error: type ./set (variable) (value)#Your argument is invalid >:)#Usable variables: gems,lives,hspeed,vspeed"
  240.         other.can_show_text = 1
  241.         other.alarm[4] = 600
  242.         }
  243.         }
  244.         }
  245.         }
  246.  
  247. if i = 1
  248. if string(array[0]) == "/setlives"
  249. {
  250. global.gamelives = real(array[1])
  251. show_text = "You now have "+array[1]+" lives!"
  252. can_show_text = 1
  253. alarm[4] = 180
  254. }
  255.  
  256. // ./setgems (integer)
  257.  
  258. if i = 1
  259. if string(array[0]) == "/setgems"
  260. {
  261. global.currency = real(array[1])
  262. show_text = "You now have "+array[1]+" gems!"
  263. can_show_text = 1
  264. alarm[4] = 180
  265. }
  266.  
  267. // ./godmode
  268. if i = 0
  269. if string(array[0]) == "/godmode on"
  270. if global.godmode = 0
  271. {
  272. global.godmode = 1
  273. show_text = "God Mode is now Enabled!"
  274. can_show_text = 1
  275. alarm[4] = 180
  276. }
  277.  
  278. if i = 0
  279. if string(array[0]) == "/godmode off"
  280. if global.godmode = 1
  281. {
  282. global.godmode = 0
  283. show_text = "God Mode is now Disabled!"
  284. can_show_text = 1
  285. alarm[4] = 180
  286. }
  287.  
  288. // ./setmusicpitch <value>
  289. if i = 1
  290. if (string(array[0]) == "/setmusicpitch"
  291. || string(array[0]) == "/smp")
  292. {
  293. global.BGPitch = real(array[1])
  294. audio_sound_pitch(global.BGMusic,global.BGPitch)
  295. audio_sound_pitch(global.start_music,global.BGPitch)
  296. audio_sound_pitch(global.world1_theme,global.BGPitch)
  297. show_text = "Pitch has been set to "+array[1]+"!"
  298. can_show_text = 1
  299. alarm[4] = 180
  300. }
  301.  
  302. // ./setmusicvolume <value>
  303. if i = 1
  304. if (string(array[0]) == "/setmusicvolume"
  305. || string(array[0]) == "/smv")
  306. if (is_real(real1))
  307. if (real1 <= 1) && (real1 >= 0)
  308. {
  309. global.musicvolume = real1
  310. audio_sound_gain(global.BGMusic,global.musicvolume,0);
  311. show_text = "Music volume has been set to: "+string(real1*100)+"%"
  312. can_show_text = 1
  313. alarm[4] = 180
  314. }
  315.  
  316. // ./setsfxvolume <value>
  317. if i = 1
  318. if (string(array[0]) == "/setsfxvolume"
  319. || string(array[0]) == "/ssv")
  320. if (is_real(real1))
  321. if (real1 <= 1) && (real1 >= 0)
  322. {
  323. global.soundvolume = real1
  324. audio_sound_gain(global.SND,global.soundvolume,0);
  325. show_text = "SFX volume has been set to: "+string(real1*100)+"%"
  326. can_show_text = 1
  327. alarm[4] = 180
  328. }
  329.  
  330. // ./timeset <day|(sunrise/sunset)|night>
  331. if i = 1
  332. if (string(array[0]) == "/timeset"
  333. || string(array[0]) == "/ts")
  334. {
  335. global.ignore_time_phase = "true"
  336. switch(string(array[1]))
  337.     {
  338.     case "day":
  339.         {
  340.         global.time_phase = "day";
  341.         show_text = "Time has been set to: "+string(array[1])
  342.         can_show_text = 1
  343.         alarm[4] = 300
  344.         } break;
  345.     case "sunrise":
  346.         {
  347.         global.time_phase = "transition";
  348.         show_text = "Time has been set to: "+string(array[1])
  349.         can_show_text = 1
  350.         alarm[4] = 300
  351.         } break;
  352.     case "sunset":
  353.         {
  354.         global.time_phase = "transition";
  355.         show_text = "Time has been set to: "+string(array[1])
  356.         can_show_text = 1
  357.         alarm[4] = 300
  358.         } break;
  359.     case "night":
  360.         {
  361.         global.time_phase = "night";
  362.         show_text = "Time has been set to: "+string(array[1])
  363.         can_show_text = 1
  364.         alarm[4] = 300
  365.         } break;    
  366.     default:
  367.         {
  368.         show_text = ""+string(array[1])+" is not an#existing time#Please type#./timeset <day|(sunrise/sunset)|night>"
  369.         can_show_text = 1
  370.         alarm[4] = 300
  371.         }
  372.     }
  373. }
  374.  
  375.  
  376.  
  377.  
  378. // ./vsync <on/off>
  379. if i = 1
  380. if string(array[0]) == "/vsync"
  381. { switch(array[1])
  382. {
  383.     case "enable":
  384.     {
  385.     global.toggle_vsync = 1;
  386.     show_text = "Vsync has been Enabled!"
  387.     can_show_text = 1
  388.     alarm[4] = 180
  389.     }
  390.     break;
  391.    
  392.     case "disable":
  393.     {
  394.     global.toggle_vsync = 0;
  395.     show_text = "Vsync has been Disabled!"
  396.     can_show_text = 1
  397.     alarm[4] = 180
  398.     }
  399.     break;
  400.    
  401.     default:
  402.     {
  403.     show_text = "You must either type:#./vsync enable#or#./vsync disable"
  404.     can_show_text = 1
  405.     alarm[4] = 180
  406.     }
  407. }
  408. }
  409.  
  410.  
  411.                  
  412.    
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421. execute code:
  422.  
  423. /// ./settileshader <color> <alpha>
  424.  
  425. if i = 2
  426. if instance_exists(parent_character)
  427. if (string(array[0]) == "/settileshader"
  428. || string(array[0]) == "/sts")
  429. {
  430.     global.tilecolor1 = real(array[1])
  431.     global.tilecolor1alpha = real(array[2])
  432. }
  433.  
  434. execute code:
  435.  
  436. ///Command Example
  437. // ./mycoords
  438. var cx, cy;
  439. if !instance_exists(view_object[0])
  440. {
  441.                 cx = 0;
  442.                 cy = 0;
  443. }
  444. if instance_exists(view_object[0])
  445. {
  446.                 cx = view_object[0].x
  447.                 cy = view_object[0].y
  448. }
  449.  
  450. if i = 0
  451. if ((string(array[0]) == "/mycoords")
  452. || (string(array[0]) == "/myxy"))
  453. if instance_exists(view_object[0])
  454. {
  455.                 alarm[4] = 180
  456.                 can_show_text = 1
  457.                 show_text = "Your coordinates are:#( "+string(cx)+" , "+string(cy)+" )"
  458. }        
  459.  
  460. if i = 0
  461. if string(array[0]) == "/debug"
  462. if !instance_exists(displaydebug)
  463. {
  464.                 alarm[4] = 180
  465.                 instance_create(1,1,displaydebug)
  466.                 can_show_text = 1
  467.                 show_text = "Debug Enabled! Press Q to disable debug"
  468. }        
  469.  
  470.  
  471. execute code:
  472.  
  473. /// ./setwindowsize <4:3 scale res>
  474. //(ex. /setwindowsize 500, will set it to 500x75% of 500)
  475. var rel1, rel2;
  476. rel1 = real(array[1]);
  477. rel2 = real(array[2]);
  478.  
  479. if i = 1
  480. if (string(array[0]) == "/setwindowsize"
  481. || string(array[0]) == "/sws")
  482. if (is_real(rel1))
  483. if (rel1 > 199) && (rel1 < 4097)
  484. {
  485. window_set_size(rel1,rel1*0.75)
  486. global.wwindow = rel1
  487. global.hwindow = rel1*0.75
  488. show_text = "Window size set to: "+string(global.wwindow)+"x"+string(global.hwindow)
  489. can_show_text = 1
  490. alarm[4] = 180
  491. }
  492. // ./setviewsize <width> <height>
  493. if i = 2
  494. if (string(array[0]) == "/setviewsize"
  495. || string(array[0]) == "/svs")
  496. if (is_real(rel1))
  497. if (is_real(rel2))
  498. {
  499. view_wport[0] = rel1
  500. view_hport[0] = rel2
  501. surface_resize(application_surface, rel1, rel2);
  502. show_text = "View size set to: "+string(rel1)+"x"+string(rel2)
  503. can_show_text = 1
  504. alarm[4] = 240
  505. }
  506.  
  507.  
  508.  
  509. execute code:
  510.  
  511. /// ./setshader <color of darkness> <color of light> <alpha>
  512.  
  513. if i = 3
  514. if string(array[0]) == "/setshader"
  515. if real(array[3]) > 0 && real(array[3]) <= 1
  516. {
  517. global.darkColor = real(array[1])
  518. global.lightColor = real(array[2])
  519. global.shaderAlpha = real(array[3])
  520. show_text = "Modifications to the shaders#Have now been set!"
  521. can_show_text = 1
  522. alarm[4] = 180
  523. }
  524.  
  525. // ./setshader <help>
  526. if i = 1
  527. if string(array[0]) == "/setshader"
  528. if string(array[1]) == "help"
  529. {
  530. show_text = "Syntax for this command is:#./setshader <darkcolor> <lightcolor> <alpha>"
  531. can_show_text = 1
  532. alarm[4] = 180
  533. }
  534.  
  535.  
  536.  
  537. execute code:
  538.  
  539. ///Spawn in an Image by Image URL
  540. // ./spawn_image <url> <x> <y>
  541. // ./spawn_image_with_properties <url> <x> <y>
  542. // ./siwp <url> <x> <y>ar4 = real(array[4])
  543. ar1 = real(array[1])
  544. ar2 = real(array[2])
  545. ar3 = real(array[3])
  546. ar5 = real(array[5])
  547. ar6 = real(array[6])
  548. ar7 = real(array[7])
  549. ar8 = real(array[8])
  550. var ob_x, ob_y, isColor;
  551. ob_x = real(array[2])
  552. ob_y = real(array[3])
  553. isColor = is_undefined(array[7])
  554.  
  555. // ./spawn_image <url> <x> <y> <name>
  556. if i = 4
  557. { if ((is_real(ob_x)) && (is_real(ob_y)) && (is_string(array[4])))
  558. { if (string(array[0]) == "/spawn_image"
  559.   || string(array[0]) == "/si")
  560. {  with (instance_create(view_object[0].x+ob_x,view_object[0].y+ob_y,obj_customImage))
  561. {  customImage = sprite_add(other.array[1],0,0,0,sprite_get_width(other.array[1])/2,sprite_get_height(other.array[1])/2)
  562.    useProperties = 1
  563.    myName = other.array[4]
  564. }
  565. }
  566. }
  567. }
  568.  
  569. // ./editimage <property> <value(s)>
  570. if i = 2
  571. { if (string(array[0]) == "/editimage"
  572.   || string(array[0]) == "/ei")
  573. { with (obj_customImage)
  574.     { if canEdit = 1
  575.         {
  576.         switch(other.array[1])
  577.         {
  578.         case "xscale": myXscale = other.ar2; break;
  579.         case "yscale": myYscale = other.ar2; break;
  580.         case "rotation": myRot = other.ar2; break;
  581.         case "name": myName = string(other.array[2]); break;
  582.         case "layer": depth = other.ar2; break;
  583.         case "alpha": myAlpha = other.ar2; break;
  584.         case "color": myCol = other.ar2; break;
  585.         default:
  586.             {
  587.             other.show_text = "Invalid Arguments#Your argument is invalid >:)"
  588.             other.can_show_text = 1
  589.             other.alarm[4] = 600
  590.             }
  591.         }
  592.         }
  593.         }
  594.         }
  595.         }
  596. if i = 0
  597. { if (string(array[0]) == "/exitimageeditor"
  598.   || string(array[0]) == "/eie")
  599. { with (obj_customImage)
  600.     { canEdit = 0 }
  601.         show_text = "Exited image editor!"
  602.         can_show_text = 1
  603.         alarm[4] = 600
  604. }
  605. }
  606.  
  607. if i = 1
  608. if (string(array[0]) == "/editimage"
  609. || string(array[0]) == "/ei")
  610. if instance_exists(obj_customImage)
  611. { with (obj_customImage)
  612.     {
  613.     if myName == other.array[1]
  614.       { canEdit = 1; }
  615.     if myName != other.array[1]
  616.       {
  617.       other.show_text = ""+string(other.array[1])+" is not an existing image!"
  618.       other.can_show_text = 1
  619.       other.alarm[4] = 300
  620.       }
  621.       }
  622. }
  623.      
  624.  
  625. if i = 0
  626. { if (string(array[0]) == "/deleteimage"
  627.   || string(array[0]) == "/di")
  628. { with (obj_customImage)
  629.     { if canEdit = 1
  630.         {
  631.         other.show_text = ""+string(myName)+" has been deleted!"
  632.         other.can_show_text = 1
  633.         other.alarm[4] = 600
  634.         instance_destroy() }
  635.     }
  636. }
  637. }
  638.  
  639.  
  640.  
  641. // ./spawn_image_with_properties <url> <x> <y> <xscale> <yscale> <rotation> <color> <alpha>
  642. if i = 8
  643. { if ((is_real(ob_x)) && (is_real(ob_y)) && (is_real(ar4)) && (is_real(ar5)) && (is_real(ar6)) && (is_real(ar7)) && (is_real(ar8)))
  644. { if ((string(array[0]) == "/spawn_image_with_properties")
  645.   || (string(array[0]) == "/siwp"))
  646. {  with (instance_create(view_object[0].x+ob_x,view_object[0].y+ob_y,obj_customImage))
  647. {  
  648.    customImage = sprite_add(other.array[1],0,0,0,0,0)
  649.    useProperties = 1
  650.    myXscale = real(other.array[4])
  651.    myYscale = real(other.array[5])
  652.    myRot = real(other.array[6])
  653.    myCol = real(other.array[7])
  654.    myAlpha = 1;
  655.    myAlpha = real(other.array[8])
  656.    other.show_text = "Your inputs: xscale: "+string(myXscale)+"#yscale: "+string(myYscale)+"#rot: "+string(myRot)+"#color: "+string(myCol)+"#alpha: "+string(myAlpha)
  657.    other.can_show_text = 1
  658.    other.alarm[4] = 300
  659. }
  660. }
  661. }
  662. }
  663.  
  664. execute code:
  665.  
  666. ///SPAWN COMMANDS "./spawn x y <object>" & "./relspawn x y <object>"
  667. var xoffset, yoffset;
  668. xoffset = 0
  669. yoffset = 0
  670.  
  671. //Command Example
  672. //if i = <number of arguments needed>
  673. //{ if string(array[0]) == "/commandname"
  674. //{ do stuff
  675. //}
  676. //}
  677.  
  678.  
  679.  
  680. draw_set_font(font2)
  681.  
  682. if i = 3
  683. { if string(array[0]) == "/spawn"
  684. { if object_exists(asset_get_index(array[1]))
  685. { instance_create(ob_x,ob_y,asset_get_index(array[1]))
  686.                 show_text = "Spawned "+array[1]
  687.                 can_show_text = 1
  688.                 alarm[4] = 180
  689. }
  690. }
  691. }
  692.  
  693. //
  694. // "/relspawn"
  695. //
  696.    
  697. if i = 3
  698. { if string(array[0]) == "/relspawn"
  699. { if object_exists(asset_get_index(array[1]))
  700. { instance_create(view_object[0].x+ob_x,view_object[0].y+ob_y,asset_get_index(array[1]))
  701.                 show_text = "Spawned "+array[1]
  702.                 can_show_text = 1
  703.                 alarm[4] = 180
  704. }
  705. }
  706. }
  707.  
  708. // ./spawn_clones_in_array <object> <clone amount> <x> <y> <xoffset> <yoffset>
  709.  
  710. if i = 6
  711. { if (string(array[0]) == "/spawn_clones_in_array")
  712.   || (string(array[0]) == "/scia")
  713. { if object_exists(array[1])
  714. { if (string(real(array[2])) == string(array[2])) && (string(real(array[3])) == string(array[3])) && (string(real(array[4])) == string(array[4])) && (string(real(array[5])) == string(array[5])) && (string(real(array[6])) == string(array[6]))
  715. repeat(array[2])
  716. {                
  717.                 instance_create((view_object[0].x+real(array[3]))+xoffset,(view_object[0].y+real(array[4]))+yoffset,asset_get_index(array[1]))
  718.                 {
  719.                 xoffset += real(array[5])
  720.                 yoffset += real(array[6])
  721.                 }
  722.                 show_text = "Spawned "+array[1]
  723.                 can_show_text = 1
  724.                 alarm[4] = 400
  725.                
  726.                
  727. }
  728. }
  729. }
  730. }
  731.  
  732. if i >= 0
  733. if i != 6
  734. if (string(array[0]) == "/spawn_clones_in_array")
  735. || (string(array[0]) == "/scia")
  736. {
  737.  show_text = "Not enough arguments :(#Type ./spawn_clones_in_array #<obj> <amount> <x> <y> <xoff> <yoff>"
  738.  can_show_text = 1
  739.  alarm[4] = 600
  740. }
  741.  
  742. // ./smp <x> <y> <horizonal/vertical> <amplitude> <increment> <orbital radius> <orbital angle> <orbital speed>
  743.  
  744. if i = 8
  745. if instance_exists(view_object[0])
  746. if (string(array[0]) == "/spawn_moving_wave_platform"
  747. || string(array[0]) == "/smwp")
  748. {
  749.     with(instance_create(view_object[0].x+real(array[1]),view_object[0].y+real(array[2]),platform_verticalmove))
  750.     {
  751.         other.show_text = "Spawned moving platform"
  752.         other.can_show_text = 1;
  753.         other.alarm[4] = 180;
  754.         switch(string(other.array[3]))
  755.         {
  756.             case("horizontal"): move_wave_horizontal(real(other.array[4]),real(other.array[5])); break;
  757.             case("vertical"): move_wave_vertical(real(other.array[4]),real(other.array[5])); break;
  758.             case("both"):
  759.             move_wave_horizontal(real(other.array[4]),real(other.array[5]));
  760.             move_wave_vertical(real(other.array[4]),real(other.array[5])); break;
  761.             default:
  762.             other.show_text = "Wrong input for the 3rd argument:#"+string(other.array[3]) + "#Must be horizontal vertical, or both";
  763.             other.can_show_text = 1;
  764.             other.alarm[4] = 400;
  765.         }
  766.         orbit_radius = real(other.array[5]);
  767.         orbit_angle = real(other.array[6]);
  768.         orbit_speed = real(other.array[7]);
  769.         trig = true;
  770.     }                              
  771. }
  772.  
  773. //spawn moving platform command help
  774.  
  775. if i >= 0
  776. if i != 8
  777. if (string(array[0]) == "/spawnmovingwaveplatform" ||
  778.     string(array[0]) == "/smwp")
  779.     {
  780.     show_text =
  781.     "Not enough arguments :(" +
  782.     "#Type "+string(array[0])+
  783.     " <x> <y>
  784.     <horizontal/vertical>
  785.                  <amplitude> <increment>
  786.                  <orbit radius> <orbit angle>
  787.                  <orbit speed>"
  788.     can_show_text = 1;
  789.     alarm[4] = 700;
  790.     }
  791.            
  792.                
  793. draw_set_font(font0)
  794.    
  795. //  ./debug
  796. //  ./debug show loadedObjects
  797. //  ./debug show mainStats
  798. //  ./debug show systemInfo
  799. //
  800. //
  801. //
  802.  
  803.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement