Custom Map #4444: out of bound guppys. By: curtis

Started by AutoPost, May 24, 2017, 05:34:09 AM

Previous topic - Next topic

AutoPost

This topic is for discussion of map #4444: out of bound guppys


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

Curtis hurst

# 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

GoodMorning

#2
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?
A narrative is a lightly-marked path to another reality.

Curtis hurst

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 :-)

Curtis hurst

that works way better now g.m ty also you missed an endif lol computer told me I wasent to know lol

Curtis hurst

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 :-)

GoodMorning

I fixed the code.

The line that emits Creeper uses SetCreeperNoLower. I'm not sure if that is what you were referring to?
A narrative is a lightly-marked path to another reality.

Curtis hurst

yes ty that's wat I was asking <-emit is not in the lists dident know wat it was working with to work ty

GoodMorning

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.
A narrative is a lightly-marked path to another reality.

Curtis hurst

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


Curtis hurst

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

Curtis hurst

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

GoodMorning

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"
A narrative is a lightly-marked path to another reality.

Curtis hurst