from what ive been told there is no code before it =S its just that in a new script named 1.asc
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Mirek on Thu 23/10/2008 16:56:35
I´m not sure what do you want, but I will try to help you.
I created a module/ template for this, but it isn´t working now. So, if you want to use dialog for this, you have to
1. create new option in dialog with merchant,
2. add line run-script 1
3. in dialog_request add this:Code: ags if (parameter==1) { player.Say("I must have this thing!"); cShopKeeper.Say("Okay, it costs 50 gold."); if (Money>=50) { // 50 is price of thing you are buying player.AddInventory(iYourNewItem); Money-=50; cShopKeeper.Say("You bought a realy great item!"); dYourDialog.SetOptionState(1, eOptionOff); } else { cShopKeeper.Say("You don´t have enough money!"); } }
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.041 seconds with 14 queries.