• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
FRENGERS
Reaction score
33

Profile posts Latest activity Postings Experience Albums Resources About

  • Thanks! The model pack is unfinished and it sucks at the moment. My intention is to make more to it. I'm not done with the ruine pack so keep an eye on it I'll make more updates it's not over!
    Oh okay, I think I found the issue. The Libram is being created before the unit is being indexed, so it ends up assigning it to the ID of 0 on creation, but once the unit is indexed, it'll try looking up the Libram at ID 4 (the unit's index). All that you need to do is make Init2() called on the game's start, rather than map initialization. Like this:
    scope Test initializer Init
    globals
    unit hero

    Libram A

    LibramPage array Pages
    endglobals

    private function esc takes nothing returns nothing
    call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,12,"Use UP or DOWN key to switch the Spell Pack")
    call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,12,"Press ESC to refresh health, mana, cooldowns, and to display this text again.")
    call SetWidgetLife(hero,GetUnitState(hero,UNIT_STATE_MAX_LIFE))
    call SetUnitState(hero,UNIT_STATE_LIFE,GetUnitState(hero,UNIT_STATE_MAX_LIFE))
    call UnitResetCooldown(hero)
    endfunction

    private function PreloadAbils takes nothing returns nothing
    // This is just for preloading the abilities, it is not necessary
    // However, I do recommend it in general

    // Spell Tester
    call AbilityPreload('A008')
    call AbilityPreload('A001')
    call AbilityPreload('A006')
    //call AbilityPreload('')

    // Life Witch
    //call AbilityPreload('AHfs')
    //call AbilityPreload('AHbn')
    //call AbilityPreload('AHdr')
    call AbilityPreload('A009')

    // Shadow Assassin
    call AbilityPreload('A00G')
    call AbilityPreload('A00H')
    call AbilityPreload('A00F')
    call AbilityPreload('A00I')
    endfunction

    private function Init2 takes nothing returns nothing
    set A = Libram.create(hero) // Make Libram for the hero

    set Pages[0] = A.first
    set Pages[1] = A.createPage() // Pages
    set Pages[2] = A.createPage()

    // Spell Tester
    call A.addAbility(Pages[0],'A008') // Gather
    call A.addAbility(Pages[0],'A001') // Body Replacement
    call A.addAbility(Pages[0],'A006') // Impulse
    //call A.addAbility(Pages[0],'') // Speller

    // Life Witch
    //call A.addAbility(Pages[1],'AHfs') // Lost
    //call A.addAbility(Pages[1],'AHbn') // Extraction
    //call A.addAbility(Pages[1],'AHdr') // Soul Burst
    call A.addAbility(Pages[1],'A009') // Restart

    // Shadow Assassin
    call A.addAbility(Pages[2],'A00G') // Needle Of Death
    call A.addAbility(Pages[2],'A00H') // Shadow Leap
    call A.addPassive(Pages[2],'A00F','A00P') // Hide In Darkness
    call A.addAbility(Pages[2],'A00I') // Sight Of Assassin

    call A.refresh() // Refresh, just in case so that all of the abilities will work correctly
    call DestroyTimer(GetExpiredTimer()) // clear leak
    endfunction

    private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    set hero = gg_unit_H000_0000
    if GetLocalPlayer()==Player(0) then
    call SetCameraTargetController(hero,0,0,false)
    endif
    call TriggerRegisterPlayerEvent(t,Player(0),EVENT_PLAYER_END_CINEMATIC)
    call TriggerAddAction(t,function esc)
    call TriggerExecute(t)
    call TimerStart(CreateTimer(), 0, false, function Init2) // start a 0-sec timer
    endfunction
    endscope

    If that doesn't work, let me know. Also, delete the AIDS trigger if you are using Bribe's indexer already. Otherwise, that might cause additional problems.
    Hmm, the set-up looks okay. Do they get the page-up and page-down abilities? Make sure you set the rawcodes in LibramPageShift properly.

    Otherwise, you should send me the map. It'll make it easier for me to debug it.
    Oh okay, hopefully I can give you a response a little later. I have to go on my other computer to check.
    Bro, u dun mind getting your spell a bit late?

    I plan to start doing Fire Thrower and redo Startshot ability so, it might be a bit late >__<

    I'm very sorry. >__<

    BTW, your spells will require RegisterPlayerUnitEvent system. Don't worry, I include it in the map. :)
    What is this for? Is this for my Libram resource? Or are you making a spell submission? Or are you trying to use a spell pack?
    You set their path to something. Then you place them neatly near each other. When you finish remove this path.
    Just gonna tell you I'm working on your 4 request :) I already finished 2 spells :p

    Firesome doesnt really need vJass if it only power up the spell :3

    And tell me the real name for "incernate". incinerate? incarnate? or what? :3
    Hahaha yeah I can see that.
    I made holiday in Indonesia for a few times now.

    So, what are you working as? :)
    It's okay, I will let you calm for a bit. You look like not okay upon seeing my reputation or whatsoever.
    sorry! iv been in active for like 4 months-- been busy!

    you cannot animate hey, well, I can only kind of animate, but im gona start getting back into model editing soonish
    ----------
    itu buat tenggelamin GIF p*rn ( yah orang nakal, gua suruh edit, ga mau )
    makany liat dulu kebawah, jangan asal tanggap ( Komen yg bner ) Ngekomen cuma buat gituan. Contoh orang sensitif
    ----------
    ooooooo
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top