User Tools

Site Tools


4rpl:commands:getlistelement

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:getlistelement [2024/06/09 06:49] – [Examples] Added 2 examples made by Kalli on discord. LiteralNoob4rpl:commands:getlistelement [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 21: Line 21:
     Trace (<-list[I])                #functionally equivalent     Trace (<-list[I])                #functionally equivalent
 loop loop
-</code>\\+</code>
  
 <code 4rpl> <code 4rpl>
Line 27: Line 27:
 RandInt(0 GetListCount(<-units)) ->randIndex RandInt(0 GetListCount(<-units)) ->randIndex
 GetListElement(<-units <-randIndex) ->targetUnit GetListElement(<-units <-randIndex) ->targetUnit
-</color>+</code>
  
 <code 4rpl> <code 4rpl>
Line 39: Line 39:
 Getlistcount 0 swap RandInt Getlistcount 0 swap RandInt
 Getlistelement  Getlistelement 
-</color>+</code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/getlistelement.1717915778.txt.gz · Last modified: 2025/02/14 14:56 (external edit)