Giving items to specific players on game start

robophonic
Hello 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

Alex
The condition should be in brackets, i.e.:


player startscript {
if ($name(%userid%)$ = blake) then give <Mobile Phone>
}

robophonic
Thanks for the quick reply, Alex. I should have caught that myself!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums