View previous topic :: View next topic |
Author |
Message |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Tue Feb 04, 2003 6:33 am Post subject: Downloadable Plotscript Library |
|
|
Sometime ago, I made a plotscripting library with quite a few helpful commands. So, I'm just here to post the link to it. I won't go into detail, since I have a webpage for that .
Cube's Utility Library
And please, if anyone has suggestions for new commands, let me know. If it's a command that will be useful, then I'll add it and give you credit for the suggestion. The more commands this thing has, the better.
Last edited by Cube on Wed Apr 14, 2004 7:23 am; edited 2 times in total |
|
Back to top |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Wed Feb 05, 2003 1:36 am Post subject: |
|
|
I usually make my own "commands" as I go along in my scripts to shorten them and make them easier to read, so if I make any I'll be sure to hand them to you. _________________
 |
|
Back to top |
|
 |
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Sat Feb 08, 2003 7:06 am Post subject: |
|
|
I don't know how exactly the whole .lib thing works, but I put these in the same kind of format the commands are in in your utility.lib file.
Code: | Define script (autonumber,Remove Equipment,1,0)
Script, Remove Equipment, hero, begin
Unequip (find hero (hero),0)
Unequip (find hero (hero),1)
Unequip (find hero (hero),2)
Unequip (find hero (hero),3)
Unequip (find hero (hero),4)
#useful if a character leaves the party temporarily or permanently so that
#his equipment can be equipped to someone else or sold
End
|
That isn't hard to do even without the thing there, but it saves a lot of time.
Code: | Define script (autonumber,Set NPC Z,2,0,0)
Script, Set NPC Z, npc, z, begin
Put npc (npc,npc pixel x (npc),npc pixel y (npc) -- z)
#it has to be ‘minus’ the z to go up, as the OHR editor has 0 at the top and the
#highest number at the bottom and the npc can only change it’s position in
#pixels, in cannot actually overlap the hero or npcs that normally appear over
#it… so it's best for set events
end
|
Also not terribly complicated, but saves time... and whenever I do it myself I keep forgetting the minus thing and using + the number, making it lower, so that's good for me...
Do you think they're good or bad?
EDIT: Also, I can't seem to download the utility.lib file. It just has the text appear in the browser like with a .txt file, so I can only copy and paste it. Will it work if I save it as a .txt, or do I need to save it as a .lib, and if I do do I need to save it with some special program? I don't know anything about that kind of file, obviously. Sorry for all the questions! _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
 |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Sat Feb 08, 2003 9:23 am Post subject: |
|
|
I think those commands will be okay. A lot of those commands are already short cuts, like "Box Wait".
Also, if ANYONE is having trouble downloading the file, just right click the link and then save it.
To use it, just include it into the plotscripting file you use, like you do with other files. Then you can use the commands. |
|
Back to top |
|
 |
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Sat Feb 08, 2003 9:37 pm Post subject: |
|
|
If I right-click the link I only get the options Open, Open in a new window, Copy Shortcut, Add to Favorites and Properties. If I go to the file and I right-click in there, I just get options like Back, Select all, Print, and some of the first ones. If I copy and paste it into notepad or word and save it as .lib should it work? _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Sun Feb 09, 2003 2:48 am Post subject: |
|
|
There SHOULD be a "Save Target As" choice. What browser do you use? _________________
 |
|
Back to top |
|
 |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Sun Feb 09, 2003 2:50 am Post subject: |
|
|
Yeah that should've worked, but I decided to put the library in a ZIP file. So now nobody should have any problems. |
|
Back to top |
|
 |
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Sun Feb 09, 2003 8:40 am Post subject: |
|
|
Thanks, sorry about that! Anyway, my computer only let's me use 'save target as...' if it sees it as something that can't be viewed as a normal webpage, so I guess it decided to just open this kind of file up like that... _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
 |
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Tue Feb 11, 2003 11:48 pm Post subject: |
|
|
Something you may already have known: While 'Delete Spell' is a command listed in the utility file, it isn't listed on the site. Some people probably don't know it's in there. _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
 |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Wed Feb 12, 2003 5:08 am Post subject: |
|
|
Delete spell isn't working yet . I'll get it working one of these days... |
|
Back to top |
|
 |
Blazes Battles Inc. I'm a chimp, not a
Joined: 25 Jan 2003 Posts: 505
|
Posted: Wed Feb 12, 2003 2:52 pm Post subject: |
|
|
Oh heh, sorry, nevermind then. *shuts mouth* _________________ Preserve OHR history! Do it for the children! |
|
Back to top |
|
 |
Seth Hardcore Reviewer

Joined: 03 Feb 2003 Posts: 170 Location: Gold Coast, Australia
|
Posted: Fri Mar 07, 2003 5:35 am Post subject: |
|
|
Wow, that's pretty cool. You could teach Paige a thing or two. _________________ Missing in Action
----------------------------------------------------
Cardcaptor Stacey
James Paige
Embattled Productions Home |
|
Back to top |
|
 |
NeoRicen

Joined: 05 Mar 2003 Posts: 21
|
Posted: Mon Mar 31, 2003 8:52 am Post subject: |
|
|
How do I get the Run on Key Press to work, I tried but it doesnt work and I have no doubt that I did something wrong... |
|
Back to top |
|
 |
Guest
|
Posted: Tue Apr 01, 2003 8:41 pm Post subject: |
|
|
The "Run If Key is Pressed" is no good. I made the same script about a year or so ago, and it had high potential for bugginess. If I still had my scripts from Dante, I could give you my "Run If Key is Held" script from ORBituaries and Magnus XVII, but I have no way of getting those scripts... |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Tue Apr 01, 2003 8:44 pm Post subject: |
|
|
Okay, that was weird... Why didn't it log me in for that previous message?
And Seth, he couldn't teach Mr. Paige anything. Trust me. Paige is a freaking plotscripting genius. Moogle1's got nothing on him. |
|
Back to top |
|
 |
|