• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Script 2 Money Remove

Shou Liengod

Active Member
Trusted Support
i know theres a script that you can give Money to yourself, but i dont see anything that relates removing, meaning no way to "spend" money via custom events. i propose such a command to exist. unless it does, then the wiki is very vague about that.
 

nilllzz

Original Developer
Administrator
P3D Developer
Use the same script with a negative amount.
@player.money(-100) will remove 100 Pokédollar.
 

Shou Liengod

Active Member
Trusted Support
Use the same script with a negative amount.
@player.money(-100) will remove 100 Pokédollar.
ah there we go. thank you Nillz for clearing that up.
i would propose to add instructions on what each command does and its functions to prevent future confusion.
like the money command, it doesnt say the example on removing.
this should be applied to all other commands that has multiple functions that arnt listed.

thank you again Nillz
 

nilllzz

Original Developer
Administrator
P3D Developer
Well "Adds the given amount to the player's money" kinda is still true. When you add -100 to something, that means the following:
"money +(-100)", which is "money - 100".
 

Shou Liengod

Active Member
Trusted Support
right, which was a bit vague in the description, which is why i said that.
another prime example is the wearskin command. however it involves the storeskin command (or whats its called), which was not explained till confronted the misunderstanding in a previous post.
 

nilllzz

Original Developer
Administrator
P3D Developer
right, which was a bit vague in the description, which is why i said that.
another prime example is the wearskin command. however it involves the storeskin command (or whats its called), which was not explained till confronted the misunderstanding in a previous post.
I don't quite know what you are talking about. The only commands that change the skin are @player.wearskin and @player.setonlineskin.
 

Shou Liengod

Active Member
Trusted Support
I don't quite know what you are talking about. The only commands that change the skin are @player.wearskin and @player.setonlineskin.
the change skin part is a no brainer, but to revert back to your previous skin is the problem. it requires the storage command (which was not explained in the wiki) to revert back. this poses a problem on beginner gamemode creators when using different starter skins.
 

nilllzz

Original Developer
Administrator
P3D Developer
the change skin part is a no brainer, but to revert back to your previous skin is the problem. it requires the storage command (which was not explained in the wiki) to revert back. this poses a problem on beginner gamemode creators when using different starter skins.
It's most likely better documented in the script library.
 

Shou Liengod

Active Member
Trusted Support
right, but stuff like this is kinda why im a bit effy on the new scripts, though its not hard to learn it. but the old scripts are more comfortable to handle then the new ones.
its my opinion anyway, but either way adjusting to the new scripts is a bit tricky, and the wiki doesn't explain much till i have to see examples being done via in-game and or discuss it with my fellow Poke3D players. i know its a handful to hear me moaning and whine about it hence your busy as is with Server upkeep, game development, and other stuff related to your own interest. its my part to adjust but thats all.

thanks for reading Nillz
 

nilllzz

Original Developer
Administrator
P3D Developer
right, but stuff like this is kinda why im a bit effy on the new scripts, though its not hard to learn it. but the old scripts are more comfortable to handle then the new ones.
its my opinion anyway, but either way adjusting to the new scripts is a bit tricky, and the wiki doesn't explain much till i have to see examples being done via in-game and or discuss it with my fellow Poke3D players. i know its a handful to hear me moaning and whine about it hence your busy as is with Server upkeep, game development, and other stuff related to your own interest. its my part to adjust but thats all.

thanks for reading Nillz
Well, I don't really see how the new scripts are hard to handle. Maybe just because you don't know them.
But the new scripts have a much better style, and it even has a consistent syntax. You can do so many complex things with it, there are while loops, much more flexible if and when constructs and even stacked scripts.
From an objective point of view, there are no negative points of the V2 scripts compared to the V1 ones.
 

Shou Liengod

Active Member
Trusted Support
i agree, as i said its not hard to learn it. just a bit more effy to use. though theres alot you can do on it, but i guess i grown too much of the V1 Scripts.
 

nilllzz

Original Developer
Administrator
P3D Developer
i agree, as i said its not hard to learn it. just a bit more effy to use. though theres alot you can do on it, but i guess i grown too much of the V1 Scripts.
"effy" doesn't equal bad. For more complex features, the syntax has to become more complex. But yeah, stuff like the Battle Factory in the game are now possible without adding specific constructs or commands, because the existing ones are really flexible.
 
Top