JASS: GUI to JASS

M

marcotjuhhhh

Guest
hey, no worries, i dont say you cant use jass, or convert gui to jass, but i use world editor unlimited, which can be used to add your own actions and events ( also with normal world editor ) and from there you can do the same, but anyways, i dont use jass, so i cant tell if its better to use jass or gui.
 

UndeadDragon

Super Moderator
Reaction score
447
I wouldn't use WEU if I was you, it got dis-continued for a reason :p
 
M

marcotjuhhhh

Guest
its better then normal WE, and i never have problems, why shouldnt i use it?
 
Reaction score
333
there is nothing you cant make in gui, trust me, you only need logic thinking, and maybe, costum script in gui.

And Brainfuck is Turing-complete. This is just stupid, sorry. Even to do simple things, like managing periodic actions, GUIers have to use workarounds. GUI code of more than a page length is always kludgey and inelegant.

Anything that can be done in GUI can be done better in Jass. Sometimes the difference is small, but often the difference is very large.

anyways, Gui = jass langauge, but in form of images and shortend text.

No. The GUI is an interface for generating Jass (bad Jass, might I add). Also, "Shortened"? Right..

for gui users: remember that you can convert a text to jass?
thats because its the same.

Sigh.

and for all the jass users: why wont you just use world editor, and then convert scripts to custom text, then you can do the same.

Because Jass is better.
 

Weegee

Go Weegee!
Reaction score
102
Well im only lost becuse i dont get WHICH jass editoir on the hiveworkshop is the one hes refering to...
 

amostad

New Member
Reaction score
3
something for uss stupid

I dont understand a thing isnt there a turtorial who can explain things for uss less smart people

would be awesome to use jass
 

The_Dipl0mat

New Member
Reaction score
0
you seriously rule dude, i only looked at one other jass tutorial, and yours is well, brilliant in comparison, thanks alot,

iv used gui for about a year, and a project of mine is demanding better variable management then what gui can offer.,

much appreciated, a logical tutorial 8/10

ALSO to all those looking for the JASS Editor mentioned, google search it, i dont know why but alot of things have been removed from hive over time that 'TheHelper' tutorials tend to refer too.

Search 'Asger's Place: Jass Editor'
 

krainert

Member
Reaction score
10
Problem compiling the knockback function

Hey,

First of all, nice tutorial - thanks.

I have a problem with the knockback function, though: The udg_cast and udg_targ variables are reported as undeclared. Shouldn't they be built-in?
 

D359

Member
Reaction score
1
I didn't understand much of this guide,the only that I learned is to start and end a function,but I don't know how to make it work,this is my first time using jass.Maybe you guys can help me understand it better,I am working on a dota-type map (the game is a capture the flag type,and has 6 atribute stat bonus customization sistem)and I have some problems with my Beastmaster hero,he has beastmastery,a spell based on the spellbook spell that contains all of his sumons(4 in total)and the spell Axe Mastery,based on methamorphosis,this changes the beastmaster in a ranged version of himself.The problem is that no mater what i write in the custom script text zone,I get errors.I think it's because my code is wrong,or jass dosen't work with 1.24e.

here is the function I tryed after I read all the guides on this site.

function name takes nothing returns nothing
call UnitMakeAbilityPermanent(Beastmaster, true, A02T)
endfunction

Where am I going wrong,please help?
 

Sevion

The DIY Ninja
Reaction score
413
Well what's the error?

JASS:
function name takes nothing returns nothing
    call UnitMakeAbilityPermanent(Beastmaster, true, A02T)
endfunction


Also, the A02T should be [LJASS]'A02T'[/LJASS]

Is Beastmaster a valid unit variable?

Also,the latest version is not 1.24e. It's 1.26<some letter>.

Next time, please use [noparse]
JASS:
[/noparse] tags and indent your code.
 

D359

Member
Reaction score
1
what do you mean if the Beastmaster has a valid unit variable?How do I give the Beastmaster a variable?Do I create him and then give him his own code?Like with the spellbooks?

Well to be honest there 3 or 4 erros,they came one after another
 

Dirac

22710180
Reaction score
147
What hes saying is that the computer can't just tell what is a "Beastmaster" you gotta explain it to it:
JASS:
local unit Beastmaster=CreateUnit(rawcode,player,x,y,0.)

that way the editor assigns your unit to a variable
JASS:
set Beastmaster=GetTriggerUnit()

also works

In case you don't know variables are storage tools that can keep any kind of data you need in your coding
 

D359

Member
Reaction score
1
ok,and can I asign a rawcode with jass when I create the unit or do I have to find the beastmasters raw code?
 

D359

Member
Reaction score
1
I'm sorry for the double post but I couldn't find the delete button for my previous post,I loaded the code you sugest,I also added a global code on the same triger,I this how it's supose a jass triger to look?

JASS:


function Trig_Beastmastery_Actions takes nothing returns nothing
    call UnitMakeAbilityPermanent(Beastmaster, true, &#039;A02T&#039;
endfunction

//===========================================================================
function InitTrig_Beastmastery takes nothing returns nothing
    set gg_trg_Beastmastery = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Beastmastery, function Trig_Beastmastery_Actions )
endfunction

//===========================================================================
globals
private integer BEASTMASTER = &#039;Nbst&#039;
endglobals


This is the error I got:"The instruction at 0x77c46fa3 reference memory at 0xffffffff couldn't be read."
 

tooltiperror

Super Moderator
Reaction score
231
There is no delete button. Rather, use the Edit Post button. I've merged your posts for you.

One problem may be that you are not using JASS NewGen Pack, but you are using the globals block. Keep in mind the globals block must be at the top, because Beastmaster must be defined before Trig_Beastmastery_Actions uses it.

The other problem may be that you are doing an illegal declaration. Beastmaster is an integer, but let's look at [LJASS]UnitMakeAbilityPermanent[/LJASS].

JASS:
native UnitMakeAbilityPermanent     takes unit whichUnit, boolean permanent, integer abilityId returns boolean


It first takes a unit, so you need to return the unit that uses it, not an integer. Also, on line 2, you have an unclosed parenthesis.
 

D359

Member
Reaction score
1
It's a good theoretical tutorial,very well writen but I need practical help,I DON'T UNDERSTAND HOW TO APPLY THESE THINGS!All I want is an example I can use to learn how to make a spellbook not get banged up by a methamorphosis
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top