Reward (both for task and towards a larger task) Proper way to give an item Reward (both for task and towards a larger task) Author: Leon Lin - leonlin@ix.netcom.com Used in: Rubacus Compiled: 25 October 1998, version 1.00 Use: Party knows about a task and reward, completes the task, returns to claim the reward. Party also asks again about the task and reward. Setup: Personality P tells of a task and reward. SDF A:B for completing the task and determining if reward was claimed. SDF C:D for incrementing towards completing a larger task. Sequence: Personality P: r1/2= patr/coas, Call Town Special, goto A1, B0, C0, D0 r1/2= rewa/xxxx, Call Town Special, goto A4, B0, C0, D0 alt text = Tells party they already received the reward 1 Stuff Done Flag? - SDF= A:B, >= 1A= 1 goto 2, else jump to 3 2 Stuff Done Equal? - SDF= A:B, = 1A= 1 goto 6, else jump to 9 3 Display Message - (below), -1 As dialogue - tells party to complete the task and promise of reward 4 Stuff Done Equal? - SDF= A:B, = 1A= 1 goto 6, else jump to 5 5 Stuff Done Equal? - SDF= A:B, = 1A= 2 goto -1, else Jump to 10 Uses alt text as dialogue of already received the reward 6 Set Flag - SDF= A:B, set to 1A= 2 7 Increment Flag - SDF= C:D, 1A= 1, 1B= 0 increase 8 Give Item - SDF= -1:-1, 1A= 500 gold, -1 Give the reward, tell of partially completing the bigger task (C:D) 9 Display Message - (below), -1 As dialogue - thank you (asked about patr/coas twice) 10 Display Message - (below), -1 As dialogue - tells party to complete the task and promise of reward What it does: The party learns about the task and reward. If they ask again about the task, they get a "keep trying" response. If the task is completed, when they ask about the task or reward: they receive it, SDF A:B is set to 2, and the bigger task SDF C:D is increased by 1. If they ask about the task again, they get a thank you, if about the reward again, they are told they already received the reward. This uses Display Messages as Dialgue text. Proper way to give an item Author: Leon Lin - leonlin@ix.netcom.com Used in: Rubacus Compiled: 25 October 1998, version 1.00 Use: Party pays for and receives an item. If there is no room in inventory, it is placed on the floor. Setup: Item number I and X,Y to place the item Sequence: 1 Display Dialog (Terrain pic) - SDF= -1:-1, 1A= 41 Pay goto 1B= 2, -1 Text - Do you want to pay for an item 2 Has Gold? (+ take) - SDF= -1:-1, 1A=1 gold goto 4, else jump to 3 3 Display Message - Text of not enough gold, -1 4 Play a Sound - 1A= 15 Give Item - SDF= -1:-1, 1A= I item, no room in inventory goto 2B= 6, -1 Item placed in inventory (of active PC) 6 Place Item - 1A= X, 1B= Y, 2A= I item, -1 No room in inventory, item placed at X,Y What it does: The party has a choice to pay for an item. If it does, the amount of gold is checked. If not enough gold, text of not enough gold. Else, the gold is taken and the space in inventory is checked, if enough than the item is given to the first PC that can carry it. Else, it is placed at X,Y.