Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
24 May, 2013, 03:51:30 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: nooboish prgrammer -  (Read 1634 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #15 on: 23 November, 2011, 04:37:52 »
0

thanks but then how do you make it so it specifically says 0 potions and choosing that off the menu will work like other functions in a menu. Also once a list is created can you alter it by for example you use a potion or you find a potion. THX guys I just joined and am getting all of these replies makes me like the omnimaga community.

edit: in response to chattahippie
« Last Edit: 23 November, 2011, 04:39:58 by obon7 » Logged

mrmprog
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 28 September, 2012, 05:58:25
Date Registered: 15 February, 2011, 01:35:36
Location: Somewhere
Posts: 559


Total Post Ratings: +34

View Profile
« Reply #16 on: 23 November, 2011, 04:40:21 »
0


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
:Lbl M
:"for main menu
:Menu("Options","Rest",1,"Fight"'
:Lbl 1
:...Stuff
:Goto M
:Lbl 2
:Menu("Fight","Use Sword",3,"Use Bow",4,"Back",M
:Lbl 3
:...stuff
:Goto M
:Lbl 4
:...stuff
:Goto M
Like this?
Logged

saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #17 on: 23 November, 2011, 04:40:53 »
0

there are ways, like I said, I could do all this in like 1 hour in axe lol Smiley
and just so you know you should double post within 6 hours, just use the modify button! Smiley
« Last Edit: 23 November, 2011, 04:41:39 by saintrunner » Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #18 on: 23 November, 2011, 04:47:24 »
0

I guess it may not be possible but I envision more like in the menu that I have posted you could simply choose inventory and that would take you too a different screen that shows all the items you have found or bought and be able to use for example a health potion or something.
Logged

chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #19 on: 23 November, 2011, 04:47:24 »
0

Okay, here is the code for a simple menu:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"Set up variables
{0,4,5->L1
2->Y
"Y will be used for the cursor
0->G
"G will be for key presses
Output(1,1,"INVENTORY
Output(2,2,"Potions
Output(3,2,"Apples
Output(4,2,"Feathers
Output(2,10,L1(1
Output(3,10,L1(2
Output(4,10,L1(3
While G=/=23
"23 is the code for [mode]
getKey->G
If Ans =/=0
Then
Output(Y,1,"_"
"Where _ is space
Y+(G=34)(Y=/=4)-(G=25)(Y=/=2)->Y
Output(Y,1,">
"Then for jumping to other code
If (G=105) and (Y=2)
Goto PO
" jump to potion code or code potions here
If (G=105) and (Y=3)
Goto AP
"apple code jump or here
"repeat for Feathers"
End
End
Try that, should work okay
Tell me if you have questions, or if it doesn't work Grin
Logged
mrmprog
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 28 September, 2012, 05:58:25
Date Registered: 15 February, 2011, 01:35:36
Location: Somewhere
Posts: 559


Total Post Ratings: +34

View Profile
« Reply #20 on: 23 November, 2011, 04:49:06 »
0

If you want something like this:

Where it shows how many potions you have, tell me.
You can use a custom menu, or a manipulated OS one
« Last Edit: 23 November, 2011, 04:49:52 by mrmprog » Logged

obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #21 on: 23 November, 2011, 04:51:31 »
0

Okay, here is the code for a simple menu:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"Set up variables
{0,4,5->L1
2->Y
"Y will be used for the cursor
0->G
"G will be for key presses
Output(1,1,"INVENTORY
Output(2,2,"Potions
Output(3,2,"Apples
Output(4,2,"Feathers
Output(2,10,L1(1
Output(3,10,L1(2
Output(4,10,L1(3
While G=/=23
"23 is the code for [mode]
getKey->G
If Ans =/=0
Then
Output(Y,1,"_"
"Where _ is space
Y+(G=34)(Y=/=4)-(G=25)(Y=/=2)->Y
Output(Y,1,">
"Then for jumping to other code
If (G=105) and (Y=2)
Goto PO
" jump to potion code or code potions here
If (G=105) and (Y=3)
Goto AP
"apple code jump or here
"repeat for Feathers"
End
End
Try that, should work okay
Tell me if you have questions, or if it doesn't work Grin

That might work although I don't think that if you ran out of health potions they would  disappear , also you might want to use disp instead of output ; unless that is on purpose.
Logged

obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #22 on: 23 November, 2011, 04:53:02 »
0

also I don't have much experience with using getkey .............. hehehe like I said I'm kind of  a noob.
Logged

chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #23 on: 23 November, 2011, 04:55:09 »
0

You could use Disp for the first 4 Outputs, just be sure to put a space in front of the items. The final three must be Output commands
And no, the potions would not disappear if you had zero; you would have to check in the code to see if you had potions before you used them
For example,
Where I said If (G=105) and (Y=2)
You should change to If (G=105) and (Y=2) and (L1(1)>0)
This will check to see if there are any potions left, and will run the code following it only if all of the conditions are met
Logged
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #24 on: 23 November, 2011, 05:01:44 »
0

so i am just wondering if the getkey stuff is necessary because wiht a normal menu you could just use the arrow keys numpad and enter button. Questions: does it specifically say how many potions there are on the menu and does every item availble in the game need to be already existing in the menu and if so will it show how many you have so( not yet fouund items will display a 0 next to the name)
Logged

obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #25 on: 23 November, 2011, 05:03:19 »
0

output allows you to display something at a certain point
for example:
:output(1,1,"hi"

will make it appear at point 1,1 on the screen, or the upper left corner!

AND DON'T DOUBLE POST!

and read this  http://www.ticalc.org/programming/columns/83plus-bas/cherny/
Yeah i looked there but It didn't help that much also another person said to double post so........
Logged

chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #26 on: 23 November, 2011, 05:08:35 »
0

output allows you to display something at a certain point
for example:
:output(1,1,"hi"

will make it appear at point 1,1 on the screen, or the upper left corner!

AND DON'T DOUBLE POST!

and read this  http://www.ticalc.org/programming/columns/83plus-bas/cherny/
Yeah i looked there but It didn't help that much also another person said to double post so........
Here are the official rules
Quote
4: The only time double-posting is allowed (posting two messages in a row in the same topic) is either if there has been 6 hours since your last post, 3 hours if your thread has been bumped out of the New Posts page, 1 hour if it's a project update or immediately if you need to upload more than 10 file attachments at once. Otherwise, update the last post using the "EDIT" button. It will be marked as unread for all members (altough it won't bump the thread).

EDIT:  Yes, if you want the numbers to be displayed, I suggest using all the getKey stuff.  It will look much nicer than the default menu, and is more customizable
And the zero is expected. With that code, it is what it is supposed to do
« Last Edit: 23 November, 2011, 05:10:09 by chattahippie » Logged
mrmprog
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 28 September, 2012, 05:58:25
Date Registered: 15 February, 2011, 01:35:36
Location: Somewhere
Posts: 559


Total Post Ratings: +34

View Profile
« Reply #27 on: 23 November, 2011, 05:08:56 »
0

Err, You really shouldn't double post. And saintrunner, no need to "yell" at a newer member. When you joined, you were by no means perfect, but look at you now, a productive member of the community Smiley
Logged

saintrunner
Custom Spriter: You ask it! I'll Make it!
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 09 March, 2013, 02:00:40
Date Registered: 27 October, 2011, 21:52:46
Location: Right here....I think?
Posts: 1776


Total Post Ratings: +97

View Profile WWW
« Reply #28 on: 23 November, 2011, 05:09:57 »
0

Getkey's are easier (in my opinion) in axe. and the reason you need it in chatta's example is because he made it self modified. in other words, it looks the same as the menu( function but it is written out so it can be adjusted

And yeah your right, I don't meen to yell, I'm just bad at explaining, so I'm really yelling at myself... sorry Tongue
« Last Edit: 23 November, 2011, 05:11:13 by saintrunner » Logged

My Sprites Thread   :Updated often Smiley for your viewing pleasure

GAMES:
obon7
LV2 Member (Next: 40)
**
Offline Offline

Last Login: 12 February, 2012, 07:35:15
Date Registered: 23 November, 2011, 02:22:11
Posts: 34


Topic starter
Total Post Ratings: 0

View Profile
« Reply #29 on: 23 November, 2011, 06:08:19 »
0

quick question how do you alter a list so that its size can be increased and display the new item and not have to hav ea preset name for each slot.
Logged

Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.208 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.