Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Some Plotscripts that i need...

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
BlastedEarth




Joined: 05 Oct 2009
Posts: 243

PostPosted: Tue Nov 10, 2009 7:37 am    Post subject: Some Plotscripts that i need... Reply with quote

I'm stuck in my game making because i can't figure out some stuff, any help would be appreciated...

1. I have a mission that needs to give 20 pieces of an item type to the player, how do you plotscript that?

2. When the item is in the inventory it turns on a specific tag, how do i turn the tag off when the items are no longer in the inventory?

3. How do i take away not just one item from a player but lets say 5 or 6 or 7?

Thank you very much...

P.S.
If you need extra sprites or tilesets I can make some for you to show my gratitude somehow....
Back to top
View user's profile Send private message
Bagne
ALL YOUR NUDIBRANCH ARE BELONG TO GASTROPODA




Joined: 19 Feb 2003
Posts: 518
Location: Halifax

PostPosted: Tue Nov 10, 2009 8:52 am    Post subject: Reply with quote

Do you know how to write plotscripts?
If not, and you're feeling apprehensive about learning to write plotscripts, don't be - the plotscritpting tutorial is very good and shouldn't take longer than an afternoon to do. I highly, highly recommend doing it.

The tasks you are describing aren't very complicated. This is how I would do them:

1) Text boxes can give items - but only 1 at a time. To give 20 in one shot, you need a plotscript. As it turns out, it's a very simple one.
Make a text box that says "Hooray! You recieved 20 thingamajigs!", and in the conditionals, have it call the following plotscript:

Code:

Plotscript, get_20_thingamajigs, begin
get item (item number or item name,20)
end


If you don't know how to compile and import plotscripts the plotscripting tutorial will explain everything you need to know.

2) I don't think you need a plotscript for this. I seem to remember items as having a "Have Item" tag. Use this instead.

3) Taking items away is as easy as adding them.
This command removes 6 items:
Code:

delete item (item number or item name, 6)


I'm not sure what happens if you tell it to remove more items than the player has - probably then it just removes however much the player has left.

The Plotscripting dictionary is very well organized. Almost any kind of command you can imagine can be found in the dictionary - just search over the page using your browser's text search.
_________________
Working on rain and cloud formation
Back to top
View user's profile Send private message
BlastedEarth




Joined: 05 Oct 2009
Posts: 243

PostPosted: Tue Nov 10, 2009 11:44 am    Post subject: Reply with quote

Thank you very much, mister, now i can proceed with the story... About the tags im still waiting for the result in the bug file, ive filed a bug it seems even if the items are nowhere in the inventory the tag is still on. But might you know of a way to turn the tag off using plotscript?

I'll also try plotscripting thanks again :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group