- Joined
- Aug 20, 2015
- Messages
- 53
- Reaction score
- 19
- First Language
- German
- Primarily Uses
Hi there!
I'm trying to build a Deck logic for my game idea
the following code work on my test fine but doesnt work as an script call in MV, can anyone say me why or what i have to change?
I'm trying to build a Deck logic for my game idea
the following code work on my test fine but doesnt work as an script call in MV, can anyone say me why or what i have to change?
var drawArray = [0, 1];
for (i = 0; i < $gameVariables.value(1); ) {
var x = Math.floor((Math.random() * ($gameVariables.value(6) - $gameVariables.value(5) + 1) + $gameVariables.value(5)));
if (drawArray.includes(x)) {
}
else {
drawArray.push(x);
$gameVariables.setValue(8, x);
show_actor_command($gameVariables.value(3), "use_skill", $gameVariables.value(8));
i++
}
}
