Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Sorry,come from Asia ,bad English
I have a SAVE & LOAD JASS&YDWE GUI code.
I know a little bit about how it works and use it in my ORPG map.
But now I have a problem that the code cannot be used if it exceeds 256 characters.
I would like to ask if there are any JASS experts who can give me some...
I'm trying to make a dummy unit (to make it use thunder clap) when dash skill is finished.
So i announced local unit u in the timer-looping function, but it is only used when the loop is finished. (set u = CreateUnit~)
In this case, should I put "set u = null" inside the [if then] before...
I'm working on a project to enhance the gameplay experience. My goal is to create an MMR (Matchmaking Rating) system that updates the MMR after each match and loads it when starting a new game. I want this system to be dynamic and efficient, similar to the one used in Direct Strike OZE.
Here...
Hi,
I've been playing with JASS scripts and triggers to achieve that model Onyxia spawn (create unit), uses animation 23 (walk alternate) to a region and then play animation 8 (cinematic land) after which she is deleted.
I got lost. From errors with declaration, to animation not fully...
I've run into some problems with regions and hashtables...
What I'm trying to achieve:
The map I'm creating has 4 regions per player. These are manually created via the World Editor and named "Player0n, player0s, player0e, player0w" and so on.
To prevent all the manual labour I want to access...
Hi, I'm not new to Hive Workshop or WC3Campaigns and it's been wonderful resources for me well over 15 years before Firelord was a tavern hero. I don't believe I've posted here before in all that time, so forgive my community's naiveté and etiquette. I own Reforged, but I still don't like it...
Hello, I have a problem with my super nova ability, its supposed to fall towards the ground and then explode and deal damage overtime. But there is a problem if another spell is cast during its landing the supernova ability disappears. Another problem is if the supernova has already landed, and...
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!
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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] = (...
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...
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...
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...
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...
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...
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...
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"...
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"...
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...
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...
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...
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...
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...
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...
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?
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...
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...
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...
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...
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...
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...
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:
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...
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)...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.