RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[xp] please convert this simple conditional branch into script. [solved]

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 67
RMRK Junior
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 !
« Last Edit: August 20, 2011, 01:40:42 PM by kenth21v »

*
Rep:
Level 82
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?)

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
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

**
Rep:
Level 67
RMRK Junior
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 :)

**
Rep:
Level 82
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.