Skip to content

Current questions and answers regarding the map editor.

#1123
Auto-translated
Oligarch
How can I give a player, for example, sulfur, using scripts? There are two commands: SetPlayerResources and ChangePlayerResources, or something like that. In both cases, this happens: for example, I set the script to give 10 crystals, but the player already has 20. When the script is "activated," the player ends up with 10 crystals.


You probably messed up the script – I suspect that the computer is giving your player 10 crystals because that's exactly what you wrote in the script. ;)

Post the source code.

Statistics

Welcome our newest member: artem

Users Online 1 users 1477 guests