Ok, so here is one of the first spells I made by my self in JASS. So, could you please check it, by checking I primarely mean leaks, and I am unsure about using that unit array. It makes nulling easier but still does it consume too much memory? The spell should Create 1/2/3 unkillable and...
Ok, so I don't understand why doesn't this work?
I wanted to make a cheat system so I could play jokes on my friends. So What basically I wanted to do is make them safer. So I made a few cheats that work if a player types a message something happens and they are initially off. So I noticed that...
#1 : How to make unit go forward by an amount when "up is pressed". Or to be more precise, I would make 3 triggers one with press and other with depress and they would turn on and off the third trigger which runs every 0.03 seconds. But how to make unit go forward by an amount?
#2 : I need to...
Ok, I need a way to make the camera look on a unit from back of a unit, a 3rd person camera, and I need to make the unit move with arrow keys. I also need to make the camera rotate as the unit does. I hoipe you understand what I want to do, please help me :)
Ok, so there is no point in posting all triggers involved, after some debugging I found out that after this is executed:
//=======================SUMMONS PLAYERS AT START=====================
function Summon takes nothing returns nothing
local integer n = 0
local integer m = 0
local location l...
Can somebody fully explain what GetLocalPlayer() does and give some example of how to use this because I don't really understand this and can't find a decent explanation on the net?
#1-When I create a variable array in the "Variables" option in GUI is the first element variable[0] or variable[1]???
#2-Does playing sound leak?
#3-DoesTurning triggers off leak?
#4-Is doing Destroy Floating text instead of seting lifespan still fixing the leak?
#5- Will it help the map if I...
Ok, so I needed a trigger which looks like this:
if two units are on a circle of power they are teleported on a location.
So I wrote this:
function Trig_N3_PRVI_Actions takes nothing returns nothing
local unit u
local location l
local group g
local integer n
local integer count
set...
Ok, so I guess this leaks too?
Let the Game Begin
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Actions
Set Num_of_Players = (Integer((Entered chat string)))
Visibility - Create an initially...
Deos this leak?
Summon Players
Events
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - Apply Cinematic3 <gen> for (Picked player) over 0.00 seconds
Wait 2.00 seconds...
Hello :)
I've been thinking/making a map and I have many questions and doubts about triggers and editor.
#1: How to hide chat messages from a player? That is, to make him unable to chat(but not cinematic,simply hiding his chat messages)?
#2: Can I make computer players type in something at...
Question #1: I know it may sound silly, but how do I rename triggers??? I can't find the option "rename" anywhere...
Question #2: What is the best method of protecting my map? By "best" I mean making it hardest to get into. Is the Map Optimizer good enogh?
Hello, I started to work with JASS recently, and I am still a big newbie to it. So, I have a trigger like this that works perfectly:
function TextActions takes nothing returns nothing
call Msg("Hello",0)
endfunction
function InitTrig_Text takes nothing returns nothing
local trigger...
What are the best spells to use as base spells when I want to create a spell with:
-signle enemy target
-ground target(point)
-ground OR enemy unit
-ground(AoE)
please tell me because I am really having problems making spells since there are always some side effects I fail to remove...
How to change unit model in game? Not the whole unit, just like after a certain period of time I want a unit tochagne a model( from a child to a footman for example).