Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


How to Make a Simple Prop Script

Solution Scripts Music Images WWW Tweaks/How to's Server & Programs Voice Sound PChat Security Contact Us Us

Hover mouse on each icon for information

How to Make a Simple Prop Script:

1. First, be sure that the prop pieces you want to use are all named.

2. Lay them out the way you want them to come up when you say the command.

3. Now type in /showlooseprops and hit return. Did you see it? Look in the log. It's the position of every named piece. It should look like this:

"purc6" -2 339 ADDLOOSEPROP
"purc33" 470 295 ADDLOOSEPROP
"purc63" 469 339 ADDLOOSEPROP
"purc3" -3 295 ADDLOOSEPROP
"purc2" 74 295 ADDLOOSEPROP
"purc2" 118 295 ADDLOOSEPROP
"purc5" 29 339 ADDLOOSEPROP
"purc5" 73 339 ADDLOOSEPROP
"purc5" 117 339 ADDLOOSEPROP
"purc2" 30 295 ADDLOOSEPROP
"purc2" 162 295 ADDLOOSEPROP
"purc5" 161 339 ADDLOOSEPROP
"purc2" 206 295 ADDLOOSEPROP
"purc5" 205 339 ADDLOOSEPROP
"purc5" 249 339 ADDLOOSEPROP
"purc2" 250 295 ADDLOOSEPROP
"purc2" 294 295 ADDLOOSEPROP
"purc5" 293 339 ADDLOOSEPROP
"purc5" 337 339 ADDLOOSEPROP
"purc2" 338 295 ADDLOOSEPROP
"purc2" 382 295 ADDLOOSEPROP
"purc5" 381 339 ADDLOOSEPROP
"purc5" 425 339 ADDLOOSEPROP
"purc2" 426 295 ADDLOOSEPROP

what's in the "'s are the prop piece names and the numbers are the coordinates they're in.

4. Highlight that part and hit copy.

5. Now you get to write the actual script. Open Notebook or whatever word processor you use and type in { . That is the beginning of all scripts. Then you can type in something using a ; to say what the script is. Anything after ; on the same line is for personal notation, and it doesn't get read when the script is executed.

example:

{ ;blue couch

6. Now simply enough, just paste everything you copied on the next line.

example:

{;blue couch

"purc6" -2 339 ADDLOOSEPROP
"purc33" 470 295 ADDLOOSEPROP
"purc63" 469 339 ADDLOOSEPROP
"purc3" -3 295 ADDLOOSEPROP
"purc2" 74 295 ADDLOOSEPROP
"purc2" 118 295 ADDLOOSEPROP
"purc5" 29 339 ADDLOOSEPROP
"purc5" 73 339 ADDLOOSEPROP
"purc5" 117 339 ADDLOOSEPROP
"purc2" 30 295 ADDLOOSEPROP
"purc2" 162 295 ADDLOOSEPROP
"purc5" 161 339 ADDLOOSEPROP
"purc2" 206 295 ADDLOOSEPROP
"purc5" 205 339 ADDLOOSEPROP
"purc5" 249 339 ADDLOOSEPROP
"purc2" 250 295 ADDLOOSEPROP
"purc2" 294 295 ADDLOOSEPROP
"purc5" 293 339 ADDLOOSEPROP
"purc5" 337 339 ADDLOOSEPROP
"purc2" 338 295 ADDLOOSEPROP
"purc2" 382 295 ADDLOOSEPROP
"purc5" 381 339 ADDLOOSEPROP
"purc5" 425 339 ADDLOOSEPROP
"purc2" 426 295 ADDLOOSEPROP

7. Now the last part, the command line. Well that's what I call it, I don't know what it's actually called.

"" CHATSTR = } CHATSTR "bluecouch" == IF

That basically says that if you say bluecouch to run the script. If you want further details, check out the Scripting lessons.

8. The finished script should look like this:

{;blue couch

"purc6" -2 339 ADDLOOSEPROP
"purc33" 470 295 ADDLOOSEPROP
"purc63" 469 339 ADDLOOSEPROP
"purc3" -3 295 ADDLOOSEPROP
"purc2" 74 295 ADDLOOSEPROP
"purc2" 118 295 ADDLOOSEPROP
"purc5" 29 339 ADDLOOSEPROP
"purc5" 73 339 ADDLOOSEPROP
"purc5" 117 339 ADDLOOSEPROP
"purc2" 30 295 ADDLOOSEPROP
"purc2" 162 295 ADDLOOSEPROP
"purc5" 161 339 ADDLOOSEPROP
"purc2" 206 295 ADDLOOSEPROP
"purc5" 205 339 ADDLOOSEPROP
"purc5" 249 339 ADDLOOSEPROP
"purc2" 250 295 ADDLOOSEPROP
"purc2" 294 295 ADDLOOSEPROP
"purc5" 293 339 ADDLOOSEPROP
"purc5" 337 339 ADDLOOSEPROP
"purc2" 338 295 ADDLOOSEPROP
"purc2" 382 295 ADDLOOSEPROP
"purc5" 381 339 ADDLOOSEPROP
"purc5" 425 339 ADDLOOSEPROP
"purc2" 426 295 ADDLOOSEPROP
"" CHATSTR = } CHATSTR "bluecouch" == IF

9. Once you've done it, you'll realize that it actually takes less steps than this. Now you just put it into the ON OUTCHAT part of your script. Go to File at the top of the Palace toolbox and click on Reload Script. Now say the command and it should work fine.

 
Was this article helpful? yes / no
Article details
Article ID: 229
Category: How To Do It
Date added: 07-11-2011 20:52:10
Views: 705
Rating (Votes): Article not rated yet (0)

 
<< Go back

Powered by Help Desk Software HESK™