Lesson 9 - Item Creation
- Creating Items ala Star Ocean
Shadowtext: Okay, the items need to be predefined. So make an Item "Scrambled Eggs." To tell the truth, implemented correctly, this can be a peice of cake. That's why we're using Dairy! So for now come up with your own way to call it. I'll give you the algorythms.
Common Event "Item Create" Call Event
Message: "Choose your ingredient."
Comment: "You can replace this with your own interface"
Choice "Eggs", "Meat", "Bread", "Cancel"
____Case Eggs
________Call Event "Success_Find"
________ForkConditions Switch."Successful" = OFF
____________Goto Label "End"
________End Case
________Call Event "Eggs_Make"
____Case Meat
________Call Event "Success_Find"
________ForkConditions Switch."Successful" = OFF
____________Goto Label "End"
________End Case
________Call Event "Meat_Make"
____Case Bread
________Call Event "Success_Find"
________ForkConditions Switch."Successful" = OFF
____________Goto Label "End"
________End Case
________Call Event "Bread_Make"
____Case Cancel
End Choice
Label "End"
Master Mage: "And if you're successful?"
Shadowtext: I'm getting to it.
Common Event "Success_Find" Call Event
vSuccess = RandomNumber 1 * 100
ForkConditions vSuccess 27 Above
____Switch."Successful" = ON
End Case
Master Mage: "Simple. What about the actual modification?"
Shadowtext: It's just chance. So you do something similar to the success event.
Common Event "Eggs_Make" Call Event
vItem = RandomNumber 1 * 100
ForkConditions vItem 23 Below
____Message "Created Scrambled Eggs"
____AddItem.ScrambledEggs.Add 1
End Case
ForkConditions vItem 24 Above
____ForkConditions vItam 35 Below
________Message "Created Invisible Eggs!"
________AddItem.InvisibleEggs.Add 1
____End Case
End Case
![]() |
Lesson 9 - Item Creation |
| Creating Items ala Star Ocean | |
| Shadowtext | |
| Jan 01, 2013 | |
| Page Views: 492 | |
| Written for: Rm2k | |
| Related: Lesson 10 - Enemy Skills |
Public Rating
- 0.4
- 3 Total Votes
Comments
You must be signed in to enter a comment for this game.
