• 🏆 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!
Vinz
Reaction score
5,481

Profile posts Latest activity Postings Experience Albums Resources About Medals

  • last problem set udg_Host = GetStoredInteger ( udg_gamehost, "host", "host" )
    expected a variable name
    i have both host and gamehost variables
    okay thanks

    is it okay to find host like this? or should i use integer instead of boolean

    Host
    Events
    Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Player(tempInt)) slot status) Equal to Is playing
    ((Player(tempInt)) controller) Equal to User
    Then - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    FoundHost Equal to False
    Then - Actions
    Set Host = (Player(tempInt))
    Set FoundHost = True
    Game - Display to (Player group(Host)) the text: You are the host!
    Else - Actions
    Else - Actions
    Trigger - Run SelectDifficultyStart <gen> (ignoring conditions)
    like this

    Cleanup
    Events
    Conditions
    Actions
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Player(tempInt)) slot status) Equal to Is playing
    ((Player(tempInt)) controller) Equal to User
    Then - Actions
    Set PlayersReadyRDY[tempInt] = 0
    Set tempPoint = (Center of hero teleport region <gen>)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    (HERO[tempInt] is alive) Equal to True
    Then - Actions
    Unit - Move HERO[tempInt] instantly to tempPoint
    Else - Actions
    Hero - Instantly revive HERO[tempInt] at tempPoint, Show revival graphics
    Camera - Pan camera for (Player(tempInt)) to tempPoint over 0.00 seconds
    Hero - Set HERO[tempInt] Hero-level to ((Hero level of HERO[tempInt]) + 1), Hide level-up graphics
    Custom script: call RemoveLocation (udg_tempPoint)
    Else - Actions
    Set PlayersREADY = 0
    Trigger - Turn on READY CHECK <gen>
    SpawnHero
    Events
    Unit - A unit Sells a unit
    Conditions
    ((Sold unit) is A Hero) Equal to True
    Actions
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    Wisp[tempInt] Equal to (Buying unit)
    Then - Actions
    Unit - Remove Wisp[tempInt] from the game
    Set HERO[tempInt] = (Sold unit)
    Selection - Clear selection for (Player(tempInt))
    Selection - Select HERO[tempInt] for (Player(tempInt))
    Set tempPoint = (Center of hero teleport region <gen>)
    Unit - Move HERO[tempInt] instantly to tempPoint, facing 270.00 degrees
    Player - Limit training of Heroes to 0 for (Player(tempInt))
    Camera - Pan camera for (Player(tempInt)) to tempPoint over 0.00 seconds
    Custom script: call RemoveLocation (udg_tempPoint)
    Else - Actions



    This also good?

    Cleanup
    Events
    Conditions
    Actions
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Player(tempInt)) slot status) Equal to Is playing
    ((Player(tempInt)) controller) Equal to User
    Then - Actions
    Set PlayersReadyRDY[tempInt] = 0
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    (HERO[tempInt] is alive) Equal to True
    Then - Actions
    Set tempPoint = (Center of hero teleport region <gen>)
    Unit - Move HERO[tempInt] instantly to tempPoint
    Hero - Set HERO[tempInt] Hero-level to ((Hero level of HERO[tempInt]) + 1), Hide level-up graphics
    Camera - Pan camera for (Player(tempInt)) to tempPoint over 0.00 seconds
    Custom script: call RemoveLocation (udg_tempPoint)
    Else - Actions
    Set tempPoint = (Center of hero teleport region <gen>)
    Hero - Instantly revive HERO[tempInt] at tempPoint, Show revival graphics
    Hero - Set HERO[tempInt] Hero-level to ((Hero level of HERO[tempInt]) + 1), Hide level-up graphics
    Camera - Pan camera for (Player(tempInt)) to tempPoint over 0.00 seconds
    Custom script: call RemoveLocation (udg_tempPoint)
    Else - Actions
    Set PlayersREADY = 0
    Trigger - Turn on READY CHECK <gen>

    CommenceWave
    Events
    Conditions
    Actions
    Multiboard - Change the title of GEN_MultiBoard to (====== + ((String(GAMEPLAY_WaveNumber)) + ======))
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Player(tempInt)) slot status) Equal to Is playing
    ((Player(tempInt)) controller) Equal to User
    Then - Actions
    Set tempPoint = (Center of Hero teleport region 2 <gen>)
    Unit - Move HERO[tempInt] instantly to tempPoint
    Camera - Pan camera for (Player(tempInt)) to tempPoint over 0.00 seconds
    Custom script: call RemoveLocation (udg_tempPoint)
    Else - Actions
    its a map and there are milion triggers :D (okay not milion but many i will post some i am having doubts about.

    Do i need to set point?
    CreateWisps
    Events
    Conditions
    Actions
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Player(tempInt)) slot status) Equal to Is playing
    ((Player(tempInt)) controller) Equal to User
    Then - Actions
    Set GEN_NumberOfPlayers = (GEN_NumberOfPlayers + 1)
    Set WispRegion = (Center of WispSpawn <gen>)
    Unit - Create 1 WispType for (Player(tempInt)) at WispRegion facing Default building facing degrees
    Set Wisp[tempInt] = (Last created unit)
    Custom script: call RemoveLocation (udg_WispRegion)
    Else - Actions




    i created here for some reason
    SpawnHero
    Events
    Unit - A unit Sells a unit
    Conditions
    ((Sold unit) is A Hero) Equal to True
    Actions
    For each (Integer tempInt) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    Wisp[tempInt] Equal to (Buying unit)
    Then - Actions
    Unit - Remove Wisp[tempInt] from the game
    Set HERO[tempInt] = (Sold unit)
    Selection - Clear selection for (Player(tempInt))
    Selection - Select HERO[tempInt] for (Player(tempInt))
    Unit - Move HERO[tempInt] instantly to (Center of hero teleport region <gen>), facing 270.00 degrees
    Set tempPoint = (Position of HERO[tempInt])
    Player - Limit training of Heroes to 0 for (Player(tempInt))
    Camera - Pan camera for (Player(tempInt)) to tempPoint over 0.00 seconds
    Custom script: call RemoveLocation (udg_tempPoint)
    Else - Actions
    I'd like one but It would have to be historically accurate to be used. What I'd also like is a loading screen (probably a good screenshot with some info) but I'm concerned about space. Not top priority things though.
    Rheiko is the alternate way :p

    Btw, the text doesn't hurt my eyes very much. Lol.
    well its one type thing for that i mean i dont use that trigger anymore? and one other question when i use my own int (tempInt) for like 3 triggers do i have to create tempint1,2,3, or i can use just tempInt for all 3?
    Oh I am. Actually I'm making one right now, though I won't post a WiP until next week.

    I am literally building the castle, from the doodads available in the UTM. (Wait should I have told you that)
    Good?

    Creation
    Events
    Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
    Multiboard - Create a multiboard with 4 columns and (1 + GEN_NumberOfPlayers) rows, titled ===========
    Set GEN_MultiBoard = (Last created multiboard)
    Multiboard - Set the text for GEN_MultiBoard item in column 1, row 1 to <Empty String>
    Multiboard - Set the text for GEN_MultiBoard item in column 2, row 1 to Creep Kills (Boss K...
    Multiboard - Set the text for GEN_MultiBoard item in column 3, row 1 to Deaths
    Multiboard - Set the text for GEN_MultiBoard item in column 4, row 1 to Neutral Kills
    Multiboard - Set the display style for (Last created multiboard) item in column 0, row 1 to Show text and Hide icons
    Multiboard - Set the width for GEN_MultiBoard item in column 1, row 1 to 10.00% of the total screen width
    Multiboard - Set the width for GEN_MultiBoard item in column 2, row 1 to 15.00% of the total screen width
    Multiboard - Set the width for GEN_MultiBoard item in column 3, row 1 to 5.00% of the total screen width
    Multiboard - Set the width for GEN_MultiBoard item in column 4, row 1 to 10.00% of the total screen width
    Set GEN_RowNumber = 2
    For each (Integer A) from 1 to 6, do (Actions)
    Loop - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    ((Player((Integer A))) slot status) Equal to Is playing
    ((Player((Integer A))) controller) Equal to User
    Then - Actions
    Set GEN_PlayerRow[(Integer A)] = GEN_RowNumber
    Multiboard - Set the text for GEN_MultiBoard item in column 1, row GEN_PlayerRow[(Integer A)] to (Name of (Player((Integer A))))
    Multiboard - Set the text for GEN_MultiBoard item in column 2, row GEN_PlayerRow[(Integer A)] to ((String(MuB_CreepKills[(Integer A)])) + (( + ((String(MuB_BossKills[(Integer A)])) + ))))
    Multiboard - Set the text for GEN_MultiBoard item in column 3, row GEN_PlayerRow[(Integer A)] to (String(MuB_Deaths[(Integer A)]))
    Multiboard - Set the text for GEN_MultiBoard item in column 4, row GEN_PlayerRow[(Integer A)] to (String(MuB_NeutralKills[(Integer A)]))
    Multiboard - Set the display style for (Last created multiboard) item in column 0, row GEN_PlayerRow[(Integer A)] to Show text and Hide icons
    Multiboard - Set the width for GEN_MultiBoard item in column 1, row GEN_PlayerRow[(Integer A)] to 10.00% of the total screen width
    Multiboard - Set the width for GEN_MultiBoard item in column 2, row GEN_PlayerRow[(Integer A)] to 15.00% of the total screen width
    Multiboard - Set the width for GEN_MultiBoard item in column 3, row GEN_PlayerRow[(Integer A)] to 5.00% of the total screen width
    Multiboard - Set the width for GEN_MultiBoard item in column 4, row GEN_PlayerRow[(Integer A)] to 10.00% of the total screen width
    Set GEN_RowNumber = (GEN_RowNumber + 1)
    Else - Actions
    Multiboard - Minimize GEN_MultiBoard
    Multiboard - Maximize GEN_MultiBoard
    ----------
    I did. xD
    ----------
    Gws lol.


    ----------
    Howdy ILH? :cgrin:
    ----------
    I'm fine thanks! :)


    ----------
    Bring DivineLight back please.
    ----------
    Why me.
    well okay

    im good and not good(School starts tommorow) and working on new project im sure gonna finish
    And ive finished my skywrath mage's spellpack :p
    How are you i see you hang on WHEZ. I started also yesterday :p
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top