Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki update for #10676 (Random Stock) #24

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0c9eeeb
things
tibetiroka Jun 23, 2024
e8192ac
mh
tibetiroka Jun 24, 2024
8441532
Update CreatingMissions.md
tibetiroka Jun 24, 2024
504f4a3
Check with Zarkonnen
TheGiraffe3 Jun 24, 2024
d1c3dc1
Update MapData.md
TheGiraffe3 Jun 24, 2024
dcfaeb4
Link to CreatingSales
TheGiraffe3 Jun 24, 2024
348ee67
Add CreatingSales.md
TheGiraffe3 Jun 24, 2024
7a46982
Update wiki/CreatingMissions.md
tibetiroka Jun 24, 2024
102b8a5
Update wiki/MapData.md
tibetiroka Jun 24, 2024
74520d9
Add to links
TheGiraffe3 Jun 24, 2024
5c2cc0f
Switch to 'shipyard stock' and 'outfitter stock'
TheGiraffe3 Jun 25, 2024
34d5b97
Numbers
TheGiraffe3 Jun 25, 2024
d1ed7b9
Probability
TheGiraffe3 Jun 25, 2024
2f7c399
Merge branch 'endless-sky:master' into Zarkonnen-in-stock
TheGiraffe3 Jun 29, 2024
c7cdcc3
Update CreatingSales.md
TheGiraffe3 Jun 29, 2024
2107cf7
Merge branch 'endless-sky:master' into Zarkonnen-in-stock
TheGiraffe3 Jun 30, 2024
05881f3
Update CreatingSales.md
TheGiraffe3 Jun 30, 2024
56ce398
`"can trigger after failure"` node for mission triggers (#22)
tibetiroka Jul 7, 2024
290a3af
Update `to display` usage in dialogs and planet descriptions (#20)
tibetiroka Jul 7, 2024
09ebef1
Include default values of planetary "bribe" and tribute threshold in …
mOctave Jul 10, 2024
28a260d
Merge branch 'endless-sky:master' into Zarkonnen-in-stock
TheGiraffe3 Jul 21, 2024
3473373
Merge branch 'master' into Zarkonnen-in-stock
TheGiraffe3 Sep 10, 2024
89abff7
Merge branch 'master' into Zarkonnen-in-stock
TheGiraffe3 Sep 28, 2024
e332db6
Merge branch 'endless-sky:master' into Zarkonnen-in-stock
TheGiraffe3 Oct 6, 2024
15d7a41
0.10.11?
TheGiraffe3 Oct 6, 2024
701c669
Merge branch 'master' into Zarkonnen-in-stock
TheGiraffe3 Oct 23, 2024
826602e
Update CreatingSales.md
TheGiraffe3 Oct 24, 2024
7117d39
Merge branch 'master' into Zarkonnen-in-stock
TheGiraffe3 Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions wiki/CreatingOutfits.md
Original file line number Diff line number Diff line change
Expand Up @@ -878,17 +878,7 @@ Ordinary weapon attributes (those that take a number as an argument) include:

* `"burn damage"`: how much burn is added to a target when struck by this projectile, increasing the target's heat over time. If the target's shields are up, incoming burn damage is cut in half. **(v. 0.9.15)**

# Sales

In order for anyone to buy your new outfit, it must be added to one of the "outfitter" objects. For example, if you are writing a plugin, you could include this in one of your data files:

```
outfitter "Syndicate Advanced"
"My Fancy New Outfit"
"My Other Fine Outfit"
```

Any outfits you list will be appended to the outfits currently in the list you named. So, the above example would make two new outfits available on all planets that have the "Syndicate Advanced" outfits.
# [Sales](CreatingSales#outfitters)

# Balancing

Expand Down
92 changes: 92 additions & 0 deletions wiki/CreatingSales.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Table of Contents

* [Shipyards](#shipyards)
* [Outfitters](#outfitters)

# Shipyards

## Normal Shipyards

If you want your ships to be available, you must add them to a shipyard. To do so, you must have something like this:

```
shipyard "Syndicate Advanced"
"Plugin Ship One"
"Plugin Ship Two"
```

Any ships you list will be appended to the ships currently in the list you named. So, the above example would make two new ships available on all planets that have the "Syndicate Advanced" shipyard.

## Shipyard Stock

```
"shipyard stock" "<name>"
"<ship name>"
probability <%>
quantity <#>
discount <%>
depreciation <#>
```
```
"shipyard stock" "Random Flivvers"
"Flivver"
probability 20
quantity 5
discount 40
```

Added in **v. 0.10.11**, the above example would make any planet with the "Random Flivvers" `shipyard stock` have a 20% chance of selling 5 Flivvers with a discount of 40 percent.

```
"shipyard stock" "Random Sparrows"
"Sparrow"
probability 70
quantity 2
depreciation 105
```

Added in **v. 0.10.11**, the above example would make any planet with the "Random Sparrows" `shipyard stock` have a 70% chance of selling 2 Sparrows which have been losing value for 105 days.

# Outfitters

## Normal Outfitters

In order for anyone to buy your outfits, they must be added to an "outfitter" object. For example, if you are writing a plugin, you could include this in one of your data files:

```
outfitter "Syndicate Advanced"
"My Fancy New Outfit"
"My Other Fine Outfit"
```

Any outfits you list will be appended to the outfits currently in the list you named. So, the above example would make two new outfits available on all planets that have the "Syndicate Advanced" outfits.

## Outfitter Stock

```
"outfitter stock" "<name>"
"<outfit name>"
probability <%>
quantity <#>
discount <%>
depreciation <#>
```
```
"outfitter stock" "Random Nukes"
"Nuclear Missile"
probability 50
quantity 3
discount 99
```

This was added in **v. 0.10.11**. It allows you to make outfits sometimes be in stock on any particular planet. The above example would make any planet with the "Random Nukes" `outfitter stock` have a 50% chance of selling 3 heavily discounted nuclear missiles.

```
"outfitter stock" "Random Ramscoops"
"Ramscoop"
probability 5
quantity 10
depreciation 45
```

The above example would make any planet with the "Random Ramscoops" `outfitter stock` have a 5% chance of selling 10 ramscoops that have been losing value for 45 days.
1 change: 1 addition & 0 deletions wiki/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ These pages generally describe the game syntax in accordance with the [data form
* [Creating governments](CreatingGovernments)
* [Creating fleets](CreatingFleets)
* [Creating phrases](CreatingPhrases)
* [Creating sales](CreatingSales)
* [Creating starts](Creating-Starts)
* [Creating text substitutions](CreatingSubstitutions)
* [Editing interfaces](CreatingInterfaces)
Expand Down
6 changes: 6 additions & 0 deletions wiki/MapData.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ planet <name>
description <text>
government <name>
shipyard <name>
"shipyard stock" <name>
outfitter <name>
"outfitter stock" <name>
"required reputation" <reputation#>
bribe <bribe#>
security <security#>
Expand Down Expand Up @@ -412,7 +414,9 @@ planet <name>
description <text>
government <name>
shipyard <name>
"shipyard stock" <name>
outfitter <name>
"outfitter stock" <name>
"required reputation" <reputation#>
bribe <bribe#>
security <security#>
Expand Down Expand Up @@ -522,7 +526,9 @@ Planets are capable of having a different [government](CreatingGovernments) than

```html
shipyard <name>
"shipyard stock" <name>
outfitter <name>
"outfitter stock" <name>
```

The shipyards and outfitters that are available on this planet. A new shipyard or outfitter line must be used for each shipyard or outfitter.
Expand Down
1 change: 1 addition & 0 deletions wiki/_Sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* [Creating governments](CreatingGovernments)
* [Creating fleets](CreatingFleets)
* [Creating phrases](CreatingPhrases)
* [Creating sales](CreatingSales)
* [Creating starts](Creating-Starts)
* [Creating text substitutions](CreatingSubstitutions)
* [Editing interfaces](CreatingInterfaces)
Expand Down