Programming

Discuss, argue, whine, talk but not about Elma.

Moderator: Moporators

User avatar
The_BoneLESS
38mins club
Posts: 4604
Joined: 7 Sep 2003, 00:30
Team: HHIT
Location: Dangerously close to the St-Lawrence River
Contact:

Programming

Post by The_BoneLESS » 26 Aug 2004, 01:43

I started College yesterday and i got a programming class...

Harder than i thought because most of the students already have skills in Visual Basic.net ( the program we use ) and i have none

I never got those kinda classes in high school so , i'm a little lost but it's fun

I learn and i can do very basic things now...

1. Do you make some programming ? ( not necessarly VB.net )
2. Which program do you use ?
3. What's your greatest programming achievement ?
Website || TT:38:05:33 || WC5:15th || HHIT for life || 9th world wide ... BAP is next

User avatar
milagros
Cheatless
Posts: 4511
Joined: 19 May 2002, 17:05

Re: Programming

Post by milagros » 26 Aug 2004, 05:57

The_BoneLESS wrote:1. Do you make some programming ? ( not necessarly VB.net )
2. Which program do you use ?
3. What's your greatest programming achievement ?
1. a bit, not in vb though (haven't programmed there for exactly 3 years 2 months)
i'm teaching c++ programming too
2. you mean program language? usually some c++
3. soon demo version of something downloadable from internet
also some very nice progs (not related to elma)
[carebox]

User avatar
zworqy
Kuski
Posts: 3706
Joined: 19 May 2002, 23:17
Location: Lilla Edet, Sweden
Contact:

Post by zworqy » 26 Aug 2004, 06:57

1. Yes, or I can, but I don't do it much. Many languages, though: C++, C# and Java, Javascript, PHP etc.
2. SharpDevelop, Sun ONE Studio etc.
3. TableCreator ;) :P
Last edited by zworqy on 26 Aug 2004, 10:01, edited 1 time in total.
<Fihlvein> another case of zworqy-is-always-right closed i guess
<yoosef> zworqy doesnt suck at anything

Epsilon
Kuski
Posts: 365
Joined: 22 Aug 2002, 22:13
Location: Haifa, Israel
Contact:

Post by Epsilon » 26 Aug 2004, 07:50

1. Yes, a lot. Pascal, VB, javascript, ASP, php...
2. Notepad for internet stuff ;) , and VB6
3. Some games i've made and cool pages on the internet
Epsilon | TT : 45:42,82 | Elma Around the World | Smile levpack

User avatar
Zweq
34mins club
Posts: 3996
Joined: 28 Nov 2002, 15:54
Location: suo mesta

Post by Zweq » 26 Aug 2004, 09:53

1. no :(
2. dunno about the lang
3. in school i was able to make a calculator in visual basic course
Image

teajay
Donator duck
Posts: 10041
Joined: 3 Apr 2003, 17:53

Post by teajay » 26 Aug 2004, 12:29

1. html =)
2. notepad
3.

Code: Select all

<html>
<head>
<title>MY H0m0page</title>
</head>
<body bgcolor="#123456">
hI! =)
</body>
</html>

User avatar
Revolt
Kuski
Posts: 1100
Joined: 31 May 2003, 12:20
Location: jamming smoke on the water

Post by Revolt » 27 Aug 2004, 08:56

tijsjoris wrote:1. html =)
2. notepad
3.

Code: Select all

<html>
<head>
<title>MY H0m0page</title>
</head>
<body bgcolor="#123456">
hI! =)
</body>
</html>
max prgramming :)

i just do some vb and c++, pretty sax at c.
hi

User avatar
8-ball
39mins club
Posts: 4481
Joined: 9 May 2003, 13:30
Team: MiE
Location: Riga, Latvia

Post by 8-ball » 27 Aug 2004, 09:48

1. html and php
2. HandyHTML Studio / notepad
3. ur kidding, right?
39:37,91

teajay
Donator duck
Posts: 10041
Joined: 3 Apr 2003, 17:53

