Site Tools


dev:adding_a_new_flag

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
dev:adding_a_new_flag [2024/05/11 19:28] – format sgruntdev:adding_a_new_flag [2024/05/30 02:09] (current) – remove slug non-example sgrunt
Line 53: Line 53:
 ''Omode:classicforge   objective_mode_classicforge'' ''Omode:classicforge   objective_mode_classicforge''
  
-This indicates that if the ''Omode:classicforge'' flag is set then this will be indicated by ''env.options.flags'' containing ''objective_mode_classicforge'' and also allowing the flag to be checked by that name in f4c scripts. Here are two examples from ''adamant.f4c'': +This indicates that if the ''Omode:classicforge'' flag is set then this will be indicated by ''env.options.flags'' containing ''objective_mode_classicforge'' and also allowing the flag to be checked by that name in f4c scripts. Here is an example from ''adamant.f4c'':
- +
-<code> +
-event($E1)  //Obtaining "Excalibur" +
-+
-    [...] +
-    [#B #Rando_CheckFlag #randoflag.objective_mode_classicforge] +
-    [#B #If #not_Flag #flag.Result] { +
-        [...] +
-    } +
-    [...] +
-+
-</code>+
  
 <code> <code>
dev/adding_a_new_flag.txt · Last modified: 2024/05/30 02:09 by sgrunt