- Joined
- Nov 5, 2008
- Messages
- 536
Add a chance that an effect happens at a weapon?
I try to make an ability/behaviour similar to the concussive shells that marauders have. Each time the marauder attacks the target becomes slowed. I would like to add a chance of 25% that either effect A, B, C or nothing happens.
There is 25% chance that the attack makes the target slowed. (for example)
25% chance that the target becomes poisoned (for example)
25% that something else happens..
25% that nothing at all happens..
It might sound like a silly ability, but I actually need it for an important thing in my map.
I assume this can be done in the data editor but I can´t find a way to make only one random of several effects happen.
Any ideas?
I try to make an ability/behaviour similar to the concussive shells that marauders have. Each time the marauder attacks the target becomes slowed. I would like to add a chance of 25% that either effect A, B, C or nothing happens.
There is 25% chance that the attack makes the target slowed. (for example)
25% chance that the target becomes poisoned (for example)
25% that something else happens..
25% that nothing at all happens..
It might sound like a silly ability, but I actually need it for an important thing in my map.
I assume this can be done in the data editor but I can´t find a way to make only one random of several effects happen.
Any ideas?
Last edited: