How can you make a custom interface with CRPL? I seen maps that have buttons with images you can click. One had a button to build walls. A button with a wall and it's cost. Can someone show me a example of how to do this?
Since I lack the information on how to do this, I can give you an alternative:
If you know what map it is you can view it's source. This includes all CRPL scripts.
Click here (http://knucklecracker.com/wiki/doku.php?id=crpl:crpltutorial:code_examples) to find out how to import a map and view it's source.
If you don't mind, I'd like to know what map(s) has/have such custom graphical elements. So listing their names here would be much appreciated.
I found out how to do it. You call setscreenmode and the core is no longer attached to the map setscreencords sets it's position but I will have to search for someway to detect if the player clicks on the button
That's done very easy actually.
First you call either GetMouseButton (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getmousebutton), GetMouseButtonDown (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getmousebuttondown) or GetMouseButtonUp (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getmousebuttonup) (I suggest GetMouseButtonUp (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getmousebuttonup)).
Since you know where you set your button, you just check if the mouse is on top of your button with GetMousePosition (http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getmouseposition) when the mouse button has been pressed.