PDA

View Full Version : Fishing System


kobedatnext
June 28th, 2006, 03:19 PM
ok, the first thing we need to do is make a map. Put some water on it. Now, try to define a spot on the perimeter of the water where you can fish from. Maybe a small dirt patch, or something. Anyway, once that's done, make a new event. Below Hero, Push Key.

Now, to the scripting:

<>Change Variable: 01:Fishing, Random between 1 and 10.
<>Branch: Variable: Fishing, less then 3
<>Show Message: You didn't catch any fish....
<>Branch: Variable:Fishing: Equal to 4
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Small fish)
<>Branch: Variable:Fishing: Equal to 5
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Small fish)
<>Branch: Variable:Fishing: Equal to 6
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Small fish)
<>Branch: Variable:Fishing: Equal to 7
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Medium Fish)
<>Branch: Variable:Fishing: Equal to 8
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Medium Fish)
<>Branch: Variable:Fishing: Equal to 9
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Large Fish)
<>Branch: Variable:Fishing: Equal to 10
<>Show Message: You caught a (insert fish name here)
<>Add Item: (Large Fish)

And thats it! However you can take it a bit farther by:

1. Add a cooking system so you can eat your cooked fish
2. Make it so the event only starts when you have a fishing rod.

Thats it! Your done!

WHALESDUDE
July 1st, 2006, 07:20 PM
Whoa! Nice! That was a good use of the Conditional branch and Rnadom Number Generator by the way. Thats a lot like how the wild pokemon code works. ^_^

Rueik
July 5th, 2006, 04:44 PM
What happens if you catch nothing?