| 08-11-2004, 05:17 PM | #1 |
I want to know how is best to create crafting system,can anyone tell me that? |
| 08-11-2004, 05:47 PM | #2 | |
Quote:
Uhm ok... not a lot of specifics there so I'll just give you a basic layout... Code:
Event - A unit acquires an item
Conditions - none
Action(s) - If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item carried by Triggering Unit <gen> in slot 1)) Equal to Item1
(Item-type of (Item carried by Triggering Unit <gen> in slot 2)) Equal to Item1
(Item-type of (Item carried by Triggering Unit <gen> in slot 3)) Equal to Item1
(Item-type of (Item carried by Triggering Unit <gen> in slot 4)) Equal to Item1
(Item-type of (Item carried by Triggering Unit <gen> in slot 5)) Equal to Item1
(Item-type of (Item carried by Triggering Unit <gen> in slot 6)) Equal to Item1
Or - Any (Conditions) are true
Conditions
(Item-type of (Item carried by Triggering Unit <gen> in slot 1)) Equal to Item2
(Item-type of (Item carried by Triggering Unit <gen> in slot 2)) Equal to Item2
(Item-type of (Item carried by Triggering Unit <gen> in slot 3)) Equal to Item2
(Item-type of (Item carried by Triggering Unit <gen> in slot 4)) Equal to Item2
(Item-type of (Item carried by Triggering Unit <gen> in slot 5)) Equal to Item2
(Item-type of (Item carried by Triggering Unit <gen> in slot 6)) Equal to Item2
Then - Actions
Item - Remove (Item carried by Triggering Unit <gen> of type Item1)
Item - Remove (Item carried by Triggering Unit <gen> of type Item2)
Hero - Create Item3 and give it to Triggering Unit
Else - Actions
Do nothing Ok, that is all for creating one item by having 2 others, you should be able to figure out how to add more items and special effects and all that fun stuff on your own. Oh, and if you don't want to have to a seperate trigger for each item you can simply create another If All Conditions are True action in the same trigger. |
| 08-11-2004, 05:55 PM | #3 |
Oh, and by the way... I asked this exact same question a few days ago so the answer is in the forums. Try using a Search incase you can get your answer without having to post. |
