Azylaminaz
Vox Populi
- Reaction score
- 91
I suppose, in theory, you could create a JASS parser out of JASS, but it would be a monumental amount of work...For example execute the string "call CreateUnit(Player(0), 'hpea', 0, 0, 0)"
Create a function for every possible string to save the value to that string, and execute them using [ljass]ExecuteFunc(chat string)[/ljass]...but beware, it will crash if you mistype... :thdown:or perhaps substitution of a variable:
JASS:set <my string> = 12
set codechunk[66] = Condition(function ABC)
set codehandler[66] = CreateTrigger()
call TriggerAddCondition(codehandler[66],codechunk[66])
+
call EvaluateTrigger(codehandler[66])
Nope. It's entirely possible to build an interpreter in vJass, but it's so hilariously stupid that even when I built half of one just for kicks I never bothered finishing it.Is it possible to execute a string as if it were just another line of code?