Difference between revisions of "Template:Drug"

From ShadowHaven Reloaded
Jump to navigation Jump to search
 
Line 1: Line 1:
<includeonly>
<includeonly>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 30%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: {{{ScreenWidthPercentage|30}}}%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-  
|-  
|
|
Line 36: Line 36:


*Name The name of the drug.
*Name The name of the drug.
*ScreenWidthPercentage This is an optional param which tells the box to only take up X% of the area its assigned to. This will default to 30 but might need to be changed to something else if placed within its own table or something.
*Vector The drugs vector.
*Vector The drugs vector.
*Speed The drugs speed
*Speed The drugs speed
Line 54: Line 55:
{{Drug|
{{Drug|
|Name=Test Drug
|Name=Test Drug
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Vector=Breath
|Vector=Breath
|Speed=14
|Speed=14
Line 72: Line 74:
{{Drug|
{{Drug|
|Name=Test Drug
|Name=Test Drug
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Vector=Breath
|Vector=Breath
|Speed=14
|Speed=14

Latest revision as of 12:57, 25 August 2024


Usage

This template helps create a standard display format for custom drugs.

  • Name The name of the drug.
  • ScreenWidthPercentage This is an optional param which tells the box to only take up X% of the area its assigned to. This will default to 30 but might need to be changed to something else if placed within its own table or something.
  • Vector The drugs vector.
  • Speed The drugs speed
  • Duration The duration of the drugs effect
  • AddictionTypethe addiction type of the drug
  • AddictionRatingThe addiction rating for the drug.
  • AddictionThreshold The threshold to not be addicted.
  • Effect The drugs effects
  • ExoticIngredient any exotic ingredients found in the drug
  • Crash The drugs crash effect
  • Price the cost per dose of the drug
  • Availability the drugs availability
  • Description The text associated with the drug.

So, if you enter this:

{{Drug|
|Name=Test Drug
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Vector=Breath
|Speed=14
|Duration=Requirement
|AddictionType=This is some text
|AddictionRating=This is some text
|AddictionThreshold=This is some text
|Effect=Test Effect
|ExoticIngredient=Text Ingreed
|Crash=Test Crash
|Price=100
|Availability=10F
|Description=Some Text
|}}

The template will return the characters current essence/total essence.

Test Drug
Vector: Breath Speed: 14
Duration: Requirement Addiction Type: This is some text
Addiction Rating: This is some text Addiction Threshold: This is some text
Exotic Ingredient: Text Ingreed Cost per dose: 100
Effect: Test Effect Availability: 10F
Crash: Test Crash
Some Text