1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.
sonofjay
Joined:
Oct 28, 2011
Messages:
4,241
Albums:
12
Birthday:
Nov 27, 1995 (Age: 24)
    1. RaijinSpark
    2. RandomPogi
    3. Animalpower
      Animalpower
      Nice review, but why did you add 10/10 at beginning?
    4. RandomPogi
      RandomPogi
      Ok, thanks, I'll wait.
    5. Ken-E
      Ken-E
      Feel free to PM me about the map, I am always a willing tester for any map. But I am really specialized on melee I guess.
    6. Ken-E
      Ken-E
      Well, probably, although I didn't wanted it to be dead like the last group I created. We need to set ourselves as an example to everyone. We should make maps and make easter eggs about it.

      EDIT: You must have 250 rep+ for you to give 2+ rep and the list go on and on.
    7. zlowly
      zlowly
      aye - aye sir...
    8. maddeem
      maddeem
      Yeah, sure I just need to fix a few things in MineralZ :S
    9. The Wizard
    10. Bugz
      Bugz
      I've look at it tomorrow.
    11. Bugz
      Bugz
      Main Thread, it looks abit "unpro".
    12. Bugz
      Bugz
      If you want, i can help out updating your "Ghost Project". I got quite the experience with such:)
    13. Hashjie
      Hashjie
      Can't help you with that bro, have a good night :P
    14. Hashjie
      Hashjie
      Wait, didn't you want to sell items instead of units?
      And yes, that's correct.

      Look at the Initialize Items trigger and you'll see that Food_Cost is set for each item you put in the array.
    15. Hashjie
      Hashjie
      Decrease food
      Events
      Unit - A unit Sells an item
      Conditions
      Actions
      For each (Integer A) from 1 to MaxArray, do (Actions)
      Loop - Actions
      If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
      (Item-type of (Sold Item)) Equal to (==) Item_Type[(Integer A)]
      Then - Actions
      Player - Set (Owner of (Buying unit)) Food used to (((Owner of (Buying unit)) Food used) - Food_Cost[(Integer A)])
      Else - Actions


      Just make sure you set the gold and lumber cost for the items to 0 and put in the description how much food the items cost.
      You also might want to use a variable for the for loop if you're already using Integer A in one of your triggers.

      (Haven't tested it yet but I suppose this works) :P
    16. Hashjie
      Hashjie
      Would something like this suffice?



      Init Items
      Events
      Map initialization
      Conditions
      Actions
      Set Item_Type[1] = Claws of Attack +15
      Set Food_Cost[1] = 1
      Set Item_Type[2] = Crown of Kings +5
      Set Food_Cost[2] = 3
      Set Item_Type[3] = Kelen's Dagger of Escape
      Set Food_Cost[3] = 2
      Set Item_Type[4] = Mask of Death
      Set Food_Cost[4] = 1
      Set Item_Type[5] = Orb of Frost
      Set Food_Cost[5] = 1
      Set Item_Type[6] = Ring of Protection +5
      Set Food_Cost[6] = 2
      Set Item_Type[7] = Tome of Power
      Set Food_Cost[7] = 3
      Set Item_Type[8] = Blood Key
      Set Food_Cost[8] = 1
      Set Item_Type[9] = Cheese
      Set Food_Cost[9] = 2
      Set Item_Type[10] = Empty Vial
      Set Food_Cost[10] = 1
      Set MaxArray = 10
    17. Sverkerman
      Sverkerman
      What are the custom paths?
    18. Sverkerman
      Sverkerman
      Yeeeeeeeeeeees the left one omg gimmegimmegimmegimme
    19. Peacehagen
      Peacehagen
      No worries, thanks for all your help :)
    20. Vengeancekael
      Vengeancekael
      Yes it's allowed.
  • Loading...
  • Loading...
  • About

    Birthday:
    Nov 27, 1995 (Age: 24)
    Current Project:
    Idk yet
    WarCraft 3 Realm:
    Northrend (Europe)
    Favourite Race:
    Night Elf
    Favorite Organization/Clan:
    Frostwolf

    Interact

    Content:
    Skype:
    SonofJay
    Yahoo! Messenger:
    Flord
  • Loading...
  • Loading...