/    Sign up×
Community /Pin to ProfileBookmark

Editing a game interface: EA Sports NHL 2004

Well hi there everyone,

This might be a bit weird as most people are here to build their webpages. I’m a gamer myself. ?

I’m a member of a online [url=http://z6.invisionfree.com/flyermania/index.php?showforum=11]hockey community[/url] which has rebuilt the classic hockey game, NHL 2004 for PC.

What makes this game interesting is the possibility to rebuild the interface, which is entirely written in Javascript/html. It has been rebuilt already but there are a few things I’d like to add. Mainly statistics, which have to be “randomized” and sometimes even fabricated because some data simply isn’t possible to extract from the game.

I’m a clueless schmuck but I have lots of patience. ? I can use the Google and there are plenty of ready scripts on the Web that I can use.

I created a list of real NHL referees which get thrown into these box score pages randomly. I’d love to add them there just to add some “coolness factor” to the stats, the information about referees isn’t in the game at all.

[img]http://img207.imageshack.us/img207/7066/46457470.jpg[/img]

However, I’d like them to display so that they don’t change anymore after they have been created once (to that particular box score page).

I have used this randomizer to throw ’em in:

<script>writeNHLMsg(“Referees:”)</script></div>
<script language=”JavaScript”>
var r_text = new Array ();
r_text[0] = “Dan O’Halloran”;
r_text[1] = “Mike Leggo”;
r_text[2] = “Don vanMassenhoven”;
r_text[3] = “Kevin Pollock”;
r_text[4] = “Paul Devorski”;
r_text[5] = “Chris Lee”;
r_text[6] = “Mike Hasenfratz”;
var i = Math.floor(7*Math.random())

document.write(r_text[i]);style=”position:absolute;top:240px;left:378px;”
</script>

The problem is… when I close that page and go back there again, new refs have been thrown in there randomly again… which (of course) is pretty silly. I’d like this script to randomize them *once* but then “store” the information (if possible). The box score page pops up from the calendar with a double click.

Are you following? ?

If someone could help me here and give me a direction what to do… it would make a LOT of people happy.

Thank you in advance.

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @detonator2112 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...