@@ -127,7 +127,7 @@ Always validate references before using them:
127127```
128128*room = @plr -> roomRef
129129
130- if { *room -> isInvalid}
130+ if *room is invalid
131131 Print "Player is not in a room"
132132 stop
133133end
@@ -216,22 +216,13 @@ run Func
216216Print $x # does NOT print 1, as $x was specific to `Func`
217217```
218218
219- Preferred way :
219+ Using ` with ` in loops and functions :
220220```
221221over @all with @plr
222222 # @plr only exists here
223223end
224224```
225225
226- Another valid way: (carried over from previous versions)
227- ```
228- over @all
229- with @plr
230-
231- # @plr only exists here
232- end
233- ```
234-
235226### Important: Always Verify Global Variables Exist
236227
237228Never assume a global variable exists. Always check first:
@@ -261,7 +252,7 @@ Negative values don't require parentheses in methods:
261252$num = -21
262253TPPosition @fighter -37 313 -140
263254```
264- This is because the whitespace seperates these values into different arguments.
255+ This is because the whitespace separates these values into different arguments.
265256
266257### Percent Sign
267258
@@ -350,9 +341,9 @@ You can use natural language or symbols:
350341- ` < ` - less than
351342- ` and ` / ` && ` - logical AND
352343- ` or ` / ` || ` - logical OR
353- - ` not ` / ` ! ` - ILLEGAL, DO NOT USE
354- > ` ! ` is illegal because SER relies heavily on spaces, providing ` !$var ` would break the compiler
355- > ` not ` is illegal because it could confuse ` x isnt y ` with ` x is not y `
344+ - ` not ` / ` ! ` - ILLEGAL
345+ > ` ! ` is illegal because heavy relience on spaces
346+ > ` not ` is illegal because could confuse ` x isnt y ` with ` x is not y `
356347
357348### Using Properties in Conditions
358349
636627` OnEvent ` flags add variables associated with a given event. (done by reflecting on C#)
637628But event variables might not always be provided by the C# event:
638629
639- ```
640- !-- OnEvent Dying
641-
642- if {VarExists @evAttacker} is false
643- stop
644- end
645- ```
646- or define which are required:
647630```
648631!-- OnEvent Dying
649632-- require @evAttacker
@@ -762,7 +745,7 @@ SER includes several advanced systems you should explore:
762745- ** Use:** Welcome messages, initial setup, tutorial hints
763746- ** Variables:** ` @evPlayer ` (joining player)
764747
765- ** 5. ChangedRole** - ` !-- OnEvent ChangedRole ` - Triggers when role changes
748+ ** 5. ChangedRole** - ` !-- OnEvent ChangedRole ` - Triggers when player's role changes
766749- ** Use:** Role-specific setups, class transitions, spawn effects
767750- ** Variables:** ` @evPlayer ` , ` $evOldRole ` , ` $evNewRole `
768751
0 commit comments