| 06-09-2004, 09:44 AM | #1 |
I'm wondering how he did the scroll.... I mean.. when all requirments are collected, and when u buy that scroll, it will automatically change to an item. But can buy it withouht lumber ?! Just wanted to know how he count those items... For example: Book - Requirments: Paper, Treant Skin How to check the above? I mean.. if u play DotA allstars, u'll know what i mean @@ |
| 06-09-2004, 02:01 PM | #2 |
I think this is what you are looking for, I'm not home right now or I would whip up, but: Hero buys item equal to Book If Hero is holding item Paper AND item Treant Skin Then remove item Paper AND item Treant Skin Else remove item Book from Hero AND set Hero's gold to Gold + [cost of item Book] Just hunt around for the right triggers. All you need to do is run a check to see if the hero [or his stash] is holding the required items. If he's not, then just take away the item and refund the hero. |
| 06-09-2004, 02:51 PM | #3 | |
Quote:
If u're back.. plz write it clearly.. Using lumber will be easier when the game doesn't supply lumer right? And how to check? Plz write it down clearly.. Cos my trigger is not so good... Thx ! |
| 06-10-2004, 04:04 PM | #4 |
Can any1 help me? Cos i dun quite understand... what he said... Sry... |
| 06-10-2004, 07:13 PM | #5 |
I don't like to make triggers for simple things, as you should learn this. And this is insanely easy in terms of WC3 triggering. But it looks like you need help, so here. If you want to use lumber, simply do the following: When picking up item. Code:
Pick Up Item
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 Trent Skin
Then - Actions
Player - Set (Owner of (Item being manipulated)) Current lumber to (((Owner of (Item being manipulated)) Current lumber) + 1)
Floating Text - Create floating text that reads Picked up Trent Skin! at (Position of (Item being manipulated)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 32.00 towards 90.00 degrees
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Else - Actions
Do nothingWhen dropping the item. Code:
Drop Item
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 Trent Skin
Then - Actions
Player - Set (Owner of (Item being manipulated)) Current lumber to (((Owner of (Item being manipulated)) Current lumber) - 1)
Else - Actions
Do nothingWhen the hero has both items and buys something with them. Code:
Buy Item
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Book
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Item being manipulated)) Current lumber) Greater than or equal to 2
Then - Actions
Item - Remove (Item carried by (Hero manipulating item) of type Mask of Death)
Item - Remove (Item carried by (Hero manipulating item) of type Mask of Death)
Player - Set (Owner of (Item being manipulated)) Current lumber to (((Owner of (Item being manipulated)) Current lumber) - 2)
Else - Actions
Item - Remove (Item being manipulated)
Floating Text - Create floating text that reads You need Trent Skin... at (Position of (Item being manipulated)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)I didn't check them for errors, and I didn't test them. Don't get angry if they don't seemingly work, I whipped them up in some spare time I had. Play around with them, learn how to use the editor. Good luck. |
| 06-11-2004, 07:31 AM | #6 |
Thx for the kind reply.. The 1st and 2nd u can dun need to put it up... And ofcos.. u didn't help at all.. Becos the main point didn't work and tts the last trigger u typed :( I hope some1 else will help.. Cos this trigger is making me mad... |
| 06-13-2004, 09:08 AM | #7 |
NO1 knows? Sigh... i tot some1 would help... Man.. i really need help... Scroll up and see what help i need... PLZ HELP! |
| 06-13-2004, 09:24 AM | #8 | |
Quote:
OK, here's the deal: In DotA allstars, you don't have to buy the scrolls; they are only there so you can read what you need. That is why they cost lumber, so you can't buy them, because you don't need to. Now here is a trigger I used for the same thing in my map EoW. What it does is, when a hero acquires one of the items required for the merging, the trigger checks if he has the other two and if he does, then it removes them and adds the new item to the hero. This means, of course, that you need three triggers, one for every item. It would be simpler if you only made one trigger that runs whenever a hero acquires any item, and put the check for all three items into the actions; that would mean that you would need a new loop and a new variable for it. Anyway, here's the trigger: Code:
Avatar of Aterna1
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to |cffff8c00Aterna's Cloak|r
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |cffff8c22Aterna's Runestone Necklace of Power|r
Then - Actions
For each (Integer B) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer B))) Equal to |cffff8c00Aterna's Staff of Teleportation|r
Then - Actions
Item - Remove (Item being manipulated)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer B))
Hero - Create |cffff8c55Avatar of Aterna|r and give it to (Hero manipulating item)
Item - Make (Last created item) Undroppable
Else - Actions
Else - Actions
Do nothing |
| 06-13-2004, 11:19 AM | #9 | |
Quote:
Ok... that trigger works! and THX.. But i can't figure out.. when i press that btn... "U have not enuff lumber" will come out so is that text.. How to remove this? Or how do i cancel what it say? And why do i need to put for each interger 1 to 6? Whats tt for? |
| 06-13-2004, 11:32 AM | #10 |
Ok... it wun work.. when i set the cost to lumber 1... Below is my map... if any1 got time, plz edit it and upload it here again. Thx. |
| 06-13-2004, 06:16 PM | #11 |
Allright, I looked through your map, here's the deal: If you look at the buy trigger, it only works if the item a hero acquires is scroll of town portal (because its in the conditions of the trigger). If you delete the condition and only leave the event and actions unchanged, then it should work, it should remove the two items and give you 1 lumber. However, wouldn't it be a lot simpler if it just gave you the scroll of town portal instead of that lumber? That way, you can be sure the hero doesn't use the lumber for something else. So, instead of giving the player lumber, give the hero the new item (it's actions-hero-create item for hero). As I said before, you don't need lumber, it's in the cost of the scroll precisely because it is intended that you don't buy the scroll, you just read what's on it. The scroll in DotA isn't there for buying, it is there only so that players can read what they must do to get an item. So, to make your trigger work ok, remove that condition it has that the item being manipulated must be the scroll of town portal; and, instead of giving the player lumber, give the item you want the hero to get directly to him. |
| 06-14-2004, 06:08 PM | #12 |
Dont attack me for this but....Why dont you go make a TD first? Lol nvm.... |
| 06-15-2004, 06:36 AM | #13 |
Hmmm.. i figured it out all! I tot the recipe is "when a player selects the recipe" it will change the recipe to the item.. But i was wrong.. The recipe was only a display, as u said.. And when a player get those require item, it will automatically change to another! Thx guys! To Kejos: To me, TD is harder, but AoS is simper in anyways... TD u need to make so many custom units, so many custom towers etc... And i made maps b4, like Revenge of the elves (cutscence) Although is dead now... Cos i lost the map after i reformated the comp, and i also lost the backup file (diskett)... I also made others map, mostly dead but 2 of them manage to publish out... Hmm... Anyway, THX o_O |
| 06-15-2004, 07:57 AM | #14 |
Ok =) In my opinion TD's are the worst easiest and most boring map you can make. So i usually just say stuff like that when i think ppl make too hard stuff but... maybe i udnerestimated (sp?) you :D gl with ur map |
