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

[Trigger] In-Game terrain changeing

Status
Not open for further replies.
Level 3
Joined
Mar 27, 2007
Messages
23
So far i have this:
  • Terrain set
    • Events
      • Player - Player 1 (Red) types a chat message containing terrain as An exact match
      • Player - Player 2 (Blue) types a chat message containing terrain as An exact match
      • Player - Player 3 (Teal) types a chat message containing terrain as An exact match
      • Player - Player 4 (Purple) types a chat message containing terrain as An exact match
      • Player - Player 5 (Yellow) types a chat message containing terrain as An exact match
      • Player - Player 6 (Orange) types a chat message containing terrain as An exact match
      • Player - Player 7 (Green) types a chat message containing terrain as An exact match
      • Player - Player 8 (Pink) types a chat message containing terrain as An exact match
      • Player - Player 9 (Gray) types a chat message containing terrain as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing terrain as An exact match
    • Conditions
      • (Substring((Entered chat string), 1, 7)) Equal to terrain
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Triggering player) of type AoDRP Spawner) and do (Actions)
        • Loop - Actions
          • If ((Substring((Entered chat string), 9, 13)) Equal to snow) then do (Set Terrainworks[(Player number of (Triggering player))] = Lordaeron Winter - Snow) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 13)) Equal to dirt) then do (Set Terrainworks[(Player number of (Triggering player))] = Lordaeron Summer - Dirt) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 14)) Equal to grass) then do (Set Terrainworks[(Player number of (Triggering player))] = Lordaeron Summer - Grass) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 13)) Equal to rock) then do (Set Terrainworks[(Player number of (Triggering player))] = Lordaeron Fall - Rock) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 13)) Equal to lava) then do (Set Terrainworks[(Player number of (Triggering player))] = Dungeon - Lava) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 12)) Equal to ice) then do (Set Terrainworks[(Player number of (Triggering player))] = Northrend - Ice) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 13)) Equal to sand) then do (Set Terrainworks[(Player number of (Triggering player))] = Barrens - Desert) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 15)) Equal to poison) then do (Set Terrainworks[(Player number of (Triggering player))] = Felwood - Poison) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 14)) Equal to vines) then do (Set Terrainworks[(Player number of (Triggering player))] = Ashenvale - Vines) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 15)) Equal to cobble) then do (Set Terrainworks[(Player number of (Triggering player))] = Village - Cobble Path) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 20)) Equal to whitemarble) then do (Set Terrainworks[(Player number of (Triggering player))] = Cityscape - White Marble) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 20)) Equal to blackmarble) then do (Set Terrainworks[(Player number of (Triggering player))] = Dalaran - Black Marble) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 14)) Equal to stone) then do (Set Terrainworks[(Player number of (Triggering player))] = Village Fall - Stone Path) else do (Do nothing)
          • If ((Substring((Entered chat string), 9, 15)) Equal to leaves) then do (Set Terrainworks[(Player number of (Triggering player))] = Ashenvale - Leaves) else do (Do nothing)
      • Unit Group - Destroy unit group (Last created unit group)
  • Buildable terrain
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • (Unit-type of (Constructing structure)) Equal to OMGZ TERRAINZORZGS
    • Actions
      • Environment - Change terrain type at (Position of (Constructing structure)) to Terrainworks[(Player number of (Owner of (Constructing structure)))] using variation -1 in an area of size 1 and shape Square
      • Unit - Remove (Constructing structure) from the game
and they do not work in game, if someone would point out what i've done wrong i would be thankful
 
Last edited:
Status
Not open for further replies.
Top