User Tools

Site Tools


crpl:overview

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
Next revisionBoth sides next revision
crpl:overview [2020/06/14 11:14] – [Translation Front-end] minor layout changes karsten75crpl:overview [2020/06/26 08:36] – [Syntax Highlighting in the Wiki] code highlighting example Karsten75
Line 220: Line 220:
 \\ \\
 \\ \\
-FIXME / DELETEME  + 
 =====Syntax Highlighting in the Wiki =====   =====Syntax Highlighting in the Wiki =====  
     
 Dokuwiki uses [[http://qbnz.com/highlighter/|GeSHi]] syntax highlighting. Dokuwiki uses [[http://qbnz.com/highlighter/|GeSHi]] syntax highlighting.
 +
 +Code examples can be highlighted using the `4rpl` code tag eg:
 +
 +<code 4rpl>
 +# --Volcano-- 5/13/2020 12:58:29 PM
 +
 +$$POSX:154
 +$$POSZ:98
 +$$AMT:100
 +
 +if (GetGameUpdateCount 3600 % eq0)
 + true ->erupting
 +endif
 +
 +if (<-erupting)
 + @Erupt
 +endif
 +
 +if (<-orbsHaveErupted ! GetUnitCount("sniper") 21 gte &&)
 + 240 ->orbsErupting
 + true ->orbsHaveErupted
 +endif
 +
 +if (<-orbsErupting)
 + @OrbsErupt
 +endif
 +
 +:Erupt
 + if (<-eruptCount 60 % eq0)
 + do(2 -1)
 + do(2 -1)
 + AddCreeper(<-POSX I + <-POSZ J + <-AMT)
 + loop
 + loop
 + endif
 + <-eruptCount 1 + ->eruptCount
 + if (<-eruptCount 400 gte)
 + false ->erupting
 + 0 ->eruptCount
 + endif
 +
 +:OrbsErupt
 + V3(RandFloat 0.5 - 1 * 2 RandFloat 0.5 - 1 *) ->orbInitData{"velocity"}
 + CreateOrb(V3(154 randint(-1 2) + 15 98 randint(-1 2) +) <-orbInitData)
 + <-orbsErupting 1 - ->orbsErupting
 +
 +:once
 + Table( "payload" 500 
 + "bounce" true 
 + "creeperdamps" false 
 + "destroywhenstill" false 
 + "destroywhendrytime" 60 
 + "releaseondestroy" false) ->orbInitData
 +</code>
 +
crpl/overview.txt · Last modified: 2023/10/18 15:50 by Bob