• 🏆 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!

[Spell] Fishing ability

Status
Not open for further replies.
Level 11
Joined
Oct 31, 2010
Messages
1,057
So..i was making a fishing feature for my rpg
When u have a fishing rod, u gain the fishing ability and can fish in water
Triggers are
Event = a unit starts the effect of a ability
Action =
If unit has fishing rod and target point of ability being cast = region
then every 5 sec, if random number from 1-100 = lesser or equal to 10 + ability of fishing of unit then do give unit a fish else do nothing
Else do nothing
my problem is i cant make the every 5 second part
 
Level 5
Joined
Aug 8, 2012
Messages
154
When you cast the ability, enable another trigger which has periodic 5 second times as the event, with the actions being what you said (you will have to set the fishing caster as a variable). Then when you catch a fish, disable the periodic trigger again.
 
Level 5
Joined
Aug 8, 2012
Messages
154
Like I said, when he casts the ability, save him in a variable [FishingUnit]

In the second trigger, the periodic one, use [FishingUnit]'s level of fishing, and give the fish to [FishingUnit].
 
Level 5
Joined
Aug 8, 2012
Messages
154
Didn't know you wanted it MUI ;L Make the [FishingUnit] variable an array the size of the amount of players, and set the caster as [FishingUnit] - [Player Number of[Owner of Triggering Unit]]

Edit: You want it multi user or multi unit? So each player has only got one unit that can fish, or multiple?
 
Status
Not open for further replies.
Top