Main Menu

[xp] please convert this simple conditional branch into script. [solved]

Started by kenth21v, July 27, 2011, 07:32:45 AM

0 Members and 1 Guest are viewing this topic.

kenth21v

Conditional Branch: [Page1] in inventory
@> Text: Page 1 required!
Branch End
[Page 1] is the item i need to be required before an event should run.

thanks !

LoganF

Why does this need a script may I ask?

You can do this with the Conditional Branch as it is. Perhaps I am misunderstanding something (and I am probably not alone in this)?
(Why do I always feel like it's the end of the world and I'm the last man standing?)

pacdiggity

To properly convert it into script, we would need to know the ID of the item in the database.
it's like a metaphor or something i don't know

kenth21v

well what i really need to know is the "in inventory" code.
i want it to be in script because I made a GATE locked and it will only be unlock if all the pages required is already acquired. For example in a GATE it requires pages 1 to 50 to unlock. just like that.
well i did:
Conditional Branch: [Page 1] in inventory
    Conditional Branch: [Page 2] in inventory
         Conditional Branch: [Page 3] in inventory

and so on and so on..
    Branch end
Branch end

i want it to be scripted to easily code it by its ID. because when using this conditional branch too many, some of it is cannot be seen. it is too much on the right side of the window. and it is too long. i hope you understand what i mean.
what i want to know is how to detect items in the inventory using scripts
the name is the database is simply the number right ? 033: Page1 and 034: Page2 like that.
Thanks :)

ForeverZero

Why not just increase a variable once every time a page is collected by the party, and simply check if that variable is equal to the number of pages needed?  This is kinda assuming each page is a unique item where only one can be collected, but if that is the case, this way would be much easier.