Quest to only 1 player via JASS

eXirrah

New Member
Reaction score
51
Ok so this topic is very hot in GUI section right now.

Can a Quest or Quest Item be created to only 1 player using JASS.

Using GUI this is impossible.
Some people think that in JASS you can create quest/create quest item/set description to quest or quest item only for 1 player. I checked all JASS functions that create quest (item), set description to quest (item) and none of them take player as parameter, but they say that if you have a quest (item), you can change the text to show to only 1 player by using some commands like this:

JASS:

if GetLocalPlayer() == Player([number]) then
     Then, use the QuestSetDescription native to change the text.
endif


Possible or not ?
 

saw792

Is known to say things. That is all.
Reaction score
280
Yes, that will work. Also, read a tutorial on GetLocalPlayer() before you start thinking it is magical and will do everything. It won't do everything, but this it can do.
 

Tukki

is Skeleton Pirate.
Reaction score
29
You can also use the 'Enable' function (not sure of its name though) instead of changing the description. In that way the quest will not be displayed for the other players. But I'm not sure that this is what you want.

Probably somthing like this will do:
JASS:
call QuestEnable(<yourquest>, GetLocalPlayer()==Player[number])


But as noted, I'm not sure the function is named 'QuestEnable' - but it's something that way.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top