Hey guys how can i add New scripts?
- Go to your Graal Reborn folder and open up the GraalEditor.
- View the level options at the top (New, Close, Open, Save, and Save As).
- There is a chalk outline on the right in a menu called “Baddies, Npcs, Chests.”
- Click the chalk outline and grab it to the center of the level.
- Double click the chalk outline and there is a document in the right that shows all the commands.
If you want some example scripts, there are plenty on the forums. Here’s one right now.
if (playerenters){ //When the player enters
timereverywhere; //So that it works online with other players (This is needed for timeouts too)
setimg door.png; //Set the Npc's image to door.png
}
if (playertouchsme){ //If the player touches this object (Yes for some odd reason it's playertouchs)
hide; //Hide me
sleep 1; //Sleep for one second (This will stop the script so that the door remains hiding)
show; //And show again
}
Do not use that script. Putting in timereverywhere when it’s not needed can fuck up a script.
It is needed. If you don’t use timereverywhere with a sleep, shit fucks up. I’ve tested it several times.
Naw. Don’t need it.