wildefire
Joined: 04 Jun 2008 Posts: 1
|
Posted: Wed Jun 04, 2008 6:39 pm Post subject: Question about alias interpretation/parsing |
|
|
I'm trying to create an alias that will automatically define some actions, which define variables, run a command that these actions operate on, and then parse the result to get some numbers out of this mess.
The problem I'm running into is that all of the tintin special commands in this alias seem to be run ahead anything else, no matter where in the alias they're at.
Example:
#alias {getmax} {#action {You have %%0 exp and are level %%1.} {#var {curexp} {%%0};#var {curlev} {%%1}}; score;#math {maxlev} {$curlev + 3};#unaction {You have %%0 exp and are level %%1.};#unvar {curexp};#unvar {curlev}}
When I run that though, the #actions get defined, and the #math is run ahead of the 'score' command, which is what the action operates on, so I get errors regarding the variables not being set yet.
I glanced at the source code but couldn't determine exactly why it's operating out of order on Tintin specials first. I guess what I'm looking for is some way to force in-order execution of these things. |
|