• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Bank

Status
Not open for further replies.
Level 3
Joined
Nov 7, 2009
Messages
18
I'm thinking about a wow hero inventory and making him into a hero and when your main hero enters a town the Bank/hero/building would teleport to the town and you could use him as a bank.
Great idea, well im working on it right now.
soooo i would like to hear your opinions.
:thumbs_up:
 
maybe you can make a seperate area for each players hero so that, when he enters a special room in the bank, he will be teleported to his area. that way he can drop off any items he wants and can return there as needed. also in the bank you should have a building that sells different gold coins. like a gold coin that costs 1000 gold coins and when used gives the player 1000 coins back. that way he can store it in his "vault" as well. please let me know if that was useful.
 
i like you idea so, i would say
unit enters region
conditions
hero
player 1
action
move unit instantly to region ...
i like, any ways i was having trouble with the wow inventory due to i know nothing about jass or what ever it is.
 
i see well glad i could help. :). but yeah that is the basic idea. you could do this:
  • Bank
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Entering unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of Region 001 <gen>)
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Entering unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of Region 002 <gen>)
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Entering unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of Region 003 <gen>)
        • Else - Actions
          • Do nothing
Then you can do another trigger to move the unit back to region 000 when he enters the corresponding region.
 
btw if you wanted it in jass you should have gave it the jass prefix cause i have VERY little experience and probably wouldn't have answered in that case. (also can you add to my rep? im trying to earn it so if you feel i earned it please add it.)
 
i see well glad i could help. :). but yeah that is the basic idea. you could do this:
  • Bank
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Entering unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of Region 001 <gen>)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Entering unit)) Equal to Player 2 (Blue)
            • Then - Actions
              • Unit - Move (Entering unit) instantly to (Center of Region 002 <gen>)
              • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Owner of (Entering unit)) Equal to Player 3 (Teal)
                    • Then - Actions
                      • Unit - Move (Entering unit) instantly to (Center of Region 003 <gen>)
                    • Else - Actions

Better.
 

but it still leaks locations.

@kennyman94

do nothing does not leak, its just that it DOES NOTHING so you really don't need to include them... and Maker's script is better though you still need to clean leaks...
  • Bank
  • Events
    • Unit - A unit enters Region 000 <gen>
  • Conditions
    • ((Entering unit) is A Hero) Equal to True
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Owner of (Entering unit)) Equal to Player 1 (Red)
      • Then - Actions
        • Set Temp_Loc = Center of Region 001 <gen>
        • Unit - Move (Entering unit) instantly to (Temp_Loc)
        • Custom Script - Call RemoveLocation(udg_Temp_Loc)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Entering unit)) Equal to Player 2 (Blue)
            • Then - Actions
              • Set Temp_Loc = Center of Region 002 <gen>
              • Unit - Move (Entering unit) instantly to (Temp_Loc)
              • Custom Script - Call RemoveLocation(udg_Temp_Loc)
              • Else - Actions
there, I think its okay..
 
Status
Not open for further replies.
Back
Top