Community FAQ

From Unofficial EFPSE wiki Extended
Revision as of 22:32, 13 August 2023 by 120.159.177.74 (talk)
Jump to navigation Jump to search

Is there a way to randomize values?

Yes. To randomize a value you use variable=RANDOM(0,100). For example

HealPlayer=RANDOM(8,35)

player heal $HealPlayer

entity delete me

map return

This will use a local variable that will heal the player when collected for a random value between 8 and 35 health points.