File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed
pages/it-drugs/adjustments Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : it-drugs - Drugs
3+ description : With the script, it is also possible to create your own consumable drugs directly.
4+ ---
5+
6+ import Accordion from ' @components/Accordion'
7+ import AccordionGroup from ' @components/AccordionGroup'
8+ import { Callout } from ' @components/Callout'
9+
10+ # 💊・Drugs
11+ With the script, it is also possible to create your own consumable drugs directly. For these to be active in the game, ` Config.EnableDrugs ` must be set to ** true** .
12+
13+ ## Config.Drugs
14+ ``` lua
15+ [' joint' ] = { -- item that can be used in game
16+ label = ' Joint' ,
17+ animation = ' smoke' , -- Animations: blunt, sniff, pill
18+ time = 80 , -- Time in seconds of the Effects
19+ effects = { -- list of effects the drug have
20+ ' intenseEffect' ,
21+ ' healthRegen' ,
22+ ' moreStrength' ,
23+ ' drunkWalk'
24+ },
25+ cooldown = 360 , -- Cooldown in seconds until you can use this drug again
26+ },
27+ ```
28+
29+ <Callout type = " info" >
30+ The cooldown is added to the normal effect time of the drug, in this case the cooldown is 80 + 360.
31+ </Callout >
32+
33+ <AccordionGroup >
34+ <Accordion title = " All possible Drug Effects" >
35+ - runningSpeedIncrease
36+ - infinateStamina
37+ - moreStrength
38+ - healthRegen
39+ - foodRegen
40+ - drunkWalk
41+ - psycoWalk
42+ - outOfBody
43+ - cameraShake
44+ - fogEffect
45+ - confusionEffect
46+ - whiteoutEffect
47+ - intenseEffect
48+ - focusEffect
49+ - superJump
50+ - swimming
51+ </Accordion >
52+ </AccordionGroup >
53+
54+ ---
55+
56+ <AccordionGroup >
57+ <Accordion title = " Drug configuration template" >
58+ ``` lua copy
59+ [' item_name' ] = { -- item that can be used in game
60+ label = ' Drug Label' ,
61+ animation = ' smoke' , -- Animations: blunt, sniff, pill
62+ time = 80 , -- Time in seconds of the Effects
63+ effects = { -- list of effects the drug have
64+ ' intenseEffect' ,
65+ ' healthRegen' ,
66+ ' moreStrength' ,
67+ ' drunkWalk' ,
68+ },
69+ cooldown = 360 , -- Cooldown in seconds until you can use this drug again
70+ },
71+ ```
72+ </Accordion >
73+ </AccordionGroup >
You can’t perform that action at this time.
0 commit comments