• 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.

2 map questions

Status
Not open for further replies.
Level 22
Joined
Jan 10, 2005
Messages
3,426
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.
 
Level 22
Joined
May 11, 2004
Messages
2,863
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
 
Level 6
Joined
May 13, 2005
Messages
164
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....
 
Level 6
Joined
May 13, 2005
Messages
164
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
 
Status
Not open for further replies.
Top