more like turn-cringe rpg

This commit is contained in:
the me 2022-08-18 13:50:51 -07:00
parent 26eabf966d
commit dcd717febe
4 changed files with 22 additions and 1 deletions

View File

@ -83,6 +83,7 @@
{"id":{"name":"draw_outline","path":"scripts/draw_outline/draw_outline.yy",},"order":5,},
{"id":{"name":"distabs","path":"scripts/distabs/distabs.yy",},"order":11,},
{"id":{"name":"nam","path":"scripts/nam/nam.yy",},"order":13,},
{"id":{"name":"c_dewait","path":"scripts/c_dewait/c_dewait.yy",},"order":21,},
{"id":{"name":"c_resetbattlevar","path":"scripts/c_resetbattlevar/c_resetbattlevar.yy",},"order":14,},
{"id":{"name":"array_find_index","path":"scripts/array_find_index/array_find_index.yy",},"order":1,},
{"id":{"name":"array_greatest","path":"scripts/array_greatest/array_greatest.yy",},"order":4,},

View File

@ -65,4 +65,6 @@ var i;
for (i=0; i<array_length(global.units[global.turn]); i++) {
if global.units[global.turn][i].waiting = false exit;
}
c_dewait(global.turn);
global.turn = (global.turn+1)%2;
log("TURN " + string(global.turn));

View File

@ -0,0 +1,6 @@
function c_dewait(alignment) {
var i;
for (i=0; i<array_length(global.units[alignment]); i++) {
global.units[alignment][i].waiting = false;
}
}

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "c_dewait",
"tags": [],
"resourceType": "GMScript",
}