Skip to content

Commit

Permalink
Update creator guide and tweak player styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Nov 21, 2023
1 parent 1dbd65d commit 77694dc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions src/_guides/creator.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,20 @@ Selecting the **Add Items** button will display the item editor for individual n
3. Take the item from the player. Note, however, that you can only remove an item from a player's inventory if they already have the item (i.e. you gave the player that item in a previous destination).
4. Adjust the quantity of the item being given or taken. Only positive values greater than 0 are accepted.
5. Remove the item
6. Show Advanced Options. Clicking this will show the following:
6. Show Advanced Options.

![adventure item advanced options](assets/create_widget_adventure_item_advanced_options.png "adventure item advanced options")
#### Advanced Options for Giving Items

Selecting this option will give the player the item only once upon their initial visit to a destination; if the player returns to this destination, they will not receive the item again.
![adventure item advanced options](assets/create_widget_adventure_item_advanced_options_give.png "adventure item advanced options")

Selecting "Give On First Visit Only" will give the player the item only once upon their initial visit to a destination; if the player returns to this destination, they will not receive the item again.

#### Advanced Options for Taking Items

![adventure item advanced options](assets/create_widget_adventure_item_advanced_options_take.png "adventure item advanced options")

1. Take the item only upon the player's initial visit to the destination.
2. Take all of this type of item from the player.

### Adding Required Items to Answers ###

Expand Down
4 changes: 2 additions & 2 deletions src/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<p class="item-name">{{itemSelection[getItemIndex(item.id)].name}}</p>
</div>
<div class="item-update-description">
Description: {{itemSelection[getItemIndex(item.id)].description}}
{{itemSelection[getItemIndex(item.id)].description.length > 0 ? 'Description: ' + itemSelection[getItemIndex(item.id)].description : (itemSelection[getItemIndex(item.id)].icon.alt.length > 0 ? 'Description: ' + itemSelection[getItemIndex(item.id)].icon.alt : '')}}
</div>
</div>
</section>
Expand All @@ -58,7 +58,7 @@
<p class="item-name">{{itemSelection[getItemIndex(item.id)].name}}</p>
</div>
<div class="item-update-description">
Description: {{itemSelection[getItemIndex(item.id)].description}}
{{itemSelection[getItemIndex(item.id)].description.length > 0 ? 'Description: ' + itemSelection[getItemIndex(item.id)].description : (itemSelection[getItemIndex(item.id)].icon.alt.length > 0 ? 'Description: ' + itemSelection[getItemIndex(item.id)].icon.alt : '')}}
</div>
</div>
</section>
Expand Down
3 changes: 2 additions & 1 deletion src/src-assets/player-assets/player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,8 @@ h1 {
border-radius: 5px;

&:focus, &:hover {
background-color: $blue-lighter;
background-color: $gray-lightest;
cursor: pointer;
}
}

Expand Down

0 comments on commit 77694dc

Please sign in to comment.