Lua with jass

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
It is not possible to mix scripting languages. Warcraft III will only have 1 trigger virtual machine active at a time.

There are ways you could try to get the JASS translated into Lua, and then import the translated triggers into the Lua version of the map. I am unsure of the current procedure for this, and I would hope a third party tool is available to do this by now.
 
The toolsection has tools to convert jass into Lua:


Trigger editor can contain jass in a Lua map, the jass is than transpiled into Lua in the resulting map script but remains jass in Trigger Editor. Works better for normal jass than vjass. One uses Lua vm and puts jass code into these instructions:
//! endusercode
<your jasscode>
//! beginusercode

Lua:
-- Lua code

//! endusercode
//jass code
function MyJassFunction takes integer a, integer b returns nothing
 call BJDebugMsg("MyJassFunction: " + I2S(a)+ " " + I2S(b))
endfunction
//! beginusercode

-- Lua code
MyJassFunction(4, 8)
 
Top