• 🏆 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!

[Trigger] Item respawn help + rep

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
  • Item Rune spawn
    • Events
      • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RuneSpawned Equal to False
        • Then - Actions
          • Set RuneSpawned = True
          • Set RuneIntegerRegionRandom = (Random integer number between 1 and 2)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RuneIntegerRegionRandom Equal to 1
            • Then - Actions
              • Set RuneRegionSpawn[1] = Item Rune Spawn Left <gen>
            • Else - Actions
              • Set RuneRegionSpawn[1] = Item Rune Spawn Right <gen>
          • Set RuneIntegerRandom = (Random integer number between 1 and 5)
          • Set TempLoc = (Center of RuneRegionSpawn[1])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RuneIntegerRandom Equal to 1
            • Then - Actions
            • Else - Actions
              • Item - Create Rune of Speed at TempLoc
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RuneIntegerRandom Equal to 2
                • Then - Actions
                  • Item - Create Rune of Illusion at TempLoc
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • RuneIntegerRandom Equal to 3
                    • Then - Actions
                      • Item - Create Rune of Greater Mana at TempLoc
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • RuneIntegerRandom Equal to 4
                        • Then - Actions
                          • Item - Create Rune of Greater Healing at TempLoc
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • RuneIntegerRandom Equal to 5
                            • Then - Actions
                              • Item - Create Rune of Damage at TempLoc
                            • Else - Actions
          • Custom script: call RemoveLocation(udg_TempLoc)
        • Else - Actions
  • Item Rune used
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Rune of Speed
          • (Item-type of (Item being manipulated)) Equal to Rune of Illusion
          • (Item-type of (Item being manipulated)) Equal to Rune of Greater Mana
          • (Item-type of (Item being manipulated)) Equal to Rune of Greater Healing
          • (Item-type of (Item being manipulated)) Equal to Rune of Damage
    • Actions
      • Set RuneSpawned = False
They respawn on same place. If some one could have a look in the map would be nice. Because i have some brain problems :( Some one poisoned me. If not i would try my self if i can. cheers
 
Ok, so:
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set ItemTypes[1] = Item1
    • Set ItemTypes[2] = Item2
    • Set ItemTypes[3] = Item3
    • Set ItemTypes[4] = Item4
    • Set ItemTypes[5] = Item5
    • Set Regions[1] = Region 000 <gen>
    • Set Regions[2] = Region 001 <gen>
  • Custom script: local integer i = 0
  • Set RandomIntegerItems = (Random integer number between 1 and 5)
  • Set RandomIntegerLoc = (Random integer number between 1 and 2)
  • Set Point1 = (Center of Regions[RandomIntegerLoc])
  • For each (Integer A) from 1 to RandomIntegerItems, do (Actions)
    • Loop - Actions
      • Custom script: set i = i + 1
      • Custom script: call CreateItemLoc (udg_ItemTypes[i], udg_Point1)
  • Custom script: call RemoveLocation (udg_Point1)
 
Level 19
Joined
Feb 15, 2008
Messages
2,184
can i post map and u try fix it. Im so wierdi n my head after the thing that hapend. I would easily do it if i could think normal. :( it sucks i h8 this god who dont like me. Bastard! Why did i get this shit. Hmm anyway il try if u cant do it. But will take at least 2houers.
 
Status
Not open for further replies.
Top