- Reaction score
- 1,697
I'm making a trigger that can make a random number between 10 to 30 creeps appearing in a room during a particular event.
The event is:
I made this trigger, but I wondered if it works:
Reason is, I'm currently not at my computer. Those are copied-pasted from a text document, which was copied-pasted from WE yesterday.
Any tips, suggestions, etc. are welcome. Thanks in advance.
The event is:
I need ideas on how to make creeps appear randomly. Just ideas.When a hero walks in, it sets up a random number.
If the random number matches, or conditions equals true, then monsters appear.
I made this trigger, but I wondered if it works:
Trigger:
- Monster Room
- Events
- Unit - A unit enters Monster House 1 <gen>
- Conditions
- (Triggering unit) Equal to HeroUnit[(Player number of (Owner of (Triggering unit)))]
- Actions
- Trigger - Turn off (This trigger)
- For each (Integer A) from (Random integer number between 1 and 10) to (Random integer number between 25 and 50), do (Actions)
- Loop - Actions
- Set TempPoint[500] = (Random point in Monster House 1 <gen>)
- Unit - Create 1 UnitType[(Random integer number between 0 and 11)] for Neutral Hostile at TempPoint[500] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack HeroUnit[(Player number of (Owner of (Triggering unit)))]
- Custom script: call RemoveLocation(udg_TempPoint[500])
- Loop - Actions
- Events
Reason is, I'm currently not at my computer. Those are copied-pasted from a text document, which was copied-pasted from WE yesterday.
Any tips, suggestions, etc. are welcome. Thanks in advance.