User Tools

Site Tools


4rpl:commands:setfieldcell

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:setfieldcell [2021/02/08 03:36] – Add Awake to example Grabz4rpl:commands:setfieldcell [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
 +<WRAP tabs> 
 +  * [[4rpl:commands:getfieldcell|Get]] 
 +  * [[4rpl:commands:setfieldcell|Set]] 
 +</WRAP>
 :!: Available in version 1.3 and later. :!: Available in version 1.3 and later.
 ====== SetFieldCell ====== ====== SetFieldCell ======
Line 14: Line 17:
  
 In order to add to a field rather than set it, retrieve its current values first using [[GetFieldCell]], add to those values, then set those values as the new field. To erase the new field, do the same thing, but instead subtract what was previously added. Alternatively, you can use [[SetFieldRect]], which adds fields rather than sets them. In order to add to a field rather than set it, retrieve its current values first using [[GetFieldCell]], add to those values, then set those values as the new field. To erase the new field, do the same thing, but instead subtract what was previously added. Alternatively, you can use [[SetFieldRect]], which adds fields rather than sets them.
 +
 +For reference:\\
 +Shields have a field (total "strength") of 2000 throughout its radius.
  
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
 :Awake :Awake
-   SetFieldCell(50 40 false V2(1000000 1000000)+   SetFieldCell(50 40 false V2(1000000 1000000))
 </code> </code>
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
4rpl/commands/setfieldcell.1612755397.txt.gz · Last modified: 2025/02/14 14:56 (external edit)