• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

utf8.a

An ability object editor data file from which one can get the bytes 0x00 .. 0xFF into a Jass string.

JASS:
globals
    string array chrTable // chrTable[256]
endglobals
function chrTableInit takes nothing returns nothing
    local string s = GetAbilityEffectById('UTF8', EFFECT_TYPE_EFFECT, 0) + "," + GetAbilityEffectById('UTF8', EFFECT_TYPE_EFFECT, 1)
    local integer a = 0
    set chrTable[255] = "" // reserve
    set chrTable[0] = ""
    set a = 1
    loop
        exitwhen a == 256
        set chrTable[a] = SubString(s, a, a + 1)
        set a = a + 1
    endloop
endfunction

Attachments

  • utf8.w3a
    301 bytes · Views: 0
Top