Giving items to specific players on game start
robophonic
09 Oct 2007, 16:28Hello everyone,
I recently found out about Quest and downloaded the demo. Kudos to Alex for creating this software...I have been looking for a multiplayer IF authoring tool for a long time. I am a computer programmer in my other life, trying to wrap my head around the ASL scripting language.
I hope someone can help me with a scripting question. I want each player to start the game with different items. How can I add items to a particular player's inventory when they start the (QuestNet) game? Here is my code that is not working:
player startscript {
if $name(%userid%)$ = blake then give <Mobile Phone>
}
Any help would be much appreciated.
Thanks!
rob
I recently found out about Quest and downloaded the demo. Kudos to Alex for creating this software...I have been looking for a multiplayer IF authoring tool for a long time. I am a computer programmer in my other life, trying to wrap my head around the ASL scripting language.
I hope someone can help me with a scripting question. I want each player to start the game with different items. How can I add items to a particular player's inventory when they start the (QuestNet) game? Here is my code that is not working:
player startscript {
if $name(%userid%)$ = blake then give <Mobile Phone>
}
Any help would be much appreciated.
Thanks!
rob
Alex
09 Oct 2007, 17:50The condition should be in brackets, i.e.:
player startscript {
if ($name(%userid%)$ = blake) then give <Mobile Phone>
}
robophonic
09 Oct 2007, 20:02Thanks for the quick reply, Alex. I should have caught that myself!