User Tools

Site Tools


crpl:docs:randunitcoords

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:randunitcoords [2013/01/14 14:01] – created chanicrpl:docs:randunitcoords [2020/05/30 20:15] – fixed typo Sanian
Line 1: Line 1:
-TODO+~~DISCUSSION~~ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] 
 +=====  RandUnitCoords  ===== 
 + 
 +^Arguments^Result^Notation^ 
 +| |Y, X coords of a random player unit |''-- Y1 X1 ''
 + 
 + 
 +=== Description === 
 +Pushes the x and y coordinate of a randomly chosen player unit. -1, -1 will be pushed if no unit is found. 
 + 
 +**Note:** This command will also detect Message Artifacts. 
 +=== Examples === 
 +<code>RandUnitCoords Swap ->targetX ->targetY</code> 
 +<code># Creates a spore and sends it to a random player unit. 
 +CurrentCoords RandUnitCoords 1 10 CreateSpore</code>  
crpl/docs/randunitcoords.txt · Last modified: 2021/02/05 11:21 by Karsten75