• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Buy/Sell house

Status
Not open for further replies.
Level 7
Joined
Sep 5, 2006
Messages
333
first make a dummy item call house1 , then a trigger call house and a player variable call house , make it array to total number of house you want to make. then here's the trigger, just copy the action as many times as you like and change the variable house[1] and item house 1 onward. then made a shop that sell the house1.
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to House1
        • Then - Actions
          • Set House[1] = (Owner of (Triggering unit))
        • Else - Actions
If you want the player to be able to open the door then try this
  • Untitled Trigger 002
    • Events
      • Player - Player 1 (Red) types a chat message containing -open house1 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -open house1 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -open house1 as An exact match
      • Player - Player 4 (Purple) types a chat message containing -open house1 as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -open house1 as An exact match
      • Player - Player 6 (Orange) types a chat message containing -open house1 as An exact match
      • Player - Player 7 (Green) types a chat message containing -open house1 as An exact match
      • Player - Player 8 (Pink) types a chat message containing -open house1 as An exact match
      • Player - Player 9 (Gray) types a chat message containing -open house1 as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -open house1 as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -open house1 as An exact match
      • Player - Player 12 (Brown) types a chat message containing -open house1 as An exact match
    • Conditions
      • House[1] Equal to (Triggering player)
    • Actions
      • Destructible - Open {the door, replaace this}
if you want the play to lost the house when he lost the item(like the first trigger do copy the action....)
  • Untitled Trigger 001 Copy
    • Events
      • Unit - A unit Loses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to House1
        • Then - Actions
          • Set House[1] = none
        • Else - Actions
P.S You need 10 rep to +rep some one or you will just + 0 rep....
 
Level 9
Joined
May 5, 2007
Messages
253
Maybe this will work...
  • Unit - Seller Sells a unit
  • (Selling unit) Equal to Seller <gen>
  • (Unit-type of (Sold unit)) Equal to Buy House
  • Unit - Change ownership of seller to (Owner of (Sold unit)) and Change color
  • Unit - Change ownership of Items to (Owner of (Sold unit)) and Change color
  • Unit - Change ownership of House deeds to (Owner of (Sold unit)) and Change color
  • Unit - Hide Seller
  • Unit - Remove (Sold unit) from the game
  • Player - Player 1 (Red) types a chat message containing -open house as An exact match
  • (Owner of House Deed Equal to (Triggering player)
  • Destructible - Open Gate
 
Level 11
Joined
Apr 6, 2008
Messages
760
Use the
edit.gif
button plz
 
Status
Not open for further replies.
Top