jass

  1. prizraknadache

    Lighting Effects Does not appear corretly at Fog of War!

    Hello. I want to make my lighting effects visible on map even in the fog of war. I've found fucntion: set bj_lastCreatedLightning = AddLightningEx("CLPB", false, 0, 0, 800, 0, 0, 800) It workes, however, not how i am expecting. Maybe someone know how to make lightings effect visible on the fog...
  2. Swatosj

    Weird AddUnitToStockBJ function behaviour

    Hi ! I'm currently trying to implement a dynamic random unit sell system and I've ran into a strange problem using the native function which adds unit to a shop (AddUnitToStockBJ). Problem Sometimes the function is adding the correct amount of unit slots to the shop and sometimes it just...
  3. NightKnight

    Need experienced GUI/JASS coders and artists for a special Gladiators map

    I'm working on a special Gladiators map called Final Gladiators X. Gladiator maps consist of players who play as gladiators and a director, who controls the mobs and bosses. Each gladiator chooses a hero, buys items and kill mobs which are sent by directors for EXP. The purpose of this genre is...
  4. Dunkeulbock

    [Solved] Purely cosmetic wood gathering spell

    Hello folks ! I want to create a spell very similar to the vanilla ability Gather which allows, as everyone knows, a peasant to gather wood (and gold but it's not important there). But I want this spell to be purely cosmetic. I want my peasants to go to the nearest tree, to hit it with their...
  5. Wreeq

    What program does ppl use to make their jass look like this

    ^title, Mine is capture.PNG.
  6. BradPittlord

    syntax error

    When you save your map and it compiles your script if it gives a syntax error it tells you what it is but what line it's on and the text box of that line is never actually where the syntax error is. Is there a way to find where it is cause VS isn't catching any errors edit: For some reason if I...
  7. IgneousRed

    GUI to Jass converter?

    A few years back I remember having an option in trigger editor(probably not original) to convert the GUI to Jass or vJass(not sure). I can no longer find such convertor... Does anyone know of any way to do such a thing?
  8. Jacobjohn1

    Need Some Jass Help--Expected "Returns"

    So I'm trying to create an area of effect polymorph that is MUI. So I put together this script. But I'm having issues. MassSheepify Copy Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Mass Sheepify Actions Custom...
  9. BradPittlord

    Couple Questions

    1. For bribes damage engine, it's faster if you combine all your triggers into one with the GDD_Damage_event. Does the same concept apply to other triggers? Say combining all your, "a unit is sold" or "periodic Event .03 sec" along with the many other events to reduce lag? 2...
  10. Invisible Pink Unicorn

    [Solved] Issuing an order with no target in jass

    Hello I am currently making a campaign and want to make a unit that has an un-auto-castable Parasite. I wanted to make it impossible to auto-cast the spell with this simple trigger. Events Unit - A unit Is issued an order with no target Conditions (Issued order) Equal...
  11. Drulia

    cJass2Lua - Powerfull cJass converter

    Warcraft III Reforged brought us lua scripting, but still a lot of map makers for WC3 are using cJass. Just because C-style syntax rules. Unfortunately cJass extension is unsupported for Reforged and who knows how it will be. Lua is more efficient, useful and simple for game development. But a...
  12. Peach Schnapps

    [General] Help with more specific Terrain manipulation through JASS/Triggers

    Would it be possible to be more specific in how I want to manipulate terrain than with just regions? I'm really just concerned with changing out tiles, I imagine through JASS this is possible? o_O EDIT: Idk if I'm asking my question specifically enough, say for instance I want the grass...
  13. Avatars Lord

    [General] Environment - Change Terrain Type needs space to work?

    Hello, This function was not working properly and I didn't know why: After doing some tests I have found that it needs a space (or you need to have that terrain type in your tileset already) in your Terrain Tileset in order to work and because I have 16 terrain types in my tileset right now...
  14. Matthew's_warcraft_book

    AND/OR in conditions?

    Hey all, Im just learning jass and am struggling to make a loop work. Im wondering if there can be 2 conditions for exitwhen? using AND, or OR. Example: Function Fxn takes nothing returns nothing local integer a = 1 local integer b = 5 loop exitwhen a == 1 AND b == 1 set b =...
  15. blink

    Just Another Missile System WIP [vJass]

    So I am currently created a missile system which is supposed to help me create missiles for various purposes. The system runs specified trigger on "impact" making it usable for all kind of stuff. For example, the trigger makes the caster teleport on impact location, while having dmg at the same...
  16. Ricola3D

    Main indexers: a snippet for basic cross-compatibility ?

    Hello, I am trying to make a Armor system with a unit indexer as requirement. I need to store the "code armor" value of units whose armor is modified by BlzSetUnitArmor native. Then I use it as input in other pieces of code. I can't use hashtable no ? Because if the handle ID of a removed unit...
  17. AtheosTG

    Does jasshelper now ship with standard warcraft 3?

    I can't seem to be able to remove Jasshelper. I want to use lua and i think JH is giving me trouble. However simply deleting the folder only results in it re-downloading. Anything i should know?
  18. Ricola3D

    JASS - Is there a way to display the call stack ?

    Hello, Is there a way to display the call stack from JASS ? To know what functions/triggers are at the origin of the code execution ? It would be very usefull for desync debugging, if I could print the call stack in my hook functions :)
  19. Henry_AC

    Help import JASS skill

    Hello everyone, someone who can help me on how to import this skill to my map is that it is very different from the others, I think it is because of this JASS or GUII Divine Halo v2.1
  20. lolreported

    [vJASS] Issue with nested loops, possible bug

    I'm currently having a massive issue with a nested loop, see code (some irrelevant code removed): library JustAnotherLibrary initializer Init globals //... private constant integer PLAYER_MAX_CELLS_ROW = 3 // Max cells up/down private constant integer...
  21. Ricola3D

    Known causes of desync

    Introduction Players should be able to differentiate a crash, a player leaving and a player being desynchronized. Desync is the fact that one or more player gets disconnected from a online multiplayer game. It's caused by differences in the game state between the game clients. Below I tried...
  22. Yui Moe

    [Leak] Lua Scripting & Memory Leak

    Hello guys, Since now editor officially support Lua scripting and we all know Lua is a quite common and widely used language, I wonder will it avoid all or part of memory leak problems by using Lua instead of JASS? Actually the biggest blocker prevent me to create custom games is it forced me...
  23. Ricola3D

    Hashtables - GUI vs JASS > parameters reversed ?

    Hello, Sorry if you find it a dummy question: I am currently using hashtable after having read many tutorials. And is it me or in Save/Remove calls, the parameters order is reversed between GUI and JASS ? In particular parent & child keys ? Exemple: From many tutorials I read (unfortunately...
  24. Aleksandr

    [General] Wold Editor team development experience

    Hello everyone. Recently I wanted to do with something using World Editor. Also there were guys who wanted to help me in parallel. But only one person can do some work on the map at the some moment. => we have couple of huge disadvantages: It's not convinient to exchange the map. We need to...
  25. ies

    Need help with trigger in jass

    Hey, I wanted to make emoji system triggered by keypress, map is arena so bound to hero. Here's what I have. /*globals used: emojicharge integer array (index is playerID, supposed to be cooldown, when value isn't 0, player cannot express his awe); Hero unit array (assigned unit for each player...
  26. Duvo

    [JASS] "Added Custom User Interface functions to allow map makers to add, remove, and adjust UI frames"

    (sorry, I posted this to the wrong section earlier) This line from the ptr patch notes particularly took my attention. we've been given the following natives to play with in JASS, but how do we even use them?; constant originframetype ORIGIN_FRAME_GAME_UI =...
  27. Duvo

    "Added Custom User Interface functions to allow map makers to add, remove, and adjust UI frames"

    This line from the ptr patch notes particularly took my attention. we've been given the following natives to play with in JASS, but how do we even use them?; constant originframetype ORIGIN_FRAME_GAME_UI = ConvertOriginFrameType(0) constant originframetype...
  28. loktar

    [Solved] BlzUnitHideAbility sometimes not working

    There's something weird (not) happening. BlzUnitHideAbility and BlzUnitDisableAbility are not working in certain cases. The calls to SetupCtrls in the initializer work as expected. When ButtonControlCndAcn is triggered (SPELL_CAST event) to "OPEN", CTRL_SFX and CTRL_CAM are not hidden as they...
  29. D

    [JASS] DoTransmissionBasicsXYBJ, SetCinematicScene

    So, what i need to do: 1) Play specific unit portrait; 2) Play specific sound; 3) Ping on minimap where specific unit is located; 4) There must be no text on screen when i do this. Before current patch of war3, i used DoTransmissionBasicsXYBJ (or just default gui), and it worked. Now, it parses...
  30. InSaNe_97

    [General] JASS, I need help for simple AI.

    Greetings. I am learning JASS so I need a bit of help. I am asking public to make Me a simple AI in JASS. That way I will be able to much easier understand things and finish My map. AI: 1. B and A in 180 r. while B is running "2" |then| Order B to attack A for 2s *. 2. B and C in 140 r. |then|...
  31. loktar

    [Solved] Weird R2I() behaviour

    Could someone explain this to me? set udg_PatrolSystemState = 1.1 call BJDebugMsg(R2S(udg_PatrolSystemState)) // 1.100 set udg_PatrolSystemState = udg_PatrolSystemState-0.1 call BJDebugMsg(R2S(udg_PatrolSystemState*10)) // 10.000 call...
  32. blink

    [JASS] Can this code be further optimized?

    Warcraft 3 modding community led me to take Computer Science course and I am really thankful for it. I was like 11 or 12 when I created my first spell and posted it on here (dont look it up, its really bad) and now I'm back for reforged. I'm using Jass now and created a physics and missile...
  33. Bombriick

    [JASS] Help with AOE Spell Trigger

    I'm working on a spell based on flame strike , but it doesn't work for some reason , as you can tell the spell is supposed to do damage to units in target area ONCE, I chose flame strike as a base because of the spell aoe effect since I tried it with channel and it didn't work. Please Help...
  34. Bombriick

    [JASS] code after endloop not functioning

    The following code is not working for some reason after endloop, what's is wrong here? set udg_counterab = 0 call BJDebugMsg("test") call DestroyGroup(ug) function aa takes nothing returns boolean if (IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == TRUE) then...
  35. rufreakde

    [General] handle type is pointerlike?

    Hey Guys, I found out that the "handle" type is the parent type of the variables you define in the Trigger Editor GUI. JASS Manual: Types It is also some kind of "pointer". So I thought nice gonna use it like in C++ then: Defined a variable with type ability (derived from: <-agent<-handle)...
  36. Bombriick

    [Trigger] Spell Target Trigger not working

    Hey , I'm new to jass and still learning , I could make some triggers but this one is not working for me, We have two groups of units , each group belongs to an player enemy to the other , the goal is that a random dragonhawk unit in the player (0) group will leash a random unit from the other...
  37. injuly

    [JASS] Is learning JASS still worthwhile ?

    Sorry if im asking at the wrong place. I know WC3 had a thriving community a few years back , are there any useful guides and resources to learn and start a project and hope to have people who play/test it? I do know basic JAVA so maybe the entry barrier isn't that high (I hope). But I'm not...
  38. _lycan

    [Trigger] Trigger to remove from the game a hero who dies

    The trick part is that some heroes have abilities based on tauren chieftain's revive, so I can't just remove a hero once he dies, he needs to be "revivable" (meaning that when he died he wasn't on CD) I tried doing this But it doesn't work, the hero is still revivable. Anyone knows how to...
  39. Overfrost

    [GvJ] GUIvJASS Basics

    GUIvJASS Basics ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ PrefaceGUI is nice to see and manage, but it's slower than JASS as everyone already knows. But having every single trigger written in JASS can cause creeping headaches for some. So, why not use them together? GUI's LimitsWe know that JASS can do all...
  40. DarkIllidan

    Dday Judgment 19.9b won't work.

    Hello i have been reading about why older maps dont work on newest patches and it seems there are few bugs that can cause this and one of them is the return BUG that i cant seem to figure out. I'm not that much in Jass im just trying to make this old map playable in that state that it is. Make...
  41. SoooK

    Check for players screen resolution/aspect ratio

    Is it possible to get the screen resolution or aspect ratio of a player via GUI or jass? I want to assign different cameras to players, based on their screen resolution/aspect ratio. Some video settings cut off vital parts of the screen, if all player are using the same camera. Or is there...
  42. _lycan

    [General] Trigger to revive only trees on the map (globally)

    I need a very specific trigger, I found examples in both GUI and Jass which revives trees in the map every X seconds (however most use wait and I believe that wait isn't recommended, right?) Alright so: The trigger consists on reviving every single tree on the map that has been destroyed every...
  43. Frotty

    Best of the Wurst 9

    In the last couple of months, we have reached over 100 stars on GitHub, updated our homepage, and as usual caught up with support for Warcraft 3 patches 1.30.2 and beyond. Tool updates The wurst family of tools now supports the latest battle.net stable patch (1.30.2). The wurst language was...
  44. Dickie

    World Editor Trigger editor IDE

    Im a c++ developer and am trying to help a friend work on a wc3 custom map. I am new to jass but I saw that the 1.30.2 update made vjass and jasshelper included in the world editor. from what I have read as of the 1.30.2 update TESH and other helpers no longer work on the world editor. My...
  45. Poruft

    Desync Safety of BlzSetAbility..() functions

    Does anyone know if things like if (GetLocalPlayer() == p) BlzSetAbilityIcon(abilId,icon) BlzSetAbilityExtendedTooltip(abilId, tooltipExtended, 1) BlzSetAbilityTooltip(abilId, tooltip, 1) will cause desyncs? I'm interested in changing ability icons/text for different players, but I...
  46. redscores

    [Wurst] Problem with getting WurstScript to run

    Hello dear Hiveworkshop Programmers, I am currently getting into Mapmaking again and I am confronting myself with WurstScript. I installed JRE. Then installed VS Code and installed the WurstScript Plugin. Then I proceeded to start the "WurstInstaller" and set the paths correctly to my...
  47. Wayshan

    [AI] Unit names in Jass AI

    Hey, so I am trying to get my campaign AI working via JASS and I am stuck at one thing - I understand the code and what it does, but I don't know how to get the unit's names. F.e. call SetBuildUnit ( 1, DRUID_CLAW ) It is DRUID_CLAW instead of DRUID_OF_THE_CLAW obviously and I figured out...
  48. ShaDowPoWeR

    [JASS] Fading Floating texts

    I made a shield skill that blocks x damage and shows with a floating text the % of the shield above the unit then disappears in the span of 2 seconds (until the unit is attacked or the shield skill is casted again), it works well for the most part, the problem is that I don't know how to tell...
  49. Brismo

    GUI rework to JASS

    Please close this thread
  50. Amigoltu

    [JASS] Cinematic BJ function

    Greetings. Well, I want to make a cinematic for my map, and I came across a function CinematicModeExBJ and looking at it, I don't even really know how to optimize it. It's a surprisingly good BJ function, as far as I have seen them: function CinematicModeExBJ takes boolean cineMode, force...
Top