Post by teajay » 27 Aug 2004, 10:05

I also have an expert degree in JavaScript!

Code: Select all

<html>
<head>
<title>Me H0m0JaHvISkriEpTPag0r</title>
</head>
<body bgcolor="654321">
<form>
<input type="button" value="OMG HI!! =)" onClick="window.alert('OmG I d0eZ JaHvISkriEpT!1 =)')">
</form>
</body>
</html>
l33t!

User avatar
John
first 35tt
Posts: 4698
Joined: 28 Sep 2002, 19:42
Team: WNO
Location: Luleå, Sweden

Re: Programming

Post by John » 27 Aug 2004, 15:13

1. Do you make some programming ? ( not necessarly VB.net )
Not anymore
2. Which program do you use ?
Used Qbasic :)
3. What's your greatest programming achievement ?
Some quizgames and a quitbutton in delphi
Image

User avatar
Napoleon
Kuski
Posts: 1333
Joined: 10 Sep 2002, 18:26
Location: õ,õ

Post by Napoleon » 27 Aug 2004, 15:31

vk pwns u here

Mick
Kuski
Posts: 313
Joined: 19 May 2002, 14:47
Location: melbourne
Contact:

Post by Mick » 28 Aug 2004, 04:19

1. Know java and a fair bit of VB. Also learning PICassembler at the moment. Assembler gives you so much control.
2. Jens' File Editor
3. Probably minesweeper in java
team EM - why not ok?

User avatar
The_BoneLESS
38mins club
Posts: 4604
Joined: 7 Sep 2003, 00:30
Team: HHIT
Location: Dangerously close to the St-Lawrence River
Contact:

Post by The_BoneLESS » 28 Aug 2004, 17:20

Epsilon wrote:... and cool pages on the internet
Link please :D
Website || TT:38:05:33 || WC5:15th || HHIT for life || 9th world wide ... BAP is next

Doddddy
Kuski
Posts: 266
Joined: 13 Dec 2002, 19:59
Location: Romania
Contact:

Post by Doddddy » 29 Aug 2004, 22:15

1. I've been programming for a long time now (relatively) but not seriously... I'm learning vb.net now and i'm gonna take the MCP soon. I'm also specializing with directx.
2. vb.net mostly; no c at all
3. dunno
Reliance upon others is weakness for the strong, but strength for the weak.

User avatar
ribot
Not banned
Posts: 2367
Joined: 19 May 2002, 16:20
Location: Miranda: the true state
Contact:

Post by ribot » 9 Sep 2004, 15:40

i started with mirc scripting and so far it's the only thing i made something good in. however i know javascript, c, tcl, which isnt far from saying java and php. if (i know some language) i also know some about others. well i know some lingo too, from shockwave. what else? i tried many, can't remember.

well in tcl i worked with eggdrops; bots on irc. i made chat bots, which were programs you could talk to. it's hard to say if they resulted any good, because they were at least as good as any other that i've seen. also some were megahal combinations.

so most things that i have had any use for is in irc. i made a bot that saves topics in channels that dont allow them, and saves them on file too as logging. i have made a colour script in mirc, that makes randomly colourful text. also i made a similar script that makes colourful text in bb/ipb code. i made a menu that sends the current song im playing in winamp to whoever i want to send it to. i also made the first battle script for elma battles.

also i have done a game in java: http://home.swipnet.se/technomilk/ent/jerker.html

and on that site's index i made a navigator thingy.
-
"leader status in the Elma against-the-system underground" - Abula
-
IncrElastoMania - Elma Simulation - Browser Game 2020
Elma Imager - Command Line Tool 2020

EasyGijs
Kuski
Posts: 148
Joined: 24 Apr 2003, 11:27
Location: Eindhoven, The Netherlands
Contact:

Post by EasyGijs » 18 Sep 2004, 15:51

