Changes

m
minor spelling
Line 223: Line 223:  
|-
 
|-
 
| <samp>addConversationTopic {{t|ID}} {{o|length}}</samp>
 
| <samp>addConversationTopic {{t|ID}} {{o|length}}</samp>
| Starts a [[Modding:Dialogue#Conversation topics|conversation topic]] with the given ID and day length (or 4 days if no length given).
+
| Starts a [[Modding:Dialogue#Conversation topics|conversation topic]] with the given ID and day length (or 4 days if no length given). Setting length as 0 will have the topic last only for the current day.
 
|-
 
|-
 
| <samp>addCookingRecipe {{t|recipe}}</samp>
 
| <samp>addCookingRecipe {{t|recipe}}</samp>
Line 280: Line 280:  
|-
 
|-
 
| <samp>animate {{t|actor}} {{t|flip}} {{t|loop}} {{t|frame duration}} {{t|frames...}}</samp>
 
| <samp>animate {{t|actor}} {{t|flip}} {{t|loop}} {{t|frame duration}} {{t|frames...}}</samp>
| Animate a named actor, using one or more {{t|frames}} from their sprite sheet, for {{t|frame duration}} milliseconds per frame. {{t|frames}} are indexed numerically, based on 16x32 peices of the image. This index increases as you go from left to right, starting from 0. {{t|flip}} indicates whether to flip the sprites along the Y axis; {{t|loop}} indicates whether to repeat the animation until <samp>stopAnimation</samp> is used. If you're animating the farmer, it may be helpful to reference [[Modding:Farmer_sprite#Sprite_Index_Breakdown]]
+
| Animate a named actor, using one or more {{t|frames}} from their sprite sheet, for {{t|frame duration}} milliseconds per frame. {{t|frames}} are indexed numerically, based on 16x32 pieces of the image. This index increases as you go from left to right, starting from 0. {{t|flip}} indicates whether to flip the sprites along the Y axis; {{t|loop}} indicates whether to repeat the animation until <samp>stopAnimation</samp> is used. If you're animating the farmer, it may be helpful to reference [[Modding:Farmer_sprite#Sprite_Index_Breakdown]]
 
|-
 
|-
 
| <samp>attachCharacterToTempSprite {{t|actor}}</samp>
 
| <samp>attachCharacterToTempSprite {{t|actor}}</samp>
Line 441: Line 441:  
|-
 
|-
 
| <samp>ignoreEventTileOffset</samp>
 
| <samp>ignoreEventTileOffset</samp>
| Tile positions in farm events are offset to match the farmhouse position. If an event shouldn't be based on the farmhouse position, add an ignoreEventTileOffset command to disable the offset for that event.
+
| Tile positions in farm events are offset to match the farmhouse position. If an event shouldn't be based on the farmhouse position, add an ignoreEventTileOffset command to disable the offset for that event. This must be the 4th command (after the 3 initial setup ones) to take effect.
 
|-
 
|-
 
| <samp>itemAboveHead {{o|type}}</samp>
 
| <samp>itemAboveHead {{o|type}}</samp>
Line 534: Line 534:  
|-
 
|-
 
| <samp>showFrame farmer {{t|frame}} {{t|flip}}</samp>
 
| <samp>showFrame farmer {{t|frame}} {{t|flip}}</samp>
| Flip the farmer's current sprite along the Y axis. TODO: Behavior with farmer looks strange?
+
| Flip the farmer's current sprite along the Y axis. Farmer looks strange if not facing the correct direction prior to 1.6. Flip is a true/false value.
 
|-
 
|-
 
| <samp>showFrame {{t|actor}} {{t|frame ID}}</samp>
 
| <samp>showFrame {{t|actor}} {{t|frame ID}}</samp>
Line 598: Line 598:  
| <samp>temporarySprite {{t|x}} {{t|y}} {{t|row in texture}} {{t|animation length}} {{t|animation interval}} {{t|flipped}} {{t|layer depth}}</samp>
 
| <samp>temporarySprite {{t|x}} {{t|y}} {{t|row in texture}} {{t|animation length}} {{t|animation interval}} {{t|flipped}} {{t|layer depth}}</samp>
 
| Create a temporary sprite with the given parameters, from the resource <samp>TileSheets/animations</samp>.
 
| Create a temporary sprite with the given parameters, from the resource <samp>TileSheets/animations</samp>.
 +
|-
 +
| <samp>temporaryAnimatedSprite {{t|texturename}} {{t|source_x}} {{t|source_y}} {{t|source_width}} {{t|source_height}} {{t|interval}} {{t|length}} {{t|loops}} {{t|tile_x}} {{t|tile_y}} {{t|flicker}} {{t|flip}} {{t|depth}} {{t|fade}} {{t|scale}} {{t|scale_change}} {{t|rotation}} {{t|rotation_change}} +
 +
| Creates a temporary sprite with the given parameters. Can also accept the following optional, named parameters afterwards, in space-separated pairs. {{t|color}} {{t|hold_last_frame}} {{t|ping_pong}} {{t|motion}} {{t|acceleration}} {{t|acceleration_change}}
 
|-
 
|-
 
| <samp>textAboveHead {{t|actor}} \"{{t|text}}\"</samp>
 
| <samp>textAboveHead {{t|actor}} \"{{t|text}}\"</samp>
5

edits