3 questions:
1. The subject of this: is there a better way to do this?
2. Is there a chance that call PauseUnit( slider, true )
call IssueImmediateOrder( slider, "stop" )
call PauseUnit( slider, false ) would cause an order from a player (like use Divine Shield) to be...
1. If I call this function 5 times, with numPatrols at a constant value:
function MakeSpinUnit takes integer numPatrols, rect r returns nothing //removed integer v
local integer yi
local real x = GetRectCenterX(r)
local real y = GetRectCenterY(r)
local integer v
local...
So it appears that whenever someone dies, there is this annoying map lag from which everyone suffers.
Here is the relevant code:
This is the sliding/Terrain Kill trigger that determines a unit should die:
cope Sliding initializer Init
private function SlidingCond takes nothing returns...
Hey everyone. This is really frustrating.
I just recently went through my map to optimize some of the code in it, and now:
Whenever I try to CHOOSE it (this is BEFORE playing it), instead of going to the game lobby, I get a fatal error.
What could this have to do with?
Thanks
Zakk
Is this leaking? if so, where?
scope Sliding initializer Init
private function SlidingCond takes nothing returns boolean
return (GetUnitTypeId(GetFilterUnit()) == 'E000')// or GetUnitTypeId(GetFilterUnit()) == 'E001')//the unit rawcode
endfunction
private function Sliding takes...
I converted my TFT map...
The RoC terrain in the conversion (in the editor) displays just fine.
The RoC terrain in game displays just fine.
The RoC terrain--without TFT installed (I tested on another computer)--gets mixed up, and is randomly replaced by god knows what.
In game, I have a...
I got an Error: could not load texture.
Does WC3 create an error file (or whatever it is called) where I can get more specific information about the error?
Thanks,
Zakk
Can someone point me to a tool that finds leaks (as a result of coding JASS/vJass--I heard some are better for GUI...[??])?
Would this tool also be able to pinpoint the leak so that it would be easy to find its cause and fix?
Thanks,
Zakk
For importing terrain, is there a war3x texture that must be imported in addition to the actual TerrainArt for it to properly display on RoC (without war3x.mpq)?
<3
Zakk
here's another question to add to my slew of RoC compatibility problems
In my map, I am using the "Objects\InventoryItems\CrystalShard\CrystalShard.mdx" Crystal shard model for the display when the item is on the ground (instead of the standard treasure chest/what have you).
After importing...
What is the name of the button image that is used when an inventory slot cannot be used? (There are default six, but if you can only use one, the other five will be "wooded" over--shown to be unusable). It looks like wood (possibly with some leafy touches)...
I hope it is somewhat clear what...
Hello everyone.
The map I am making is currently a TFT map, with some TFT only terrain, but hosting bots can host .w3x for RoC players. I imported the TFT only terrain, and I have the correct file paths for replacement, and they work just fine, both on RoC and on TFT, GIVEN THAT THE PERSON...
First, I need to make sure that this doesn't leak (and yes I could probably combine the first two functions =P):
function yA takes integer Id,real X1,real Y1,real X2,real Y2,real YH returns nothing
local unit zA=CreateUnit(Player(PLAYER_NEUTRAL_AGGRESSIVE), Id, X1, Y1, YH)
call...
set udg_is_activ_j[n] = ((GetPlayerController( Player(n) ) == MAP_CONTROL_USER and GetPlayerSlotState( Player(n) ) == PLAYER_SLOT_STATE_PLAYING) or GetPlayerController( Player(n) ) == MAP_CONTROL_COMPUTER)
if udg_is_activ_j[n] then
set udg_DemonHunters[n] = CreateUnit(Player(n), 'Edem'...
Does this work? Are both functions executed--bottom one first?
function Trig_GroupDefine_Actions takes nothing returns nothing
//stuff here!
endfunction
function Trig_init_slide_triggers_Actions takes nothing returns nothing
set udg_check_terrain_j[0] = gg_trg_RedTerrainKill
set...
Is it possible to BLOCK a save...?
I've heard of bots being able to do it, but does anyone know how?
Also, any suggestions has to how (if possible) one may accomplish this using script? ...
I am having a very difficult time locating this information if it exists...(lol)
:D
This is kind of an extension of another thread...
So I can crash everyone in the game's Warcraft by running an infinite loop that calls itself...
Can I run that infinite loop for only one person?...
If not, is there another method I could use to crash a person's WC3?
Every second, this function creates and orders 2-6 troll headhunters...
function yU takes integer Id,real X1,real Y1,real X2,real Y2,real YH returns nothing
local unit zH=CreateUnit(Player(PLAYER_NEUTRAL_AGGRESSIVE), Id, X1, Y1, YH)
call IssuePointOrderById(zH,851986,X2,Y2)...
Is there a native or BJ to go along with the event -- Game is about to saved -- (in JASS) such that it'll alert the players in the game that the game is about to be saved by : <PlayerName> (or defeat the player (and that player ONLY) trying to save the game)?
Currently, I just have something...
So I got the entangle effect to work when a hero walks or slides on the vines...
here is the initializer:
function InitTrig_RedTerrainKill takes nothing returns nothing
set gg_trg_RedTerrainKill = CreateTrigger( )
call TriggerRegisterTimerEvent(gg_trg_RedTerrainKill, 0.1, true)...