ID:180560
 
OK, I've been trying to work with this, and I'm having a little trouble. Once again, I'm using Dan's TakeTurns library.

Now, here's what I have in my code.

TakeTurns/BeginTurn()
if(cur_player.HP <= 0)
return
if(cur_player.duel_status == 1)
if(cur_player.client)
cur_player.cattack = input(etc)
else
cur_player.cattack = pick (etc)
if(cur_player.duel_status == 2)
if(cur_player.client)
cur_player.cdefense = input(etc)
else
cur_player.cdefense = pick(etc)
trn.NextTurn()

(Wherever I "etc" wherever there is unimportant stuff)
Now, it doesn't seem to be catching on either of the If statements. Whenever I run it, I get an infinite loop error. But, it SHOULD ctach on one of the If statements, because cur_player.duel_status will equal 1 or 2.

I just tried outputting cur_player.duel_status, and it gave me a bunch of nothing (just kept scrolling). So that explains why the If statements aren't catching it. I also just tried initiating duel_status to 1. It would output 1 in my test, but it still wouldn't catch on the If statement. So, my main question is, what's happening?!? Thanks you.

Note: duel_status is a variable under mob.
cur_player is a variable in Dan's TakeTurns library.