Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

My NPCs are getting out of line.
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Ysoft_Entertainment
VB Programmer




Joined: 23 Sep 2003
Posts: 810
Location: Wherever There is a good game.

PostPosted: Sat Apr 16, 2005 11:50 am    Post subject: Reply with quote

how about using global variables, or even local to store the locations of the npc's?
_________________
Try my OHR exporter/importer.
OHRGFX
Striving to become better pixel artist then Fenrir Lunaris. Unfortunately the laziness gets in the way of my goals.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
The Wobbler




Joined: 06 Feb 2003
Posts: 2221

PostPosted: Sat Apr 16, 2005 11:56 am    Post subject: Reply with quote

Note from Castle Paradox Administration:
This content has been removed by the user. Contact the original author and link them to this post if you wish to view the original content. Only the author can remove the tags hiding this content.
Back to top
View user's profile Send private message
The Wobbler




Joined: 06 Feb 2003
Posts: 2221

PostPosted: Mon Jun 06, 2005 12:33 pm    Post subject: Reply with quote

Note from Castle Paradox Administration:
This content has been removed by the user. Contact the original author and link them to this post if you wish to view the original content. Only the author can remove the tags hiding this content.
Back to top
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Mon Jun 06, 2005 7:27 pm    Post subject: Reply with quote

I am still going to do this for you sometime unless one of the programmer gents tells me he is going to put this feature into the next release of the engine.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
The Wobbler




Joined: 06 Feb 2003
Posts: 2221

PostPosted: Mon Jun 06, 2005 8:01 pm    Post subject: Reply with quote

Note from Castle Paradox Administration:
This content has been removed by the user. Contact the original author and link them to this post if you wish to view the original content. Only the author can remove the tags hiding this content.
Back to top
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue Jun 07, 2005 1:59 am    Post subject: Reply with quote

Mike "forgot"?

I can't attack him. I've been working on implementing arrays since last year, but haven't done anything in the past 3 months, and playsnd.asm fiddling has been going nowhere months after people were looking forward to a demo.
Back to top
View user's profile Send private message Send e-mail
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Tue Jun 07, 2005 7:21 am    Post subject: Reply with quote

What did I forget? *glances at previous posts* Oh. Right. It's... coming... Yes. Coming. Soon. (suckers!)
_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Tue Jun 07, 2005 8:16 am    Post subject: Reply with quote

Implementing arrays? We already have a huge array of globals. How is this different?
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue Jun 07, 2005 8:54 pm    Post subject: Reply with quote

It's not! HAHAHAHA!!!!






ehhh, basically, it's just better organisation. Scripting a 3 dimensional array is messy, messy business. As a scripting fanatic, I wanted more beautiful (easier to debug and write) code :( I was just saying, I'm lazy.
Back to top
View user's profile Send private message Send e-mail
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Wed Jun 08, 2005 5:02 am    Post subject: Reply with quote

The Mad Cacti wrote:
ehhh, basically, it's just better organisation. Scripting a 3 dimensional array is messy, messy business. As a scripting fanatic, I wanted more beautiful (easier to debug and write) code Sad... I was just saying, I'm lazy.


Basically, what he's saying is that he'd rather do MORE work, to allow him to do less.

And, the funny thing is that (as a programmer), I can clearly see the logic.
_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Jun 08, 2005 3:19 pm    Post subject: array support Reply with quote

you can fake arrays already by using "read global" and "write global"

The plan is eventually to make special magical syntax in Hspeak where you can write:

Code:

var[foo] := bar
show value(var[foo])



and it will get automagically translated to

Code:

write global(global var ID(var) + foo, bar)
show value(read global(global var ID(var) + foo))



That is an oversimplification, and the actual implementation will probably look much different than the example, but that is what the goal is.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Gizmog1
Don't Lurk In The Bushes!




Joined: 05 Mar 2003
Posts: 2257
Location: Lurking In The Bushes!

PostPosted: Wed Jun 08, 2005 3:42 pm    Post subject: Reply with quote

Haha, fubar. I hope that's not a commentary on the status of the OHR, or the scripting involved, or else I'll be a bit sad. Lemme just take this opportunity to thank all you wacky programmers and scripters who work so hard to give us new features, and for the most part explain to me what these new features are, and how they work.
Back to top
View user's profile Send private message Send e-mail AIM Address
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Wed Jun 08, 2005 6:00 pm    Post subject: Reply with quote

"foobar" does come from the military acronym FUBAR, but it's now a common pair of variable names in computer science. Why? Dunno, but everyone uses it.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Jun 09, 2005 6:06 pm    Post subject: Reply with quote

http://www.catb.org/~esr/jargon/html/F/foobar.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Fri Jun 10, 2005 6:45 pm    Post subject: Reply with quote

Wow, I didn't even know it had such status, I've just been using the variable name foo since programming in QB as a kid, when I had no examples of others code.


Also, You should be able to declare local (including arguments) as well as global arrays. That's the only new functionability.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group