• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

RPG Quest reward only on high enough level

Status
Not open for further replies.
Level 1
Joined
May 7, 2016
Messages
4
Hi guys,
Im trying to find solution for this. How can I make that only certain players with high enough level characters get the rewards? For now i made it simple - everyone gets the reward from quest, but I need to fix this so high level players don't ruin the game for newbies.
 

Attachments

  • reward.PNG
    reward.PNG
    38.4 KB · Views: 37
Use a loop to add the resources to the players. This way the same 2 resource adding actions work for all players.

Now place the resource adding actions in a conditional block so they only run if the condition is met. The condition is to check the player level against the quest required level, possibly by looking up the level of a unit from an array mapping player slot to their hero.
 
can you explain how can i check check level of hero unit of a player (every player has a hero, but some can have minions which are not heroes)
what kind of variable should i use?
 
Status
Not open for further replies.
Back
Top