MAKEUID VAREXISTS VAREXISTS EXISTS EXISTS
From 4Dimensions
Revision as of 04:00, 26 January 2016 by Isibot (talk | contribs) (Bot: Automated import of articles)
MAKEUID VAREXISTS VAREXISTS EXISTS EXISTS
MAKEUID VAREXISTS %VAREXISTS% %EXISTS% EXISTS
MAKEUID VAREXISTS %VAREXISTS% %EXISTS% EXISTS
MAKEUID VAREXISTS %VAREXISTS% %EXISTS% EXISTS
Usage: makeuid variable id
- We have one mob giving a quest. This mob sets the targets id as a global on
- the player via the 'remote' command, like this:
eval quest_object %obj.id% remote quest_object %actor.id%
- We then have another mob receiving the quest object, with the following script.
if !(%actor.varexists(quest_object)%) return 0
halt
end
- now we know the player has a quest_object variable
makeuid obj %actor.quest_object% say Have you brought me %obj.shortdesc%, %actor.name% ?
say You must bring it to me to complete your quest, you know.
Creates a new variable with the name given, whose contents shall be suitable
for referring to a character, object, or room whose id is provided.