I do some programming too, started with java. Now the most of the time I'm modelling for school with a mathemathical programm called Matlab R12.
My biggest achievement is when I played a dutch f1 simulating game, called F1competition. I programmed about 300 lines which simulated the game in detail. It calculated for me what would be the perfect strategy in a race which was absolutely impossible to do with normal calculator. After 6 months playing the game I was first in standings of 12.000 participants, what was pretty cool. I told at the forum I used a simulation and others didn't think it was cool so I stopped with the game.
<img src="http://hem.passagen.se/zworqy/elasto/pics/apple_MK.txt" border="0" /> MopokuskiS

User avatar
The_BoneLESS
38mins club
Posts: 4604
Joined: 7 Sep 2003, 00:30
Team: HHIT
Location: Dangerously close to the St-Lawrence River
Contact:

Post by The_BoneLESS » 6 Dec 2004, 22:27

Just a question :

In what language is Elma made ?

C++ ?
Website || TT:38:05:33 || WC5:15th || HHIT for life || 9th world wide ... BAP is next

User avatar
Memphis
37mins club
Posts: 1907
Joined: 28 Feb 2003, 13:35
Location: B.C. Canada
Contact:

Post by Memphis » 6 Dec 2004, 23:00

I think elma is it's own language thing.

User avatar
dz
first 39tt
Posts: 3745
Joined: 19 May 2002, 15:16
Team: FM
Location: Finland
Contact:

Post by dz » 6 Dec 2004, 23:10

I think it's written in C++

User avatar
Revolt
Kuski
Posts: 1100
Joined: 31 May 2003, 12:20
Location: jamming smoke on the water

Post by Revolt » 7 Dec 2004, 03:29

BarTek wrote:ppl say "its written". Do they mean liek balaz is writing

"((if: teh wheelpressure='1009') value="2/na" then bounce(force='medium bug'))"

like i have this: no programing interest or skillz yet i tried some visual basicz in shcool long time ago. My question is what ihas been really written and not. Apperantly the graphic objects arent written but imported as external symbols but im curious how a "elma" was made from scracth mkai
there are many different programming languages, when they say, "what is elma written in" then mean, what language is it programmed in.

yes, elma is written in C++
hi

User avatar
ribot
Not banned
Posts: 2367
Joined: 19 May 2002, 16:20
Location: Miranda: the true state
Contact:

Post by ribot » 7 Dec 2004, 04:03

elma is teh directx coded
-
"leader status in the Elma against-the-system underground" - Abula
-
IncrElastoMania - Elma Simulation - Browser Game 2020
Elma Imager - Command Line Tool 2020

User avatar
sierra
39mins club
Posts: 2469
Joined: 15 Apr 2004, 22:51

Post by sierra » 8 Dec 2004, 17:27

jaytea is script god. bow down.
[OMG] | TT: 39:26,06 | 27 British Records |PIT
ELMA PRO wrote:does anyone else hate sierra as much as i do? search my posts to find some of his earlier arrogance revealed, and his recent posts indicate blantant "im shit-hot" ism. if someone wants to make the ASF (anti-sierra foundation) i'll put an ugly logo in my signiture

User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Programming

Post by Mawane » 20 Mar 2008, 17:42

Jappe wrote:1. Do you make some programming ? ( not necessarly VB.net )
i know some c sharp,basics of c++ and visual basic but thats about it.

2. Which program do you use ?
i used notepad and some free compiler prog

3. What's your greatest programming achievement ?
we did some visual basic in school and i did some small calculator
and lottery simulator :D, it was very heavy on the computer thou but
i got the jackpot 7/7 correct after 700k tries (it randomly calculated 7
numbers and if all of those matched mine it stopped ).

anyway very noobish stuff
what about your game on your site?
Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]

User avatar
Igge
38mins club
Posts: 6317
Joined: 7 Apr 2007, 12:15
Location: Stockholm, Sweden

Post by Igge » 20 Mar 2008, 18:38

