Warcraft III resources & community, 2003–2006 · archived

2 map questions

10 posts
#1

2 map questions

1) If u play the 'stand gold' animation (with triggers) and then order that peasant to move somewhere, does it play the 'walk' or the 'walk gold' animation?

2) If I want 1 random item created at a Rect, but I dunno how. I first thought this was the right way:

Events: ........
Conditions: ........
Actions:
If: Random Integer bewteen 100 and 1 is 50 or less
Then: create 1 ....
Else: If: Random Integer between... etc, etc...

But then more items are created. I want an item to be created like an item table. Just 1 item but all the items have a percentage to be created.
#2
1. If you have a unit perform a special animation done through the anim trigger, it will stop whatever anim it is doing and resume normal walking animations once you order it to move.

2. If there is a limited # of items that are going to be made that way, I suggest warping pre-existing items (set off to the side of the map and hidden in a specific region, so you can just unhide and pick a "random item in region" and move it to the position of the dying unit. Thats the best way I can think of of making it random but equal.
-VGsatomi
#3
1. Use "Add animation tag to unit" action. (Give "gold" tag)
#4
1) Thnx both. How many tags are there?

2) Thnx again
#5
Eh, i thought u knew about this coz u replied in the other post? Create an integer and put the value to 100.

Event-
...

Conditions-
...

Actions-
Set (the created integer) to random integer between 1 and 5 depending on how many items u want.

If: (the created integer) equal to 1
Then: create (wateva item) on (region)
Else: do nothing

If: (the created integer) equal to 2
Then: create (wateva item) on (region)
Else: do nothing

and so on....
#6
No, this is different. Not all items must have 1% to drop. Some must have 5% others 15%
#7
Just put some of the items have more chance to be dropped by using more integers for it. Lets say u want tome of strength to be dropped 2 out of 5 times:

Events-
...
Conditions-
...
Actions-
Set (the created integer) to random integer between 1 and 5.

If: (the created integer) equal to 1
Then: create (tome of str) on (region)
Else: do nothing

If: (the created integer) equal to 2
Then: create (tome of str) on (region)
Else: do nothing

If: (the created integer) equal to 3
Then: do nothing
Else: do nothing

If: (the created integer) equal to 4
Then: do nothing
Else: do nothing

If: (the created integer) equal to 5
Then: do nothing
Else: do nothing
#8
But then u need 100 triggers (100 procent) I still think VG's way is the best, but thnx anyway :)
#9
:x You do NOT need 100 of that actions :P
2 out of 5 is 40% if u ever studies primary school mathematics...
#10
8) I know...

Buty if u have items that have 13% chance to drop and another one has 28% then u HAVE to use the 100% (cant use 2.8 etc)