Scripting, Code & Interaction: Difference between revisions
Jump to navigation
Jump to search
→Taking away score points.
Line 238: | Line 238: | ||
==Taking away score points.== | ==Taking away score points.== | ||
''How would I have my character lose points (say, if using the score as money)? Is there a script function for this?'' | |||
There is a much easier way to do this than through scripting. Just use the "gain points" interaction in the Interaction Editor. Place it wherever you want this action to occur. Just put in a '''negative number''' to decrease the score. | |||
However, if you must use script, check out the '''GiveScore()''' score, using a negative number as a parameter there as well. | |||
==Changing the names of characters, hotspots, objects, and inventory items in the middle of gameplay== | ==Changing the names of characters, hotspots, objects, and inventory items in the middle of gameplay== | ||
==How to play movies and video files (AVI, MPG, WMV, etc.)== | ==How to play movies and video files (AVI, MPG, WMV, etc.)== | ||
[[Category:The AGS Beginners' FAQ]] | [[Category:The AGS Beginners' FAQ]] |