in vb did some nab painting prog
John: lol hittade ett popcorn i naveln
(19:52:06) (@Madnezz) The Golden Apple Award goes to.....
(19:52:36) (@Madnezz) ib9814.lev by igge!!!
Zweq wrote:99.9999% of nabs haven't even opened the book yet and most of those that have are still on the first pages

teajay
Donator duck
Posts: 10041
Joined: 3 Apr 2003, 17:53

Post by teajay » 21 Mar 2008, 09:48

I html

User avatar
A.K.B.
39mins club
Posts: 4099
Joined: 10 Dec 2005, 11:12
Location: Brisbane
Contact:

Post by A.K.B. » 21 Mar 2008, 10:03

Code: Select all

I can use BBCode
[/u][/i][/b]
Image
1 Golden Apple Award: Rookie of the Year
FinMan wrote:I prefer AKB:s topics to Xratios ones :)

User avatar
Morgan
36mins club
Posts: 582
Joined: 16 Dec 2007, 22:55
Team: SPEED
Location: Lębork, Poland
Contact:

Re: Programming

Post by Morgan » 29 Nov 2009, 15:58

[c++]

Code: Select all

#include <iostream>
#include <string>
using namespace std;
int main()
{
    int i,t,x1,x2,j,k;
    cin >> t;
    for (i=1;i<=t;i++)
    {
        string s,s1,s2;
        cin >> s1 >> s2;
        x1=s1.length();
        x2=s2.length();
        if (x1==x2)
        {
                   for(k=0;k<=x1*2;k++)
                   {
                                      for(j=0;j<=x1;j++)
                                      {
                                                        if(k%2==0)
                                                        {
                                                                   s[k] = s1[j];
                                                        }
                                                        if(k%2==1)
                                                        {
                                                                   s[k] = s2[j];
                                                        }
                                      }                                                        
                                      
                    
                   }
                   for(k=0;k<=x1*2;k++)
                   {
                                      cout << s[k];
                   }

        }
        
    }
    system("PAUSE");
    return 0;
} 
why it doesnt work when use input:

Code: Select all

1
abc def
and i want output:

Code: Select all

adbecf
Image LOL img :)
im very beginner in this, so dont blame me much ;p
Image TT - 36:53.16 || 17 Polish Records || SPEED

User avatar
milagros
Cheatless
Posts: 4511
Joined: 19 May 2002, 17:05

Re: Programming

Post by milagros » 29 Nov 2009, 19:34

s[k] = s1[j/2];
s[k] = s2[j/2];
[carebox]

User avatar
totem
39mins club
Posts: 328
Joined: 26 Dec 2007, 14:04

Re: Programming

Post by totem » 29 Nov 2009, 20:18

you could do this in a simplier way :

Code: Select all

int main()
{
	int i,t,x1,x2,j,k;
	cin >> t;
	for (i=0;i<t;i++)
	{
		string s,s1,s2;
		cin >> s1 >> s2;
		x1=s1.length();
		x2=s2.length();
		
		if (x1==x2)
		{
			s.resize(x1+x2) ;
			for(k=0;k<x1;k++)
			{
				s[2*k] = s1[k] ;
				s[2*k+1] = s2[k] ;                                             
			}

			cout << s << endl;
		}

	}
	system("PAUSE");
	return 0;
} 

User avatar
milagros
Cheatless
Posts: 4511
Joined: 19 May 2002, 17:05

Re: Programming

Post by milagros » 29 Nov 2009, 21:25

if wanna be pro:)
for(k=0;k<x1;k++) cout << s1[k] << s2[k];
[carebox]

User avatar
Morgan
36mins club
Posts: 582
Joined: 16 Dec 2007, 22:55
Team: SPEED
Location: Lębork, Poland
Contact:

Re: Programming

Post by Morgan » 29 Nov 2009, 21:29

thank u both, used totem's version, it works well :)
Image TT - 36:53.16 || 17 Polish Records || SPEED

User avatar
milagros
Cheatless
Posts: 4511
Joined: 19 May 2002, 17:05

Re: Programming

Post by milagros » 29 Nov 2009, 21:38

