Hi.
I recently started making a game called When Demons Run and I have been trying to make a sort of loot system similar to that in Final Fantasy XII. Basically, certain monsters drop Raw Materials and when the player has a certain number they are given the option to use the materials to create special armours and such.
Now I've tried to set up the system using the Fetch Quest tutorial found
here, however I can't get the system to work. Using the tutorial mentioned above I hashed together the following event, but to be honest I'm still a novice at this and I've got no idea how to use the Variables so the problem could lie therein:
CODE
@>Loop
@>Conditional Branch: [Bat Hide] in Inventory
@>Control Variables: [0002:Bat Hides] = 1
@>Change Items: [Bat Hide], -1
@>
: Else
@>Conditional Branch: Variable [0002:Bat Hides] >= 2
@>Text: -,-, Normal, Top
: : You now have enough raw materials to make a special armour
: : Would you like to use your Bat Hides to make a special
: : armour?
@>Show Choices: Yes
: When [Yes]
@> Change Items: [Bat Hide], -2
@> Change Armour: [Bat Robe], +1
@>Text: -,-, Normal, Top
: : You sew the Bat Hides together and obtain a Bat Robe.
@>Control Switches: [0011:Fashion 101] = OFF
@>
: Branch End
@>
: Else
@>Change Items: [Bat Hide], +1
@>Control Variables: [0002:Bat Hides] = 1
@>
: Branch End
@>
: Repeat Above
@>
This event is started by a battling event which works fine, but when the required number of Raw Materials is obtained nothing happens and the player is left with some essentially useless items.
If anyone has any ideas as to where I've gone wrong please let me know.
Thankyou