Trigger that activates when the player dies

Designed a really awesome, amazing, complicated contraption? Show it off here!

Trigger that activates when the player dies

Postby KABOOM » Tue May 09, 2017 4:06 pm

What the title says. Important code stuff is in the hitbox that's set over the checkpoint in this demonstration level.

Code: Select all
55x25~.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ25.18bX12eQ5.15eQ5.12cd3.3bX12eQ5.15eQ5.12bX18eQ5.15eQ5.12bX18eQ5.15eQ5.12bX18eQ5.15eQ5.30eQ5.15eQ5.30eQ5.15eQ5.30eQ5.15eQ5.30eQ25.30eQ25amap2.27eQ25am3.9bX18eQ25am3.9bX18eQ25am3.9bX18eQ25~.584eQ17.38eQ17.16cd3.19eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.4eQ17.16bX18.37bX18~~6;696;512;16;192;0;1;c,This%20trigger%20kills%20the%20player.:cinemamode:set,my_var,0:move,block,0,16,0,0:add,my_var,my_var,1:sleep,1:branch,2,3,my_var,14|335;1152;592;-1;1;0;;0|331;1208;608;1;1;0;;0|90:kaboom;1424;224;-1;1;0;;1;11;3;c,Ah%2C%20so%20you%20DO%20understand%20what%20a%20level%20designer%20is.;0|356;520;624;1;1;0;;0|356;728;624;1;1;0;;0|356;936;624;1;1;0;;0|356;1368;544;1;1;0;;0~0;132;706;1;0;0|325;376;520;2;2;45;;0|325;360;536;2;2;45;;0|325;344;552;2;2;45;;0|325;328;568;2;2;45;;0|325;312;584;2;2;45;;0|325;296;600;2;2;45;;0|325;280;616;2;2;45;;0|325;264;632;2;2;45;;0|325;248;648;2;2;45;;0|325;232;664;2;2;45;;0|325;216;680;2;2;45;;0|325;200;696;2;2;45;;0|325;184;712;2;2;45;;0|9;240;720;;9,1;ay9;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1|9:block;704;352;;4,8;aB32;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1|1:point;240;704|310:cell;1120;608;1;4;0;;0|310;1112;608;1;4;0;;0|311:cell;1216;608;1;4;0;;0|6;1168;608;64;64;0;1;|310:cell;1128;608;1;4;0;;0|310:cell;1136;608;1;4;0;;0|310:cell;1144;608;1;4;0;;0|310:cell;1152;608;1;4;0;;0|310:cell;1160;608;1;4;0;;0|310:cell;1168;608;1;4;0;;0|310:cell;1176;608;1;4;0;;0|310:cell;1184;608;1;4;0;;0|310:cell;1192;608;1;4;0;;0|310:cell;1200;608;1;4;0;;0|310:cell;1208;608;1;4;0;;0|2:exit;1680;608|79;80;736;1;1;0;;320;128;0~6;96;640;64;64;0;1;c,Just%20opening%20dialogue.:camera,0,0,0,0,,10,0,10:dialog,1,This%20is%20it...the%20castle.:dialog,1,All%20the%20suffering%20you%27ve%20caused...%0DAll%20the%20pain%20I%27ve%20felt...:dialog,1,It%20all%20ends%20here%20and%20now%21:cameraoff|6;224;512;32;192;0;1;c,If%20s_v%20exists%20and%20is%20greater%20than%200%2C%20then%20go%20to%20the%20stuff%20that%20happens%20after%20the%20player%20dies.:branch,1,6,s_v,0:c,Creates%20s_v%20and%20makes%20it%20greater%20than%200%2C%20then%20ends%20the%20trigger.%20Since%20it%27s%20prefixed%20with%20%22s_%22%2C%20it%27s%20a%20static%20variable%20that%20will%20carry%20over%20after%20the%20player%20dies.:add,s_v,s_v,1:exit:c,The%20stuff%20that%20happens%20when%20the%20player%20dies.%20If%20there%27s%20no%20%22move%20character%22%20trigger%20here%2C%20the%20stuff%20will%20happen%20at%20the%20checkpoint.:cinemamode:movechar,this,1168,608,0,0,0,1:cinemaoff|15;960;672;-1;-1;0;0;;|6;1136;544;64;64;0;1;c,A%20scene%20happens%20to%20explain%28%3F%29%20what%20happened%20when%20the%20player%20%22died%22.:cinemamode:dialog,1,...well%2C%20that%20didn%27t%20work.:set,my_var,0:move,kaboom,0,8,0,0:sleep,1:add,my_var,my_var,1:branch,2,4,my_var,48:camera,1,0,0,0,kaboom,0,0,10:dialog,1,On%20the%20contrary%21%20It%20worked%20exactly%20as%20it%20should%20have.:cameraoff:dialog,1,You%21%20What%20do%20you%20want%20with%20me%20alive%3F:camera,1,0,0,0,kaboom,0,0,10:dialog,1,Oh%2C%20I%20just%20needed%20someone%20to%20test%20a%20feature%20of%20the%20level%20designer%20for%20me.:cameraoff:dialog,1,%22Level%20designer%22%3F%20What%20is%20that%3F:camera,1,0,0,0,kaboom,0,0,10:dialog,1,You%20probably%20wouldn%27t%20understand%20if%20I%20told%20you.:dialog,1,In%20any%20case%2C%20I%27m%20done%20with%20testing%2C%20so%20you%27re%20free%20to%20go%20now.:cameraoff:set,my_var,0:move,cell,0,4,0,0:sleep,1:add,my_var,my_var,1:branch,2,21,my_var,32:dialog,1,...I%20what%20now%3F:setscale,kaboom,1,1,0,1,0,0,1:camera,1,0,0,0,kaboom,0,0,10:set,my_var,0:move,exit,-5,0,0,0:sleep,1:add,my_var,my_var,1:branch,2,29,my_var,32:setscale,kaboom,-1,1,0,1,0,0,1:dialog,1,Exit%27s%20over%20there.:cameraoff:dialog,1,You%27re...letting%20me%20go%3F:camera,1,0,0,0,kaboom,0,0,10:dialog,1,Yup.:cameraoff:dialog,1,But...but...:camera,1,0,0,0,kaboom,0,0,10:dialog,1,Look%2C%20are%20you%20getting%20out%20of%20this%20dungeon%20or%20not%3F:cameraoff:dialog,1,You%20killed%20people%21%20You%20ruined%20my%20life%21:camera,1,0,0,0,kaboom,0,0,10:dialog,1,Yeah%2C%20and%20now%20it%27s%20all%20paid%20off.%20So%2C%20get%20out%20of%20here.%0D:cameraoff:dialog,1,........................................:camera,1,0,0,0,kaboom,0,0,10:dialog,1,Well%2C%20I%27d%20better%20get%20going.%20Busy%20day%20today.%20You%20know%20how%20it%20is.:cameraoff:dialog,1,I%20do%20NOT-:set,my_var,0:move,kaboom,0,-8,0,0:sleep,1:add,my_var,my_var,1:branch,2,54,my_var,48:dialog,1,...I%20don%27t%20know%20how%20%3Ci%3Eanything%3C/i%3E%20is%20anymore.~trigger%20on%20death~KABOOM~8~6;0;0~1~0;0~0;0;3~1494345963~0.5~4,3,0,0,0,0,0,0,0,0,0,0
User avatar
KABOOM
 
Posts: 54
Joined: Wed Aug 13, 2014 1:02 pm

Return to Trigger creations

Who is online

Users browsing this forum: No registered users and 0 guests

cron