milagros wrote:s[k] = s1[j/2];
s[k] = s2[j/2];
actually that code before was completely wrong and this would not help:)
[carebox]

User avatar
benson
Kuski
Posts: 49
Joined: 21 Oct 2004, 15:35
Location: Hong Kong
Contact:

Re: Programming

Post by benson » 5 Dec 2009, 06:40

1. Do you make some programming ? ( not necessarly VB.net )
- C -> PHP with MySQL (and html, css) -> Java -> ActionScript -> R -> Ruby on Rails -> VB(A) -> a little bit python

2. Which program do you use ?
mostly vim

3. What's your greatest programming achievement ?
got gold medals in 3 consecutive years of a local olympiad, and made a facebook application about timetable for my university, with over 3000 users now
Hoping Elma can spread in Hong Kong... but... nearly impossible
[JAB] TT: 53:57:14...

User avatar
Mawane
Kuski
Posts: 3299
Joined: 15 Apr 2007, 01:05
Team: SV
Contact:

Re: Programming

Post by Mawane » 5 Dec 2009, 16:12

1. Do you make some programming ? ( not necessarly VB.net )
ActionScript 3.0

2. Which program do you use ?
Adobe Flash CS3

3. What's your greatest programming achievement ?
currently making a game at school
Website || TT:41:45:64 || Team Image
Image[url=steam://friends/add/76561198025490048]Image[/url]

User avatar
Kopaka
39mins club
Posts: 6509
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Re: Programming

Post by Kopaka » 8 Dec 2009, 13:38

1. Do you make some programming ? ( not necessarly VB.net )
Started with some mircscript many years ago, forgotten a lot of that know
Been working with PHP for a couple of years now
Did some JAVA last spring in school, didn't like that too much

2. Which program do you use ?
Editplus

3. What's your greatest programming achievement ?
EOL site ;)

User avatar
FinMan
36mins club
Posts: 2006
Joined: 13 Feb 2007, 11:14
Team: dat
Location: Jyväskylä, Finland

Re: Programming

Post by FinMan » 8 Dec 2009, 13:58

1. Do you make some programming ? ( not necessarly VB.net )
C++ basics.

2. Which program do you use ?
Dev C++

3. What's your greatest programming achievement ?
Nothing.

Would like to get myself really patiented to programming.
... .. Pipe levels ... . ...Höylä levels .. ...
"Those who are heartless once cared too much."

User avatar
nick-o-matic
Kuski
Posts: 851
Joined: 27 Jan 2007, 12:53
Location: Lappeenranta

Re: Programming

Post by nick-o-matic » 8 Dec 2009, 15:00

1. Do you make some programming ? ( not necessarly VB.net )
Java

2. Which program do you use ?
Eclipse

3. What's your greatest programming achievement ?
FF-cup points calculator

I think I'll take some more programming courses at school next spring.

User avatar
Bismuth
Kuski
Posts: 2766
Joined: 26 Feb 2008, 07:11
Team: <3
Location: Not on lauta

Re: Programming

Post by Bismuth » 8 Dec 2009, 17:52

1. Java
2. NetBeans
3. some useless shit
:mrhat:

User avatar
Hosp
38mins club
Posts: 1969
Joined: 30 Aug 2009, 20:55
Team: MiE
Location: Uppsala, Sweden.
Contact:

Re: Programming

Post by Hosp » 8 Dec 2009, 20:09

