Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
fr:liste_script [2015/11/19 09:53] eric64 |
fr:liste_script [2016/01/13 20:28] 127.0.0.1 external edit |
||
---|---|---|---|
Line 159: | Line 159: | ||
</ | </ | ||
- | __Règles à créer pour chaque | + | __Règles à créer pour chaque |
< | < | ||
SI RGBplafond == changed | SI RGBplafond == changed | ||
Line 171: | Line 171: | ||
</ | </ | ||
- | __script__ | + | __Script :__ |
< | < | ||
local RGBplafond = calaos: | local RGBplafond = calaos: | ||
Line 192: | Line 192: | ||
</ | </ | ||
+ | |||
+ | |||
+ | \\ === 5- Conserver la valeur d'un appui sur un BP dans une variable | ||
+ | //By eric64// | ||
+ | |||
+ | **But :** Script permettant de donner une valeur True ou False à une variable lors de l' | ||
+ | |||
+ | < | ||
+ | local Variable_Activation_Inter = calaos: | ||
+ | |||
+ | if Variable_Activation_Inter == false then -- si ma variable est fausse (je n'ai donc pas allumé les lumières par BP) | ||
+ | calaos: | ||
+ | calaos: | ||
+ | calaos: | ||
+ | calaos: | ||
+ | | ||
+ | elseif Variable_Activation_Inter == true then -- sinon si ma variable est vrai (j' | ||
+ | calaos: | ||
+ | calaos: | ||
+ | calaos: | ||
+ | calaos: | ||
+ | end | ||
+ | return true | ||
+ | </ |