• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

jass

  1. darkravenbest

    BlzS2FourCC undeclared

    Hello! I have problem when i use BlzS2FourCC, even if it used via GUI function, editor reference this line with error: "Undeclared function BlzS2FourCC". How to fix this problem? Im currently using pre reforged 1.31 version. Thank you!
  2. VaaL

    Chat not displaying player messages

    So, using this code called on map initialization: function init takes nothing returns nothing local framehandle fhandle local framehandle fhandle2 local integer i = 0 local GameUI = BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0) call BlzEnableUIAutoPosition(false) call...
  3. VaaL

    Multiboard frame reseting position after Alt+Tab

    I have an issue concerning multiboards. I create a mb after the game started, and change its position. Yet after I switch to another tab, then switch back to WC3 Reforged, its position resets to default. Here's the trigger: Is there any way to fix this issue?
  4. FlameofChange

    [Snippet] Set unit range partial fix

    Hello there, the native BlzSetUnitWeaponRealFieldBJ is bugged for setting the range (UNIT_WEAPON_RF_ATTACK_RANGE). ☼ Doesn't work for the weapon index 2 ☼ For weapon index 1, will add the new range minus the difference between the base value of weapon 1 and 2 Also some getter/setter are based...
  5. sur5al

    [Trigger] Need help to make trigger

    So... i get many search hits on the net for "convert jass to lua", but i need the opposite thing! Which i cant figure out. I am super low level in jass. Use it only when need things outside gui possibilities (local variable, damage detection system, etc.). All my jass triggers in my maps are...
  6. B22

    [Misc] Tips & Tricks - Using Abilities as Data Reference for Triggering

    Tips & Tricks Using Abilities as Data Reference for Triggering For the remainder of this thread, I'm going to call this method PRAT (Procedural Referencing with Ability object for Triggering) to make it easier. I recently came up with this method and could not find any mention of something...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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] = (...
  18. 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...
  19. 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...
  20. 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...
  21. 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...
  22. 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...
  23. 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...
  24. 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"...
  25. 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"...
  26. 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...
  27. 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...
  28. 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...
  29. 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...
  30. 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...
  31. 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...
  32. 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?
  33. 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...
  34. 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...
  35. 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...
  36. 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...
  37. 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...
  38. 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...
  39. 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:
  40. 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...
  41. 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)...
  42. 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...
  43. 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...
  44. 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.
  45. 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...
  46. 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...
  47. 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...
  48. 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...
  49. 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!
  50. 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...
Top