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

[Trigger] RpG quest problem

Status
Not open for further replies.
Level 3
Joined
Jul 26, 2011
Messages
38
Guys guys.
is this possible in GUI,
if player1(red) take a quest. he cant take it again?
same in other players.

any idea guys?

thx:thumbs_up:
 
Lol i love integers more than anything. I would just make an integer array called quest1 with an array of however many players there are, then set it to 1 when that player gets that quest. Then if he tries getting the quest again, it wont let him because the integer is 1, which means he already got it. Basically put your entire quest actions into a Then of If/Then/Else, where the If is
If quest1[player number of triggering player or whatever] is equal to 0, then
And then you put your quest, including to set quest1[player number of triggering player or whatever] equal to 1.
The else would be Do Nothing or display a game message that says "You cannot repeat the same quest twice" or something like that.
 
I would rather always use integers for the progression of quests
For example
QInteg = 0
Give quest QInteg +1
If 1 and killed 10000 wolves
Give reward and QInteg +1
If 2 and Hero[Player] is level 10
Give next quest and so on
 
Status
Not open for further replies.
Back
Top