• 🏆 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!
PurgeandFire
Reaction score
1,859

Profile posts Latest activity Postings Experience Albums Resources About Medals

  • As you may have understood from my signature I follow the youtuber Brooke Lawson who's more known as PressHeartToContinue/DexterityBonus/Dodger. Other than that there's wowcrendor, warpzone and angryjoe. I don't really follow lore youtubers as I like to read up on lore rather than hearing someone speak of it.

    The games I follow is mainly WoW, Dragon Age, Legend of Zelda and Kingdom Hearts. (Or atleast it's those I know all the lore on.)
    Just drivin' by again. I was thinking about creating a save/load GUI tutorial. I have not started to write on it yet, so no harm done if you don't think it's useful enough.

    This is the trigger(s) I'd use in the tutorial.

    Just for testing
    Events
    Map initialization
    Conditions
    Actions
    Player - Add 666 to Player 1 (Red) Current lumber
    Player - Add 1337 to Player 1 (Red) Current gold
    Set hero_types[1] = Paladin
    Set hero_types[2] = Archmage
    Set hero_types[3] = Mountain King
    Set hero_types[4] = Blood Mage
    Set hero_names[1] = Paladin
    Set hero_names[2] = Archmage
    Set hero_names[3] = Mountain King
    Set hero_names[4] = Blood Mage
    Set hero_count = 4
    Set spawn_loc = (Center of Spawn Region <gen>)
    Unit - Create 1 hero_types[(Random integer number between 1 and hero_count)] for Player 1 (Red) at spawn_loc facing Default building facing degrees
    Set player_hero = (Last created unit)
    Hero - Set player_hero Hero-level to (Random integer number between 2 and 10), Hide level-up graphics

    Init
    Events
    Map initialization
    Conditions
    Actions
    Custom script: set udg_local_player = GetLocalPlayer()

    GUI Save
    Events
    Player - Player 1 (Red) skips a cinematic sequence
    Conditions
    Actions
    Custom script: local File file
    Set mapName = testMap
    Set file = exp
    Set player = (Triggering player)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    local_player Equal to Player 1 (Red)
    Then - Actions
    Custom script: set file = File.open(udg_mapName, udg_file, File.Flag.WRITE)
    Set what_to_save = (Name of (Triggering player))
    Custom script: call file.write(udg_what_to_save)
    Set what_to_save = (Name of player_hero)
    Custom script: call file.write(udg_what_to_save)
    Set what_to_save = (String((Level of player_hero)))
    Custom script: call file.write(udg_what_to_save)
    Set what_to_save = (String((player Current gold)))
    Custom script: call file.write(udg_what_to_save)
    Set what_to_save = (String((player Current lumber)))
    Custom script: call file.write(udg_what_to_save)
    Game - Display to (All players) the text: saved!
    Custom script: call file.close()
    Else - Actions

    GUI Load
    Events
    Player - Player 1 (Red) types a chat message containing load as An exact match
    Conditions
    Actions
    Custom script: local File file
    Set mapName = testMap
    Set file = exp
    Set player = (Triggering player)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    local_player Equal to Player 1 (Red)
    Then - Actions
    Custom script: set file = File.open(udg_mapName, udg_file, File.Flag.READ)
    Custom script: set udg_what_to_load = file.read()
    Player - Set name of player to what_to_load
    Custom script: set udg_what_to_load = file.read()
    For each (Integer A) from 1 to hero_count, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    what_to_load Equal to hero_names[(Integer A)]
    Then - Actions
    Unit - Create 1 hero_types[(Integer A)] for Player 1 (Red) at spawn_loc facing Default building facing degrees
    Else - Actions
    Custom script: set udg_what_to_load = file.read()
    Hero - Set (Last created unit) Hero-level to (Integer(what_to_load)), Hide level-up graphics
    Custom script: set udg_what_to_load = file.read()
    Player - Add (Integer(what_to_load)) to Player 1 (Red) Current gold
    Custom script: set udg_what_to_load = file.read()
    Player - Add (Integer(what_to_load)) to Player 1 (Red) Current lumber
    Custom script: call file.close()
    Else - Actions
    Nice to hear, is there any Youtuber you follow? Is there any specific type of games you like?
    Well I listen to every genre at least a little but mostly it is metal right now it's mostly Hammerfall.
    Alright so what music do you like then? And yes I do love ornithology, birds are so pretty and fascinating.
    Is there anything in particular that you do follow then? Technology, astronomy, ornithology or anything else?
    How are things going politically in the U.S, we haven't covered it for a while in Sweden since the new government was elected less than a month ago and they've made some big changes?
    Well, I don't want to declare and host a crappy contest. So I will invite some real qualified users like you to be a judge at Zephyr Contest #12.

    So are you interested? :)
    I'm sorry that it's killing all your time. I hope you'll end up getting a good job. What job do you hope to get?
    Well you're pleasant to have a conversation with. I also remember having a large amount of conversations with Craka_J and Miss_Foxy though they both have been very inactive recently.

    What do you do most days on THW, what's it like being a moderator, do you have to approve a lot of resources and remove a lot of spam?
    Yeah it's too sad you didn't run this place sometimes. On another topic is there anyone on this forum that you have constant contact with? You've been here for 8 years after all is there anyone here you regard as a friend?
    The hard thing is just to find more moderators who wants to be active. The sad part is that you're the only one who wants that so they might need to promote new moderators.
    Having some active moderators I think would really increase activity on the forums.
    And I don't see why the Gamer's Hub can't have it's own moderators that are active, people are much swifter in responding to you than me. Though that might just be because you have stronger arguments.
    Well I can't give you a mod but I could strive for activity in the moba forums I already have the experience I need with LoL and I could just pick up DOTA 2 and start posting in 2 or 3 weeks when I got a little experience.
    I've seen Statharas make an occasional visit to the Hearthstone section of the gamer's hub other than that you're the only one of the moderators who display any activity at all. I don't understand why there's even need for four other moderators at the gamer's hub. I've never during my 4 year membership seen Maker, Keiji or Orcnet partake in any activity on the forums. In my opinion we shouldn't have moderators who can't lead with example and so far you're the only one who live up to that. You might not be the most frequent poster but when you're there which always are eventually you make the best posts I've ever witnessed.
    D
    Soo, I made the following changes for chapter 5:
    "Use PUI" > "Use Unit Indexer"
    Also corrected the sentence under it a bit.
    Added "StructuredDD" under 5.8
    Removed 5.9
    Added PurgeandFire to credits for reviewing it

    The tutorial has been 6 months under submissions and I've had to polish it a lot, is it okay now?
    I'd like to know a little more about you we end up talking a lot on the forums and yet I know nothing of you. May I ask your name? Or maybe how you ended up becoming a moderator?
    Hello,

    Perhaps you are interested to participate in Zephyr Contest #12?
    (It's the theme polling thread, link to the contest is available there)
    ----------
    Plz help! Also, I have another problem:
    ----------

    ----------
    What did I do wrong there? Plz help! :emote_smile:
    ----------

    ----------
    Thanx, but I forgot to mention I solved this a long time ago, but thanx... I just used the "GetUnitAbilityLevel" or the "GetUnitAbilityLevelSwapped" majigger, thanx anywayz though...
    ----------
    You are not as cool as you were >.>
    D
    Okay, thanks for the info ^^. I still don't get how he managed to get past the bot precations which have been taken by Ralle.
    D
    Hey Purge, I saw you banned that guy but he still sent me a PM, is it possible it was sent before the ban and I forgot to check the time frame or is he still able to send them?
    Hello, PnF

    Is that okay if I include all global variables into a separated trigger? link
    I would be willing to host as a last resort. Might be better to ask mr.loremaster before me though :p

    Should I open a thread in the staff contact for it?
    Purge, I'm currently still updating my SCE. But I got stuck on a weird bug.
    Do you know how come this FirstOfGrou function always returns null?
    // Collect creeps around main characters' position
    loop
    exitwhen i > TotalCharacter
    call GroupEnumUnitsInRange(PickGroup, GetUnitX(MainCharacter), GetUnitY(MainCharacter), DISTANCE, function pickFilter)
    set i = i + 1
    endloop

    loop
    set u = FirstOfGroup(PickGroup)
    call BJDebugMsg(GetUnitName(u))
    if u == null then
    //call BJDebugMsg("exit")
    endif
    exitwhen u == null
    call BJDebugMsg("enter")
    I have correctly (tested) the unit filtering and it's done right. But, I don't know why set u = FirstOfGroup(PickGroup) always returns null there. It's just instantly exited the loop. Do you know any possible cause?

    Thanks

    EDIT:

    RRARRGGH. Forget it, I think the group got flushed on the next GroupEnumUnitsInRange
    PnF, I'm so sorry, I know reviewing my SCE takes a lot of your times. I'm sorry that the result is disappointing :( Yeah, my coding was so horrible. I promise it will be approvable in the next update.
    Nope, the module only contains 3 local declarations :/ Thought it's a bug of JNGP perhaps? It happens quite often, not everytime...
    Purge, do you know why I can't implement the same module in a same struct twice or more?
    You are welcome :)
    Anyway, if you have checked my GradationGen, it's unacceptable in any way. It does useless double or even triple iterations per function call. I will re-write it someday though. :p

    Just to make sure you wont waste your time by reviewing it ;)
    D
    Hmm ok... I will remove the custom allocation part, the tutorial is supposed to be for beginners and they can't get much out of it...


    I'll change the indexer part as you suggested.


    This will take a while though, at the moment I have little to none time for hive
    D
    was my previous vm too inappropriate or is it just too much of a work to answer it?

    i see you've not too much free time in your hands, but you're the only tutorial mod so i'd like a response from you.. i have no one else to contact about tutorials...
    Yo! I wish some guys would make an Open Source engine for warcraft too, like that of OpenMW. That would be fun lol.
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top