I've got two codes that do the same thing, which is faster and why?
method iterate takes code func returns nothing
local trigger temp = CreateTrigger()
local thistype cnt = this.guard
call TriggerAddAction(temp, func)
set cnt = cnt.next
exitwhen cnt ==...
Compiler throws me the error at bottom of post, what I got wrong in my code?
#define MAX_CHAR_LENGTH 20
using namespace std;
The Structs Tutorial
This tutorial is directed to the ones who learned jass, except structs. This is your final step for mastering the Jass programming language.
Every day I add/remove/edit some stuff, it will cover everything about structs. This tutorial is updated regularly, so don't...
is there any way to pass a variable of a textmacro function into another textmacro??
//! textmacro id takes name1
$name$ type variable1
//! textmacro id2 takes name2
$name2$ type variable2 extends $name1$
so is there any way to put...
I have a struct like this
and then I execute this function
function OnInit takes nothing returns nothing
local integer i = 0
set i = i + 1
set MyData.create().id = GetRandomInt(1, 12)
exitwhen i == 12...
They have same speed or second is faster?
function A takes nothing returns nothing
//a bunch of lines
function B takes nothing returns nothing
if condition then
function B takes...
library ASCIIConverter /*v.2.50*/
// ~|By NoobImbaPro|~ //
// What does it do:
// It typecasts an integer of type 'hfoo' into a string with "hfoo" value and the...
is there any way when I set a member from a struct to perform an action??
Like I have a
when I do this
I want to update my multiboard (my function UpdateMultiboard(player p))
I like to try to avoid a method setI(int value) witch I...
I apply custom camera view to a unit. Is there any way to disable the thing that roll does?? I mean the button between right-left click buttons. Because I set camera rotation call SetCameraFieldForPlayer( GetOwningPlayer(GetTriggerUnit()), CAMERA_FIELD_ROTATION, 0, 0.9) and when I use the button...
When I create a new map with jassnewgenpack v5d, jasshelper plug-in doesn't execute to compile even I have it enabled upon save.
Also when I store to an integer a HandleID like
local integer id = GetHandleId(handle: widget, region, rect, item blablabla)
It doesn't do anything...
Lets say I have a empty struct A for beggining
I call A.create() and do some actions inside (using methods)
1)What actually .create() method does? Does it create an empty ram space? Or does it use an already created space for that struct ?
2)I saw in some system using thistype(0) for some...
Advanced Unit Moving System
Hello thehelper.net, this is my first system as its title says it moves units in the 3D Wacraft world.
How to implement:
--Copy the code below to a trigger you just created and set it to custom...
I have a skill (active/passive) that gives a chance to deal bonus damage and when i cast skill the chance becomes 100% for some secs. I used Damage system (Jesus4Lyf) to accomplish that. But when I have buff and attack the WC3 crashes??
I used once onDamageDealt method that uses Damage...
I have this code that doesn't work obviously
static method create takes boolean E1, boolean E2, boolean E3, boolean E4, boolean E5, boolean E6, boolean E7, boolean E8 returns thistype
local thistype this = thistype.allocate()
local string st
local integer i = 0...