Today I got the XHTML book so I will max read it and get A in reading in school! 200more pages for A this "termin?" Season or wth its called :D Soon I will make site when fully understand these things. ( Elma site and CS maybe :P
Image
ToMaT

User avatar
Morgan
36mins club
Posts: 582
Joined: 16 Dec 2007, 22:55
Team: SPEED
Location: Lębork, Poland
Contact:

Re: Programming

Post by Morgan » 13 Dec 2009, 19:02

1. Do you make some programming ? ( not necessarly VB.net )
Pascal, C++ - basics

2. Which program do you use ?
Dev Pascal, Dev C++

3. What's your greatest programming achievement ?
Dunno
Image TT - 36:53.16 || 17 Polish Records || SPEED

User avatar
ville_j
Kuski
Posts: 1506
Joined: 17 Aug 2002, 15:45
Team: IS
Location: on the roof
Contact:

Re: Programming

Post by ville_j » 15 Dec 2009, 23:43

C++, java and php. If someone counts html/css programming too, then those two too.

I use notepad++ for php, visual studio for C++ (because of the school) and JCreator for java.

I hev not yet made anything I would like to share with anyone.

Domovoy
Kuski
Posts: 119
Joined: 9 Nov 2004, 04:56

Re: Programming

Post by Domovoy » 2 Mar 2010, 06:28

nice topic

1. Do you make some programming?
ActionScript, Assembler, C, C++, Java (basics), JavaScript, Object Pascal, Pascal, Perl (basics, hate teh), PHP, SQL (basics). CSS, HTML, XML/XSLt, mircscript if someone counts them. Tried python but failed, not for me. Wrote couple of programs in Basic but didn't remember the language.

2. Which program do you use?
Notepad++, gedit, vim, Eclipse, Delphi 4-7, fasm, gcc, MVC++ 6-9, Turbo Pascal 7.

3. What's your greatest programming achievement?
What counts for greatest achievment - size, popularity, complexity, profit? The biggest program was about 3000 lines, kinda database for insurance company. Most popular were hacking tasks for computer security contest, I think. Complexity is hard to estimate, most complex are probably various patches for other programs. Most profitable are definitely sites and various databases but I haven't made any fortune with programming. What I am really proud of? Nothing :/

User avatar
abruzzi
Kuski
Posts: 1395
Joined: 17 Sep 2007, 21:07

Re: Programming

Post by abruzzi » 2 Mar 2010, 12:41

I used to program a lot of fun things some time ago now i only do some electronic programmes shiat for school.

btw i just wrote yesterday for my gf a simple hangman, nice for 2 people with remote desktop (polish version)
Attachments
ZGAD.zip
(5.7 KiB) Downloaded 89 times
<Pawq> at a gym you have only 3 options: 1. have your eyes closed, 2. stare at yourself, 3. stare at others, all of which are either super boring or disgusting

User avatar
NoZKeY
Kuski
Posts: 220
Joined: 13 Sep 2008, 23:53

Re: Programming

Post by NoZKeY » 2 Mar 2010, 17:31

1. Do you make some programming ? ( not necessarly VB.net )
I used to program a lot years ago, when i was 10 or so. I programmed in a language made for game development, called DIV.
2. Which program do you use ?
There was only one program for DIV, div itself, it included everything to make games (graphic editor, text editor, compiler, etc)
3. What's your greatest programming achievement ?
Lots of mini games that were not awesome at all but i was really happy playing them :mrgreen:

I also used Qbasic, it was my first programmin language :) I miss DOS...

User avatar
Lee
37mins club
Posts: 2254
Joined: 22 Apr 2005, 05:12
Location: New Zealand

Re: Programming

Post by Lee » 1 Jul 2010, 11:53

i just started learning some javascript. so far i've only learned the basics from w3schools.com. with my small amount of knowledge i had a go at making a script that links a random css file each time the page is loaded. for testing purposes i made three css files (red.css, green.css, blue.css). this is my attempt:

Code: Select all

var cssName=['red','green','blue'];
var whichCss=Math.floor(Math.random()*3);
document.write("<link rel=\"stylesheet\" href=\""+cssName[whichCss]+".css\" type=\"text/css\" />"); 
this is an externally linked script in the <head> tags. it seems to work okay, but i'm no pro. did i do anything wrong here, or is it all legit?
Last edited by Lee on 11 Jan 2011, 11:59, edited 1 time in total.
Image Image

User avatar
ville_j
Kuski
Posts: 1506
Joined: 17 Aug 2002, 15:45
Team: IS
Location: on the roof
Contact:

