Knuckle Cracker

Creeper World 3 => Custom Map Discussion => Colonial Space Map Discussion => Topic started by: AutoPost on May 24, 2017, 05:34:09 AM

Title: Custom Map #4444: out of bound guppys. By: curtis
Post by: AutoPost on May 24, 2017, 05:34:09 AM
This topic is for discussion of map #4444: out of bound guppys
(http://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=4444)

Author: curtis
Size: 256x256

Desc:
k,c i know your busy but i do realy have some genuine ideas for you , you need to stop ignoring me please , i need someone to also look at a script ive put together and tell me where i went wrong ill post under map, guppys in a sticky situation,guppy adventures 14
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 05:38:02 AM
# moving emmiter.crpl
# Created on: 5/23/2017 6:27:43 AM
# ------------------------------------------
$speed:3
$strength:50
if (getqueuedmovecount 0 eq)
queuemove (200 200 <-speed)
90 delay
setcreeper (currentcoords <-strength)
90 delay
endif
if (getqueuedmovecount 0 eq)
queuemove (20 20 <-speed)
90 delay
setcreeper (currentcoords <-strength)
90 delay
endif
# again queuemove infrount and not at the end of a sentence, also so is setcreeper, im told thease should always be last
# but thay dont seem to work right when placed at the end of the code?
# i want emmiter to stop at the coords given for a few mins then move to next and stop there for few i tried delay but that dont seem to cut it,
# ive also tried suspendmove but cant seem to get that to work? no example for me to see how it goes
# I'm dislctic and find it hard as it is but in just few days ive learnt a lot can you please help ty
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: GoodMorning on May 24, 2017, 06:00:40 AM
The proper place for such a discussion is the Coders Corner. However...


$X1:200
$Y1:200
$X2:20
$Y2:20
$Speed:3

$Amt:20
$Interval:30
$EmitsBeforeMoving:10

once
0 ->Emits #How many emits have occurred at the current location
1 ->Location #Where we are (or are going)
endonce

GetQueuedMoveCount neq0 if #Wait until arrival
return
endif

<-Emits <-EmitsBeforeMoving lt if #Emit however-many times
CurrentCoords <-Amt SetCreepernoLower
<-Emits 1 add ->Emits
<-Interval Delay
else #We're done here, move on.
0 ->Emits
<-Location 1 eq if #If we're at 1, go to 2
<-X2 <-Y2 <-Speed QueueMove
2 ->Location
else #Or vice-versa.
<-X1 <-Y1 <-Speed QueueMove
1 ->Location
endif
endif


Does this make sense?
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 06:23:37 AM
looks like I was completely wrong lol ill study the script as its got few elaments I don't know lt and lf and neq0 plus ive not come across -> before all other way round and also else
ill look this up in the lists online ty again don't understand a lot of it yet hek I only found out wat stack languge was few days ago, ill try remember coders corner too ty again :-)
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 07:32:21 AM
that works way better now g.m ty also you missed an endif lol computer told me I wasent to know lol
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 08:02:40 AM
just one quick question tho bud the command (emit) I cant find it in any refarences / can u explain more ways to use it as I think if I'm going to be scripting this code mite be more use to me as stationary objects bore me :-)
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: GoodMorning on May 24, 2017, 08:32:18 AM
I fixed the code.

The line that emits Creeper uses SetCreeperNoLower (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:setcreepernolower). I'm not sure if that is what you were referring to?
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 08:34:59 AM
yes ty that's wat I was asking <-emit is not in the lists dident know wat it was working with to work ty
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: GoodMorning on May 24, 2017, 09:03:12 AM
This:
<-Emits
...is a variable. I could as easily have called it Pulses, Cycles, or EmittingsSinceMove. Or even (if this code wasn't meant to be readable) OhLookAFlyingPig.

In this case, it is a counter.
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 02:07:01 PM
flying pig lol yea I dident see that coming, I don't understand stack language but you made that last script realy clear all tho two aspects I dident get and both in same line <- emits 1 add ->emits, you sorted emits out for me but wats the difrece from <-   -> I know the one the left refers to the varables $,s lol wats the one the right , and why are we adding one I dident get that, all rest tho   wasent to bad to pik up
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 02:08:44 PM
ty in advance
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 02:50:46 PM
i know I'm a pain but theres one realy big thing I chould do with can you as I'm dislestic right scrip again but add another coords not a random one tho as I need to see the difrece between the two scripts to better now how to add or take away stuff without messing thigs up anything else I need ill ask in codeders corner sorry to mither but your help has been greatly appreciated
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 24, 2017, 02:54:03 PM
not becose I'm disletik in want you to do script in that sence lol its the changing of the script I need to see to help understand but sure you understand ty
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: GoodMorning on May 24, 2017, 05:27:49 PM
In general, you can expect replies in times on the order of a day. Quadruple-posting does not help, but you can edit the post above to add more content.

Regarding your question:
<- is "read", -> is "write"
Title: Re: Custom Map #4444: out of bound guppys. By: curtis
Post by: Curtis hurst on May 25, 2017, 03:26:30 AM
ty you've been most helpfull