#Random Item Value

18 messages · Page 1 of 1 (latest)

loud wraith
#

I'm new to the editor but familiar with triggers. I've been looking through guides and I can't seem to find the information I need.
I'm trying to make an event happen after 10-30 seconds. Then it randomizes the time needed and starts again.
The way I had in mind was setting a random item value then counting it down, but I don't know how to set an item id's value let alone make it random.

median stream
#

tells you how to set an item id's value

#

now for making it random, that would be quite tedious

#

i think what you can do is have like 20 pickup triggers, each making your item id from 10 to 30, then give them each a group, spawn triggered, multi triggered

#

use the advanced random trigger to randomly pick out one of these 20 pickup triggers

#

just set the chance to 5 and then enter in the groups of the pickup triggers 1 by 1

#

activate the random trigger once item id = 0

#

and have a loop of a pickup trigger going -1

#

itll constantly go down, but every time it reaches 0, it picks a random pickup trigger that gives it a random value

loud wraith
#

would the time trigger work for that at all?

median stream
#

idk how the time stuff works yet

#

you can wait for more people to respond to this to see if they know how to do it with time trigger

loud wraith
#

okay, thanks for the help with the other stuff though

median stream
#

np

loud wraith
#

Oh I'll just use the +- thing in the spawn loop for the time randomization

loud wraith
# median stream np

do you know how I could check if the player is looking in the direction of an item in platformer mode?

median stream
#

uhhhhh