• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Fishing system?

Status
Not open for further replies.
Level 4
Joined
Mar 27, 2009
Messages
66
ok, someone needs to have a fishing pole in their inventory...they press a button and if near water it will fish...randomly catching fish(which will be a item), or not catching anything
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
Make it so that the activator button is the actual rod item, this will keep your ability menu free for other abilities.
You then need to check for water, this probably will need JASS but you could also litter the coasts with helper units which are invisible (if near one then you can fish, else it says you are too far from water).

Fishing itself is hardly complex. You use random numbers and maths to get the chances for certain outcomes, and then via multiple selection you can check if those chances occur (if so do the appropiate actions, otherwise move on to next check).
 
Level 4
Joined
Mar 27, 2009
Messages
66
ok, but how would i make them have to stay in place to fish?

like they use the ability...then it stops them for like 5 seconds to fish
 
Status
Not open for further replies.
Top