![]() |
200 MP
I am trying to create an NPCw to make it seem as though the player has 200 MP. It will be an item the player may purchase. Anyways, I was wondering if anyone could figure out why this doesn't work...
NPC Code: |
*bump*
|
NPC Code: This might work, im not sure. Im too tired to load up the editor so....You just have to try it. |
Quote:
I thought maybe it was working because of the order of operations... NPC Code: That didn't work either. |
You should...should...wait for Kaimetsu to get back. He could help you out. :) God knows when he'll be back though...
|
Quote:
|
I think I saw in another thread that he lost internet access. :( We don't have the Script Monkey...
|
Quote:
|
Your avatar = Creeps me out.
|
Re: 200 Mp
Quote:
|
I do!!!
if (pleyertouchsesmeh) { pleyahM-pee + = 100; } Kaimetsu will be missed! :( |
Quote:
|
Pay no attention to the strange ones, Vash. :D
|
Quote:
|
Quote:
|
Quote:
No sense :( |
Quote:
|
Hmm. It seems as though you use the variable this.playermagic to hold excess magic. Please tell me what you are trying to do in the 'if (this.playermagic>playermp) {' section. If you tell me what you are trying to create, I can create it for you. But, your code makes no sense to me. =P
|
Quote:
|
Jadis:
NPC Code: |
Re: 200 MP
Quote:
if (playerenters) { toweapons -200MP; } while (this.magic != playermp) { if (this.magic>playermp) { playermp = int((this.magic-playermp)/2+playermp); }else{ this.magic = playermp; } } |
Not much makes sense theses days :(
And I am stupid and should stick to level design :( |
None of the worked :(
I'll just make it so when the player has -200MP the flag 200MP is set. In the NPCs that use magic it will deduct half when 200MP is true. Thanks to all who tried to help :) |
maybe you should try to make the mp-bar longer
with imgvision and stuff.. |
| All times are GMT +2. The time now is 12:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.