Giter Site home page Giter Site logo

where is native list? about war3_lua HOT 6 CLOSED

ev3nt avatar ev3nt commented on June 28, 2024
where is native list?

from war3_lua.

Comments (6)

Ev3nt avatar Ev3nt commented on June 28, 2024

You don't need this. War3 lua is parsing all natives of warcraft. Just use them, how you use another functions. If you need the list, open default common.j or type this script, to see all available functions.

for k, v in pairs(_G) do
    print(k.." - "..tostring(v))
end

from war3_lua.

ximperial avatar ximperial commented on June 28, 2024

You don't need this. War3 lua is parsing all natives of warcraft. Just use them, how you use another functions. If you need the list, open default common.j or type this script, to see all available functions.

for k, v in pairs(_G) do
    print(k.." - "..tostring(v))
end

i see some native on lua.w3m from 1.1.4 (ashenvale) that is not on common.j 1.26, and how to properly use that script? ingame that script just print few function

from war3_lua.

Ev3nt avatar Ev3nt commented on June 28, 2024

Create war3map.lua and type in it (replace print to printc, because it let you displaying text in console). Then just move script inside your map. Attention: start warcraft with parameter "-console".

from war3_lua.

ximperial avatar ximperial commented on June 28, 2024

ok, its working. are this lua script can call jass code. i mean if i using custom function on jass and call it inside lua like memhack thing

from war3_lua.

Ev3nt avatar Ev3nt commented on June 28, 2024

No, not yet. Perhaps I will add this in the near future.

from war3_lua.

Ev3nt avatar Ev3nt commented on June 28, 2024

ok, its working. are this lua script can call jass code. i mean if i using custom function on jass and call it inside lua like memhack thing

Finally, we have added this feature so that you can access your jass variables (read only).
Sample:

TimerStart( bj_volumeGroupsTimer, 5.00, false, function( )
    -- Where bj_volumeGroupsTimer is a jass variable
    print("5 seconds have passed!")
)

from war3_lua.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.