I'm new to the Jass

D359

Member
Reaction score
1
how do I use codes?I want to fix a spell book so that it won't be messed up by methamorphosis
 

Dirac

22710180
Reaction score
147
Are you really asking that?
"How do i math?"


...
there are like a thousand tutorials about JASS/vJass and at least a hundred of them are approved by mods
 

tooltiperror

Super Moderator
Reaction score
231
JASS is the scripting syntax that interacts with the World Editor. Normal JASS isn't usually used, nowadays people mostly use an extension called JASSHelper.

An example script in JASS might look like this:
JASS:

library HelloWorld initializer onInit
  private function onInit takes nothing returns nothing
    local integer index = 0
    
    loop
      call DisplayTextToPlayer(Player(index), 0, 0, "Hello, World!")
      set index = index + 1
      exitwhen index == bj_MAX_PLAYER_SLOTS
    endloop
  endfunction
endlibrary

You should refer to the stickied topic, "What is JASS?", for more information.
 

D359

Member
Reaction score
1
so basicaly all I have to do is type there:

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

I only do 2 hours of math per week and I barely pass with a D.I am studing under a social studies profile(I do lots of literature and history classes and few math and economy classes.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
If the Beastmaster variable is declared somewhere; As in:
JASS:
local unit beastmaster = 'H000'

Obviously, change the 'H000' to the rawcode of your hero.
 

D359

Member
Reaction score
1
if it's not will I have to make a new Beastmaster?I'm using the predefined one in the editor.By the way is the function I wrote in the above post good?can I write anything in the rawcode sections as long as it starts with a letter
 

Xbing

New Member
Reaction score
0
you could press CTRL-D in the object editor to view the unit's object ID if i'm not wrong. to set it, i am not really sure how to do that, but i use Gen NewGen pack's editor, and every time a new unit is created, it automatically prompts me to enter the object ID.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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