Random loot and damage. Need Help!

Get help using Construct 2

Post » Tue Jul 29, 2014 5:49 am

Hi im working on a game that has randomized loot with randomized stats and im having trouble giving each dropped item random damage, range and fire rate. The first drop works fine but then when a second one drops it changes the first ones stats because I use a random number generator for all drops. I was looking into unique ids but I have no idea how to implement this. If you guys need any more info please feel free to comment.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 4
Reputation: 175

Post » Tue Jul 29, 2014 6:19 am

Make a new event

common item -on created
common itemid = 1
-- set to random actions

and remove the common itemid=1 subevent from the dropevent..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jul 29, 2014 5:38 pm

LittleStain wrote:Make a new event

common item -on created
common itemid = 1
-- set to random actions

and remove the common itemid=1 subevent from the dropevent..


Thanks for the speedy reply I did what you said but cant get it to generate numbers anymore I was having this problem earlier and it seems like an issue with detecting when the common item is spawned.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 4
Reputation: 175


Return to How do I....?

Who is online

Users browsing this forum: David181 and 14 guests