• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

jass

  1. Luashine

    [Mapping] Explaining Warcraft's lockstep architecture for mapping (avoid desyncs)

    I haven't seen Warcraft 3's concepts explained anywhere in a condensed manner, let me try it here. Who is this tutorial for? The beggin beginners in War3 modding, though the explanation will probably require some prior programming knowledge or a little experience with World Editor. Lockstep...
  2. LeP

    j2j: jass <-> json converter

    A little tool for people who don't want to write a jass parser themselves. This tool can take a jass script as input and return a json representation of the jass ast or take a jass ast encoded as json and turn it into valid jass again. I don't know if this is of any value but i wanted to write...
  3. Bloodheaven_

    [Lua] Reforged UI Designer doesn't work In-Game

    Hi there, I created my UI in the Reforged UI Designer and exported the UI to Lua. Then I pasted it in the Map Custom Script Code only to find out it doesn't show up, the JASS version of that UI doesnt have that Problem at all, do I need to call the UI somehow? Here is the snippet: The JASS...
  4. Bloodheaven_

    [Lua] How to convert GetUnitGoldCost to LUA?

    Hi there, I'm trying to convert this native to a LUA Function but I'm failing miserably. Jass Function converted to LUA Function //Jass native GetUnitGoldCost takes integer unitid returns integer //-->LUA<-- function GetUnitGoldCost(unitid) end Function Call Custom script...
  5. Skulgrimm

    % in string in Custom Script

    After some digging it is clear that Custom Script uses a different method to translate the code from the Editor to war3map.j than Triggers do. So in a Custom Script a single "%" gives "" except a Conversion Specifier(printf reference) followes even with spaces, same function in a Trigger no...
  6. TeKey0815

    [JASS] deal missile dmg while walking

    Hello everyone :), This is my very first post. Please be nice to me xD. I am semi-experienced in programming with JASS. I learn most of it here from you :). I'm currently working on a project. I want to build the mobile game Brotato in Warcraft with multiplayer functions. But now I'm failing...
  7. Ricola3D

    [Reforged] Nested "Value of Real Variable" events is bugged

    Hello, Some well-known systems for your custom maps use "Value of Real Variable" events as API you can use to get notified of some game actions. For example a well known is GUI Unit Event by @Bribe : For example, the system executes the code below: Set VariableSet Event1 = 0.00 Set...
  8. N4R3N

    Define/Change unit properties via vJass during initialization

    Hello I did TD things through GUI. I´m trying to learn little bit of Jass coding because of flexibility and clarity. I read tutorials and did researches but i can´t figure out some stuff. Now i transfer some triggers to Jass in current state of map because its "hard" to maintenance and do...
  9. Rahko

    [Solved] Alternative to multidimensional arrays

    Hey! It's been a while since I coded for Warcraft III (or in general, for that matter), thus my brains are a bit scrambled right now. I am trying to make a simple inventory system that changes all the items for multiple pages of the inventory. I got it working, actually, as I just brute forced...
  10. HerlySQR

    Lua W3 handles instantiation

    Hello, while I wanted to translate the Zwiebelchen's Threat System to Lua, during the Debug Board it checkes the handles that are existing in the map and to asign them an integer does an operation that involves creating 50 locations, get their handle ids and finally removing all of them every...
  11. Benpai

    [Solved] Global variables in Jass

    I have the Spell from Carnerox and want to add global variables, but I don't have that much experience with Jass. I want to write the healed value in global variables but I have no idea how. Can anyone help me? It is about the following variables: set udg_MB_Healed[0] = (...
  12. Tristronic

    [JASS] [Solved] Local trigger

    I recently began learning JASS via converting GUI and reading tutorials and I have a question about local triggers I think it's easiest if I post my example: SG_Init makes a local trigger and after the other actions it queues SG_InitPlayer SG_InitPlayer loops to make a 5184 images per player...
  13. Izzetin

    [Trigger] Unit Indexer merge (JASS)

    Hello, Iam currently trying to implement 2 awesome Systems from Hive in my Map but i have a problem with the Indexer. I know there can only be ONE Unit Indexer but i am not able to deleted one and merge both Systems. Maybe someone can help me get the ''Is Unit Moving'' (Bribe) working in the...
  14. kate

    So I asked ChatGPT to make a JASS code for me...

    I hope this is the right forum to post but I was curious as to how accurate this is, given it was generated by AI I gave ChatGPT the prompt: "Can you write me a code in warcraft 3 jass for an ability that allows the caster to throw a grenade then teleport to where it lands, dealing damage in an...
  15. Hannesburgo

    [Solved] Check if an ability kills an unit and do certain effect

    Hello there! I am creating a new ability to my hero called Plunder. The skill itself is a point-and-click damaging skill that, if kills an unit, gives the player gold. The problem is: Whenever I try a new solution, two of the scenarios happen: 1) The player gains gold even if it doesnt kill...
  16. Jocker

    [General] JASS being "Clean"

    The title may be a bit off since I don't really know how to explain it in words so here is a picture. This is the base World Editor for WC3 Version 1.33. And this is the JassNewGen World Editor for version 1.26a. Is it possible to set up the base world editor of 1.33 to have custom colors...
  17. Luashine

    How to contribute to jassdoc for dummies

    What is jassdoc? Jassdoc (lep's explanation, source & viewer; moyack's) is the community's collaborative attempt to do something a multi-billion (or smol million?) corporation couldn't afford a budget for: documentation for the part of the game, the part that made it live on for almost a decade...
  18. GraduallyIBeganToHateThem

    [Crash] Where did I do wrong in my damage detection jass code that is causing the game to crash in about 15 minutes?

    I cannot recreate the crash, but at a certain point after 15 minutes it will crash. The game runs okay with this code turned off. There was no lag at all before it crashes the game, so it's very strange. The crash message says the crash is related to "instance.cpp"...
  19. xorkatoss

    [JASS] Hide Command Buttons 0-4

    Alright everybody so latest patch changed something in the UI and it caused my previously hidden command buttons to show again: // Hide Command Buttons call BlzFrameSetSize(BlzGetFrameByName("CommandButton_0", 0), 0.0, 0.0) call BlzFrameSetSize(BlzGetFrameByName("CommandButton_1"...
  20. Lamer

    [Script] Hero/unit info panel

    Hello everyone! I'm a GUI custom map maker and to make Resource Bars I need to learn Jass or Lua. I just started reading tutorials but this upgrade I need on my map asap :thumbs_up: Let me know if it's even possible do this way. So the example pannel gonna look like this: From upper left: 1st...
  21. Astronoot

    [JASS] [Solved] Help on detecting leaks

    Hi, I'm new and it's my first time posting a thread here :] (Not sure if this is right forum to ask.) So, um I started migrating from GUI to JASS recently. I tried browsing tutorials here and on Helper.net on making this spell. It's an MUI ability that uses hashtables as data bridge and timers...
  22. PiesOfNorth

    [JASS] [Zerg Campaign] - Hatchery/Larva crash on certain terrain?

    Hi. I've noticed a reproducible crash in my Zerg Campaign. I've been able to get it to occur consistently in Chapter Four, if the player expands to the center of the map, where Maiev starts. After fiddling with it, the source seems to be my modified Blizzard.j, in the function called...
  23. Walldasher ee

    How to find IDs for imported files (i.e. Icons or models)

    Im quite lost on this one, been looking for it for about 4 days now every now and then. I am certain there is a way for it as I found others doing it too but I cant find out how theyve done it. I am using WEX Editor for patch 1.28b I know view raw-data exist (but thats not available for the...
  24. Lordliw

    JassCraft

    Hello, one year ago I started using JassCraft to make my own AI scripts. But I've encountered a few problems that were easily fixed. During that time I learned (heard) that JassCraft has two types of programming. The easy one and the hard one. Now, I've learned the easy side of JassCraft, but...
  25. Varcklen

    TriggerRegisterVariableEvent issues between each other

    I have 3 triggers that use 3 TriggerRegisterVariableEvent. In the first one, I set the Event_One variable, which should activate the TriggerRegisterVariableEvent in the second and third trigger. In the second trigger, when the TriggerRegisterVariableEvent from Event_One is activated, Event_Two...
  26. TwoLeft

    [JASS] Which is faster?

    I'm currently writing a dummy system and I want it to have a sanity check, which of the options is faster and what happens with LoadBoolean() if the hashtable is empty at that spot? Edit: How would HaveSavedBoolean() compare to those two?
  27. Luashine

    [JASS] Performance analysis of 'leaking' Jass strings & Lua

    Common knowledge has it Jass strings leak!!!1 and are bad!!!1 Let's benchmark by generating A TON of strings. Test code & setup The code below takes your chat message, like "-10" and generates ONE 10-char long string (1=10/10). That's equivalent to generating 10 distinct unique strings in Jass...
  28. AutisticTenacity

    Fixed Velocity Spiral

    There are many spells which move in a spiral pattern, but they pretty much all use a fixed angular velocity as they spiral out. This means the movement itself increases in speed as it gets further and further away from the center. I've written a function that allows a spiral path to be traced...
  29. Luashine

    Blizzard's hidden jass2lua transpiler

    A few threads here have made me curious: "...then I found the automatic JASS to LUA converter." - Macadamia found by mistake that WorldEdit can transpile all Jass code to Lua. Nobody knows how exactly "Lua, embedded jass" - Tasyen found out, that Lua maps can have Jass code, automatically...
  30. SpasMaster

    Looking for AI designer: Castle Fight

    Greetings. By this point, I feel like a lot of people have at the very least heard of Castle FIght by name. It was a map created by geX, which stopped its development ~2010 and gex was not to be seen again. Many people since then have created their own versions of the project, yet what has...
  31. Veronnis

    (Resolved) Get String for an Icon Path (Was this feature removed??)

    Hello and thank you for your time, I've been using a string variable to: [Set Stringvariable = Icon Path of Last Created Item] But it seems like Blizzard has removed the ability to reference an Icon Path for items as I can no longer assign that variable to an iconpath. Does anyone know if...
  32. Ruvven

    [Trigger] UnitMakeAbilityPermanent

    Hello again I have a map where spells are not learned normally and thus picked up by spell books along the way, also i have morphing possibilities and many of you probably know that the two of those does not go well together. I have seen alot of people mention the sentence i used as a...
  33. Lordliw

    AI expanding on a different location

    Hello, I am curious as to how I can make my AI make/expand their base at a different gold mine, just like in blizzard maps, the AI kills the creeps guarding the mine or another player using the mine, then they go and build a small (outpost?) base there. Thanks in forward to those that anwer. :grin:
  34. xorkatoss

    [JASS] Add Buff Function

    WARNING! Beginner JASSer alert! So with that out of the way, I'm trying to make a bunch of jass functions to use in conjunction with GUI and "AddBuff" is one of them. So my method works BUT I wanted to get some opinions from more advanced users IF there's a faster/better way to execute...
  35. Lordliw

    Need help with JASS AI - Workers not harvesting lumber

    Hello, I am basically new to JASS scripting. I have recently made a very standard AI, and everything seems to be going great so far! But the problem with my AI is that when the workers are trained they harvest gold, not lumber as I want them to (not the starting workers, the newly trained ones)...
  36. 0x4b

    [Solved] Issues using Lua extension with ObjectMerger

    Hello, I am following the Lua Object Generation guide posted by PurgeandFire and trying to get it working but triggers in Lua aren't working at all for some reason. I am able to use the normal ObjectMerger syntax just fine to create objects, but the Lua extension isn't working. I'm using this...
  37. Xain

    [General] Using Hashtables for Trigger Names

    Welp, I'm stumped, this is the first time I've tried using a hashtable but it seemed fairly straight forward. What I want to do is create a hashtable that stores the names of triggers so that I can assign said names to a trigger variable for use in registering a custom event to a trigger. Add...
  38. ComeWithMe

    JASS code. Need some help with script.

    Hi there, Is there anyone who is good at JASS code? I need help with that, I would like to cut some working JASS code from one map, but still have no success. This is not about memory hack, just about basic knowledges of JASS. Please ping me in pm. Thanks.
  39. Hoyhenpallo

    New scripting and map making features after 1.26

    Hello! Background: I've had a long break from warcraft 3 (nearly 10 years). Lately I've become interested in map making again. My goal is not to make public maps, but I enjoy making triggered spells, heroes and races for personal enjoyment. I'm wondering what new features and other changes...
  40. katya18

    Scripting strategy with timers

    Hello guys. I continue working on my AI strategy on the 2D platformer map Here is my first attempt that makes computer bot to complete the first level. The bot strategy looks pretty simple - first, move right, after some time make a jump(while still holding "right arrow pressed"), then after...
  41. ComeWithMe

    Warcraft 1.27b + Dota 6.83d AntiCheat Detector

    Greetings to all. Perhaps I created a topic in the wrong section, if anything, I apologize. I am looking for someone who could do some work in JASS language (paid). Warcraft 3 is a very old game and many people know that there is a separate Dota Allstars map (from IceFrog), the latest version...
  42. katya18

    Starting with JASS

    Hello guys. At the moment Im learning map_making/Jass coding in such way: I have a map, extracted the resources from it using MPQ and got the war3map.j that contains jass code for the map. Please dont blame me for that, Im not asking here for deprotecting or any other stuff, I wont use it for...
  43. Cheshire

    [General] is JESP still a thing?

    hey there, I'm just getting into jass, and wanted to know if there is still a consensus around the JESP template for jass things, or if that is outdated and no longer relevant. thanks!
  44. ShadowSong3

    Morphing Units

    Hello there, I’m trying to create a system in my map where a unit can morph into various other units, which can then morph back into the initial unit. But have the resources spent to morph into the unit initially be refunded in full when they do. so for instance unit 1 morphs into unit 2 for...
  45. HerlySQR

    Do you have ideas to improve this system? 2

    Hello, I'm have another system, that is a Jump System based on the Paladon's Jump System, but this includes horizontal curvature, I know that there can be better systems, but I still wanna share this I hear what things I can improve. //Jump System based on the Paladon's Jump System //If you use...
  46. Stormgoddd

    Directions (Angles,Cos,Sin...) How does it work in wc3?

    I'll be honest, I'm not a genius when it comes to math. Currently I'm really struggling with angles and such in vJass. I don't know how to calculate the locations for my spell. For example, I want to make a fireball, that spawns at the casters position and moves to the target location and deals...
  47. ComeWithMe

    Finding address offsets for Warcraft 3 1.27b

    Hi there, My idea is just to modify old Dota Allstars 6.83d map and inject a kind of anti map hack system inside it. There is a lot of source code of map hacks for 1.26 version of the game, where we can see what offsets are changed and that's why this hack works. But there are no free...
  48. Death Adder

    [Solved] syntax error, unexpected: "takes"

    For some reason I keep getting an error with this function below, specifically Syntax Error, unexpected: "takes" on this line function Demonic_Flames_Targets_Filter takes nothing returns boolean function Demonic_Flames_Targets_Filter takes nothing returns boolean local unit u =...
  49. Death Adder

    [Solved] syntax highlighting and function list for 1.30 or 1.31

    Is there anything like JNGP for warcraft 3 patch 1.30+ ? (I don't use reforged but if there's one for that then feel free to mention it as well) When mapmaking I still use 1.27 just for JNGP, but I want to be able to use the new natives...
  50. Cheshire

    [JASS] jass trigger not working

    hey, this is my first trigger in jass. it doesn't have any traceback malfunctions, but for some reason it just does absolutely nothing in game. what did I do wrong here? function taken_conditions takes nothing returns boolean if (GetManipulatedItem() == udg_Bait ) then call...
Top