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.
Variable Question

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 91
I need sme quick help,How do you make a variable equal 0? Im using the number seven and i need it to equal 0 at a certain point.(RM2K/3)
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Variable Operations - Set Equal to 0.
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

**
Rep: +0/-0Level 91
I know for this i put i"Branch If VariaBLE IS 0 then message but i need it so whenever i do something it takes one away form it,im trying to work a mining system
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Like you want it so taht if a person finds some ore, or something they take away numbers and when the number equals 0 it shows the message. Explain your mining system more indepth and I'll make you the whole system. :roll:
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

**
Rep: +0/-0Level 91
theres some rocks that you can mine
each rock carries 7 pieces of ore,and i have so Radnom Variable generates a number from 1-5.If it's equal or greater than 3 you don't find anything but 2 or less you find one. Once you find 7 the message is supposed to say something like"You've mined all the ore from the rock". every time you get ore you gain 3 mining Experience. if this is alittle confusing i can type out what i have, and i'm not a noob, just dont know aabout this(not saying you called me one)
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Hmm, post what you have so far, I'll seee what else you need to add.
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

**
Rep: +0/-0Level 91
Code: [Select]
Message:Let's See what you find
Variable Operation:[3:Ore amount]Set,7
Varaible Oper:[1:Random Variable]Set,Rnd[1-5]
Branch:If Var:[1:Random Variable]is 2 less/equal
    Message:You found yourself a piece of ore form the rock
    Message:Your mining Experience is now \v[2]
    Add Item:Ore+1
    Variable Oper:[4:Guards Ore]+1
    Variable Oper:[2:Mining Exp]+3
    Variable Oper:[3:Ore amount]-1
   
Else Handler:
Branch Var: Random Variable is 3Equal/Greater
Message:Looks like you found nothing

Else Handler:
Branch if Var:[Ore Amount] is,0
Var Oper:[Random Varaible]Set,0
Message:looks liek there's no more rock.

End

End

End
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Make an auto start event, and move this line into it:

- Variable Operation:[3:Ore amount]Set,7

Then add

- Switch Operation [XXX:Ore Start] ON

Then click the New Page button.

Under Preconditions you should see two empty checkboxes with the name Switch wirtten next to it. Check the first one and set the switch for the one you just used.

On this page put the Trigger Condition as ACTION KEY.

Your problem was that you made it restart to 7 each time you find a new one, that way it will never end. This way it should end properly.

Did that help?
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

**
Rep: +0/-0Level 91
so auto start for each one?
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Code: [Select]
Message:Let's See what you find
Varaible Oper:[1:Random Variable]Set,Rnd[1-5]
Branch:If Var:[1:Random Variable]is 2 less/equal
    Message:You found yourself a piece of ore form the rock
    Message:Your mining Experience is now \v[2]
    Add Item:Ore+1
    Variable Oper:[4:Guards Ore]+1
    Variable Oper:[2:Mining Exp]+3
    Variable Oper:[3:Ore amount]-1
   
Else Handler:
Branch Var: Random Variable is 3Equal/Greater
Message:Looks like you found nothing

Else Handler:
Branch if Var:[Ore Amount] is,0
Var Oper:[Random Varaible]Set,0
Message:looks liek there's no more rock.

End

End

End


Those are your mine events. You place them on ACTION KEY where you want the playet to hit the rocks and search for them.

The event I told you to make is one far out from reach, preferably on a corner of the map, it just activates the whole thing.
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

**
Rep: +0/-0Level 91
I put it on autostart now i can't move
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
Code: [Select]
Make an auto start event, and move this line into it:

- Variable Operation:[3:Ore amount]Set,7

Then add

- Switch Operation [XXX:Ore Start] ON

Then click the New Page button.

Under Preconditions you should see two empty checkboxes with the name Switch wirtten next to it. Check the first one and set the switch for the one you just used.

On this page put the Trigger Condition as ACTION KEY.

Your problem was that you made it restart to 7 each time you find a new one, that way it will never end. This way it should end properly.

Did that help?


Did you read the whole thing?
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

**
Rep: +0/-0Level 91
for soem reason it's still not working, get what you were saying,but now its just not working,still doing the same thing
I like to feast on souls,what about you?
http://kune-tear.deviantart.com/
Please visit, and if your in to awesome anime visit this link,no joke.
http://lightmusashi.deviantart.com/

******
Rep:
Level 91
don't auto start.. it's only of use for intros it's bah -.-

what you want to do is something like:
make a parallel process and do:
If switch(rock reset)=on then
-rock1=7
-rock2=7
-rock3=7
-and so on.
-switch(rock reset)=on

under the if, but outside of it, make a condition for each rock

if rock1=0 then
-switch(dead rock1)=on
else
-switch(dead rock1)=off
-change rock1's graphics(normal stone)
(note: the else is here so that if you'll do some "rock reviving" npcs the rocks will return to life)

now make the rock events, setted on action key
if switch(dead rock1)=off then
-dead rock=dead rock-1
-mining exp= mining exp+1
-change items: ore+1
-rock1= rock1 -1
else
-change graphics(stone pile)
-message: looks like you wasted the entire rock!

to the rock thingy you can of course add randomize, d"d alread explained it
holy shit my sig was big!

***
Rep:
Level 89
Badass, and a do'er not a thinker

******
Rep:
Level 92
Welcome Poster of Year 2006 Award
All I told him was to use Auto Start for the first page of the start event. The rest to keep Action Key.
Do you want to be part of a growing Gaming Community, with many galleries, comics, active community, and gfx artists? Also known to be friendly. Also want some free anime music just for signing up? Play in the arcade?



Click Community Forums to join!

< Zelda Fan Club

****
Rep:
Level 91
Ignore mining experience right now, the problem is you had a line that set the amount of ore in the rock at 7 EVERYTIME YOU MINED. Key words there. Do what you were orignally tole to do by Diablo, and you should be fine. The most recent problem you have experienced is because you forgot to turn the switch that fliped to the 2nd on. And a line to do that.