Inn takes equipment away from the player when ever she trys to pay for a bed.
i had an inn event where. the inn gaved said player a special ammount of gold.
so i had set it up using the normal auto generated inn npc. added in
- 500 gold for example. well the player had way more then enough but then
all her equipment was taken off and sold D: not if this is an engine issue or something else.
i have fixed it but i like to know what causes this so i can avoid this problem.
THE THIEVING PUNKS! I demand a refund!
On the serious though, can you post a screen shot of the event page?
I don't understand if your description is what is supposed to happen but you just can't get it to work, or if it's what IS happening and you want it to work differently. You said the inn keeper GIVES the player gold, but then that the player has more than enough gold - for what if the inn keeper is giving gold rather than taking it?
Please explain fully what SHOULD happen, then what IS happening, making it clear which is which. And the screenshot so we can see how you're doing it.
the problem is. the money being taken which is what i want but it is also taking equiped gear as well which i don't didnt want. i am forced to make it a visual effect more then an actual cash remove effect D: it is only the inn this has happend.
i done this. and instead of only taking the 500 bones (gold for my game) it takes the gold AND anything an all that is in inventory that is equipment
Hmm, what's on page 2 meow?
Hmm, this might be a conflict with plug ins that aren't shown, but you may consider using a conditional branch per normal, and if they players don't have the gold, just make it unable to advance the plot until they come back with the requisite gold. I just see it takes 500 gold, and throws the switch anyways, without checking to see if you HAVE the gold to begin with. In a conditional branch you can set it to greater than or equal to 500 gold and the "IF" branch triggers if you don't and sends you on your restless way. Meow.
So you got it working proper?
So are you using gold or bones? If you're using bones and not gold, and bones is an item, use Control Variables to get the number of bones in inventory into a variable. Then a conditional branch to see if the variable is greater than or equal to 150.
I'm assuming you have some kind of multi-currency plugin but I haven't used those so don't know how they're meant to work or why it may not be working for you.
OP, as an added note, instead of typing out the name of your currency in dialogs, such as:
You don't have enough bones.
You should consider using \G instead. Thus:
You don't have enough \G.
When the text is rendered in the dialog box, \G will be replaced with whatever your currency is called.
That way, if for some reason you ever decide to rename your currency, you won't have to go back and fix every single dialog in the game to reflect the change.
Thank you Aesica. as for my issue it only works so long as coin is not force removed : (
oh thanks to yanfly i can rename the gold to something else : ) with custom icon to go with it. the problem comes when i try to force remove things outside of the inn boundaries.
instead of it being set to default 150/g i had it force to remove - 500 OH!!!!!! i think i see what i done goofed : o thank you guys ^^