#Script for igniting entities with a chance

1 messages · Page 1 of 1 (latest)

hybrid steppe
#

Hi guys, I'm new to this, can you please help me make a script so that there is a 10% chance that when a player or mob is hit, the player or mob will catch fire for a certain amount of time?

hybrid steppe
#

I have this, but it doesn't seem right because it gives an error.

hybrid steppe
silk orbit
#

sure, I see a couple of issues, let me list them

hybrid steppe
#

okey

silk orbit
#
  1. The event is only called when a player is damaged (of player) thus will not work for mobs
  2. you have two : after the event
  3. chance needs to be chance of x%
  4. you can't check multiple conditions in one line, the check is also not needed, what else is there other than players and mobs?
  5. you can't set an entity's fire, you can, however, ignite them.
hybrid steppe
#

I need to set fire to the target.

#

o no

drifting wedge
#

This is 3 lines, you can check the docs (https://skripthub.net/docs) for an event to detect when an entity is damaged, and an effect to ignite