Re: Programming

Post by ville_j » 1 Jul 2010, 15:50

That seems right. However, I don't like using document.write at all. I always append elements to other elements, or change an attribute of an existing element. In your example I would do like this:

Code: Select all

var stylesheet = //name of the stylesheet;
document.getElementsByTagName('link')[0].setAttribute('href',stylesheet):
I don't know which one is better though. Don't even know how the document.write works actually. Where in the document does it write the thing you want to write with it.. o,o

Anyways, I've also been very into JavaScript lately. To be more precise, Ajax. JavaScript can be sometimes a bitch, I don't like it very much.
< roopemies> horror and frustrating and can't play, sounds just like you
Beer battle winner 2014 and 2015

User avatar
ribot
Not banned
Posts: 2367
Joined: 19 May 2002, 16:20
Location: Miranda: the true state
Contact:

Re: Programming

Post by ribot » 1 Jul 2010, 16:16

programming is quite a handy thing... it's good money for such things... especially ajax nowadays
-
"leader status in the Elma against-the-system underground" - Abula
-
IncrElastoMania - Elma Simulation - Browser Game 2020
Elma Imager - Command Line Tool 2020

User avatar
Lee
37mins club
Posts: 2254
Joined: 22 Apr 2005, 05:12
Location: New Zealand

Re: Programming

Post by Lee » 2 Jul 2010, 05:43

thanks vj :)
atleast with changing just the href attribute, i can still have a linked stylesheet even if the user has javascript disabled.

Code: Select all

var cssName=['red','green','blue'];
var ranCss=Math.floor(Math.random()*3);
document.getElementsByTagName('link')[0].href=cssName[ranCss]+".css"; 
Last edited by Lee on 11 Jan 2011, 12:01, edited 1 time in total.
Image Image

User avatar
Bismuth
Kuski
Posts: 2766
Joined: 26 Feb 2008, 07:11
Team: <3
Location: Not on lauta

Re: Programming

Post by Bismuth » 26 Jul 2010, 01:10

Not exactly programming but I want to make a decent excel file and something is bugging me.

I'll explain you as it is: it is for League of Legends, it's like a helper to maximize your efficiency by giving you the best items to use in order to achieve the most damage output/tanking/whatever you want. You choose your champion and then it gives you your base stats (health, mana, armor, magic resist, movement speed, there are 10-20 of them). And then, you enter the further modifications from runes, masteries and stuff I don't need to go in detail with. The problem is that each champion has different stats and I'd want it to change them when you choose your champion. Like, let's say you pick Igge, then it will show his health, mana, etc. and if you change to Pawq, then it will show his health, mana, etc.

The problem I encounter is that I can't configure the cells to calculate something out of other cells, located elsewhere on the sheet, depending on the champion chosen. Like, Champion A is on the line 2, all his stats are from AA2 to AM2, let's say, and for the Health cell I need the AA2 and AB2 ones. Champion B is on the line 3, so I need the AA3 and AB3 ones.

Basically it would be, if champ A is chosen, use AA2 and AB2, and if champ B is chosen, use AA3 and AB3. It's not as simple as a If case in reality, because there aren't 2 champions, there are FIFTY-SIX. Imagine the pain writing 55 if's? For each stat?

So, I think there should be a pattern, like, the first champion has the first line and the 56th has the 56th line. But how do you make the cells use the right values without using 55 if's?

I could attach the file if needed.
:mrhat:

User avatar
ville_j
Kuski
Posts: 1506
Joined: 17 Aug 2002, 15:45
Team: IS
Location: on the roof
Contact:

Re: Programming

Post by ville_j » 27 Feb 2011, 18:28

I made this nice little number puzzle game: http://oktobia.org/playground/numberpuzzle/. Very much inspired by Tetravex, yes. Play and get to the Top scores-list!
< roopemies> horror and frustrating and can't play, sounds just like you
Beer battle winner 2014 and 2015

Post Reply