Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-06-13 08:19:23

koozing
Member
Joined: 2015-10-01
Posts: 16

Help/Advice needed

So eh where do i begin...

I have something like this: when player hit a certain key this will trigger a sequence of block placing. The first part of the sequence is with a bunch of fire and then, pause for 700 milisec. After this all the fire will be replaced with dots. All of this will be done in a different thread after the sequence is triggered and they will be done by the bot.

Goal: What i am trying to do is to increase the stats of the guy who triggered the sequence, when other players get killed by the fire part.

Problem: The problem is when i use 700 milisec delay i coulnd't get any result, but by increasing this to 12000 milisec (The fire lasts way longer) i could detect the kill with my current system.

This was done in a 1 vs 1 test so i can assume with more people the delay would be even longer(?)

Is there anyway other way to accomplish the goal ? Any suggestions at all would be great also.

Offline

#2 2016-06-13 09:05:25, last edited by Xfrogman43 (2016-06-13 09:05:39)

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: Help/Advice needed

1000 Milliseconds = 1 second
700 is slow, but should work.
12,000 is way too slow.

You could use a timer


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#3 2016-06-13 09:22:19

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Help/Advice needed

I'd really have to see all the code to help with such problems, so can't really help.

Offline

#4 2016-06-13 15:41:08

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Help/Advice needed

Yeah, you're being relatively vague.

Are you putting a delay between your block placing?
What's your favorite day of the week?
Did you know apparently folks aren't supposed to meddle with actual threads? hmm. tasks I think.

Offline

#5 2016-06-13 22:18:10

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: Help/Advice needed

Post the relevant code. Once in a while, it helps.

@humvee
Ain't nobody got time to be a taskmaster.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

#6 2016-06-13 23:26:56

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Help/Advice needed

^That's true. IIRC the only time I ever used a task was to .. b.asically use it as a thread. So gg me.

In hindsight, my previous post comes across a bit with an unintended air... I'm simply recalling.

Offline

#7 2016-06-14 04:03:59

koozing
Member
Joined: 2015-10-01
Posts: 16

Re: Help/Advice needed

Tomahawk wrote:

Post the relevant code. Once in a while, it helps.

@humvee
Ain't nobody got time to be a taskmaster.

hummerz5 wrote:

^That's true. IIRC the only time I ever used a task was to .. b.asically use it as a thread. So gg me.

In hindsight, my previous post comes across a bit with an unintended air... I'm simply recalling.

I'm currently being helped by someone, if it doen't work then i will bump this topic up again, thank you

Offline

koozing1465873439606458

Board footer

Powered by FluxBB

[ Started around 1732749344.88 - Generated in 0.093 seconds, 12 queries executed - Memory usage: 1.41 MiB (Peak: 1.53 MiB) ]