SpawnEnemy lore (scope and what not)
yo, please help me fix this 🙂
(it went as .txt sorry)
10 Replies
One thing to look at is this line
int level = ed.Next(0, 3);
Look at the docs for how Random.Next works
https://learn.microsoft.com/en-us/dotnet/api/system.random.next?view=net-8.0#system-random-next(system-int32-system-int32)
That'll be returning a value between 0 and 2, is that what you'd expected?Interesting, didn't know it worked like that, i kinda just went through the first time
I think it's right now
Not quite, https://learn.microsoft.com/en-us/dotnet/api/system.random.next?view=net-8.0#system-random-next(system-int32)
That one also returns a value between 0 and the value you gave it (exclusively, meaning 2)
int level = ed.Next(1, 4)
it's gotta be it
At least it's kinda working
That's right yep
Maybe i have a defective gene, it was pretty obvious answer
Think i moved from that part
deciding whats on next
Hey!
I was trying to make the combat system, but or it doesn't run or in case 1: it justa loops
idk why it's .txt
think its too big
if you want i can send by parts