by Major Cooke » Sun Jan 11, 2015 11:21 am
Also, fellas, it appears for a single action it doesn't need braces.
Code: Select all
// If it's not a '{', then it should be a single action.
// Otherwise, it's a sequence of actions.
if (!sc.Compare("{"))
{
tcall->Code = ParseAction(sc, state, statestring, bag);
return;
}
So you could do this:
Code: Select all
POSS G 3
{
if (health > 1)
A_Jump(256,"Alive") //Or perhaps Goto Alive could work?
else
A_Jump(256,"Dead") //Or perhaps Goto Dead could work?
}
Except I dont know if gotos are allowed like that. Randi, does that seem like something which would work?
Oh man I'm excited to see this put into the main branch.

Also, fellas, it appears for a single action it doesn't need braces.
[code] // If it's not a '{', then it should be a single action.
// Otherwise, it's a sequence of actions.
if (!sc.Compare("{"))
{
tcall->Code = ParseAction(sc, state, statestring, bag);
return;
}
[/code]
So you could do this:
[code]POSS G 3
{
if (health > 1)
A_Jump(256,"Alive") //Or perhaps Goto Alive could work?
else
A_Jump(256,"Dead") //Or perhaps Goto Dead could work?
}[/code]
Except I dont know if gotos are allowed like that. Randi, does that seem like something which would work?
Oh man I'm excited to see this put into the main branch. :D