Local Handle Vars

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
Ok how do i use these handles

Code:
//************************************************************
//
// For more JASS scripts, visit us at http://www.wc3JASS.com
//
 //============================================================
 
// ===========================
function H2I takes handle h returns integer
    return h
    return 0
endfunction
 
// ===========================
function LocalVars takes nothing returns gamecache
    return InitGameCache("jasslocalvars.w3v")
endfunction
 
function SetHandleHandle takes handle subject, string name, handle value returns nothing
    if value==null then
        call FlushStoredInteger(LocalVars(),I2S(H2I(subject)),name)
    else
        call StoreInteger(LocalVars(), I2S(H2I(subject)), name, H2I(value))
    endif
endfunction
 
function SetHandleInt takes handle subject, string name, integer value returns nothing
    if value==0 then
        call FlushStoredInteger(LocalVars(),I2S(H2I(subject)),name)
    else
        call StoreInteger(LocalVars(), I2S(H2I(subject)), name, value)
    endif
endfunction
 
function SetHandleReal takes handle subject, string name, real value returns nothing
    if value==0 then
        call FlushStoredReal(LocalVars(), I2S(H2I(subject)), name)
    else
        call StoreReal(LocalVars(), I2S(H2I(subject)), name, value)
    endif
endfunction
 
function SetHandleString takes handle subject, string name, string value returns nothing
    if value==null then
        call FlushStoredString(LocalVars(), I2S(H2I(subject)), name)
    else
        call StoreString(LocalVars(), I2S(H2I(subject)), name, value)
    endif
endfunction
 
function GetHandleHandle takes handle subject, string name returns handle
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
    return null
endfunction
function GetHandleInt takes handle subject, string name returns integer
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
endfunction
function GetHandleReal takes handle subject, string name returns real
    return GetStoredReal(LocalVars(), I2S(H2I(subject)), name)
endfunction
function GetHandleString takes  handle subject, string name returns string
    return GetStoredString(LocalVars(), I2S(H2I(subject)), name)
endfunction
 
function GetHandleUnit takes handle subject, string name returns unit
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
    return null
endfunction
function GetHandleTimer takes handle subject, string name returns timer
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
    return null
endfunction
function GetHandleTrigger takes handle subject, string name returns trigger
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
    return null
endfunction
function GetHandleEffect takes handle subject, string name returns effect
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
    return null
endfunction
 
function FlushHandleLocals takes handle subject returns nothing
    call FlushStoredMission(LocalVars(), I2S(H2I(subject)) )
endfunction

Like do paste this in my map or what?
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
map header?

can u do the call functions im not good at jass i just want freezing field in random dota spells 1
 

monoVertex

I'm back!
Reaction score
460
untitled-1.jpg
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
picture cant open theres an x at top left of screen..
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
ur wriitting looks like ur pissed off

thanks :D

but know the abilty dont work.. ill fix myself i guess
 

monoVertex

I'm back!
Reaction score
460
>ur wriitting looks like ur pissed off

No, I wrote fast. And it's the second time when I write with the mouse. :D

>thanks

Anytime ;)
 

Sim

Forum Administrator
Staff member
Reaction score
534
(Off-Topic) ZOMG you have WoW interface ! Haha !

On-Topic : If you copy-pasted the spell in your map and it is in JASS you will have to change all the 4 numbers between the ' ' in your JASS trigger, according to your map.

Example : the guy who made this had Frost Nova spell as ID 'A001' (dunno if it exists)

In your map maybe the custom Frost Nova spell isn't 'A001', maybe it is 'A0G2'.

You need to change this !
 

SFilip

Gone but not forgotten
Reaction score
634
Malto1 said:
Example : the guy who made this had Frost Nova spell as ID 'A001' (dunno if it exists)
just for the record...all spells like that (A001, A002...A010 etc) are custom.
press Ctrl+D in the object editor to see what is the raw value of your custom spell.
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
yea figured that out from the full screen inventory system
 
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