Please note that new user registrations disabled at this time.

The Succeeder Stronghold

Anything goes... just keep it clean.
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post by ch85us2001 »

I'm a man with a one track mind.
So much to do in one lifetime.



Ravvit, you really should learn Morrowind Scripting. Then you could help me out with this thing causing a Crash To Desktop. :laugh:

Code: Select all

begin Churiderracer

Short Ridestate

if ( OnActivate == 1 )
	Set Ridestate to 2
endif

if ( Ridestate == 2 )
	PlaceAtPC "ID", 1, 0, 0
	Disable
	SetDelete, 1
	Player -> ModSpeed, 600
endif

end
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Ravager
Posts: 22464
Joined: Mon Jun 27, 2005 1:50 pm

Post by Ravager »

@Nano, ^^ Doesn't realise how much I don't care about it being purposeful. :p ;)
Gah. Enough of the arrows now.

Let's think of something better for this morning...uhh...afternoon. :D

@Chu, I also have to learn NWScript, that'll be torture enough... :o

What do these lines do?

Code: Select all

Disable
SetDelete, 1
Player -> ModSpeed, 600
Bah. What kind of programming language uses 'endif' instead of a curly bracket. It's like Pseudocode all over again... :rolleyes:
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post by ch85us2001 »

[QUOTE=Ravager]
What do these lines do?

Code: Select all

Disable
SetDelete, 1
Player -> ModSpeed, 600
[/QUOTE]
I'm "Trying" to make it "look" as if the player is riding. Disable and SetDelete delete one of the object every frame, while PlaceAtPC put's one there every frame. ModSpeed makes the player run faster.
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Ravager
Posts: 22464
Joined: Mon Jun 27, 2005 1:50 pm

Post by Ravager »

Here's a thought...
Shouldn't you have something that changes RideState at the end to tell the system to stop going through that if loop?
Otherwise it looks to me like a never ending loop, which would cause a stack overflow and your crash.

So, have some kind of location check in that if loop to see if the PC has reached that location which will set Riderstate to a different number, exiting the loop. Something like that.
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post by ch85us2001 »

Maybe something like . . .

Code: Select all

begin Churiderracer

Short Ridestate
Float Timer

if ( OnActivate == 1 )
	Set Ridestate to 2
             Set Timer to ( GetSecondsPassed )
endif

if ( Ridestate == 2 )
	PlaceAtPC "ID", 1, 0, 0
             Activate
	Disable
	SetDelete, 1
	Player -> ModSpeed, 600
endif

if ( timer > 5 )
             Set Ridestate to 3
endif

end

I'm actually trying to go for some kind of loop, but not a neverending one. Do you think it'll hurt it to run it until the timer stops it?



I hate not being able to use Tab on this. :rolleyes: Morrowind is very specific about spacing and all that.
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Ravager
Posts: 22464
Joined: Mon Jun 27, 2005 1:50 pm

Post by Ravager »

I'd combine those if loops into a nested if loop, so it checks the timer first, then, if that passes, it will go onto the movement thing...something like:

Code: Select all

if(timer < 5)
            if ( Ridestate == 2 )
              PlaceAtPC "ID", 1, 0, 0
              Activate
              Disable
              SetDelete, 1
              Player -> ModSpeed, 600
            endif

            else()
            Set Ridestate to 3
endif
endif
I don't know what support there is for 'else' or nested loops though.

[QUOTE=Chu]I'm actually trying to go for some kind of loop, but not a neverending one. Do you think it'll hurt it to run it until the timer stops it?[/QUOTE]
As long as there is something there to stop it, it should be alright. I don't know how the 'GetSecondsPassed' thing works though, so I can only make a guess on that.
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post by ch85us2001 »

From on Activate GetSecondsPassed should add to timer once per second.



There's llimited support for else and elseif, but now ands or ors.


Ands are constructed like this

Code: Select all

if ( variable1 == 1 )
        if ( variable2 == 1 )
                  [do something]
        endif
endif
Ors are constructed using else and elseif.
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Juniper
Posts: 7558
Joined: Wed Jul 27, 2005 2:41 pm
Contact:

Post by Juniper »

What language is that you speak?? :speech: ;)

Hello All! :D
User avatar
Ravager
Posts: 22464
Joined: Mon Jun 27, 2005 1:50 pm

Post by Ravager »

Hello Juni! I saved you another picture...
http://www.mycathatesyou.com/cats/2005/03/7

@Chu, you'll need an else in this case then...
Though any 'and' or 'or' commands are new to me, those must be one of the bigged additions to MorowindScript...it's not even in NWScript, but what I know of it, nor Java or C++.
User avatar
Juniper
Posts: 7558
Joined: Wed Jul 27, 2005 2:41 pm
Contact:

Post by Juniper »

@Ravvit....LOL..very nice! thank you ;)
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post by ch85us2001 »

[QUOTE=Ravager]Hello Juni! I saved you another picture...
http://www.mycathatesyou.com/cats/2005/03/7[/QUOTE]
*ducks and runs* :eek:
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Ravager
Posts: 22464
Joined: Mon Jun 27, 2005 1:50 pm

Post by Ravager »

[QUOTE=ch85us2001]*ducks and runs* :eek: [/QUOTE]
You think that's bad...I saw some really evil-looking ones... :eek:

http://www.mycathatesyou.com/cats/alpha/s/2454
User avatar
Juniper
Posts: 7558
Joined: Wed Jul 27, 2005 2:41 pm
Contact:

Post by Juniper »

Don't be afraid Chu...the kitties dont bite, very hard :D

@ravvy..did you hear about the job?


LMAO! SNOO THE IMPALER!


I think im having a SF flashback....its been awhile since the 3 of us have been here in the morning~
User avatar
Ravager
Posts: 22464
Joined: Mon Jun 27, 2005 1:50 pm

Post by Ravager »

Not yet, no...it's only been 24 hours though...

And the evil pic... http://www.mycathatesyou.com/cats/alpha/s/2462
I think im having a SF flashback....its been awhile since the 3 of us have been here in the morning~
Yeah, it's been a while... :o
Anyways, I have to cut it short and go for a while. I'll be back later.
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post by ch85us2001 »

[QUOTE=Ravager]

And the evil pic... http://www.mycathatesyou.com/cats/alpha/s/2462
[/QUOTE]
*Passes out from manly shock* :eek: :speech:
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Damuna_Nova
Posts: 3256
Joined: Fri Oct 28, 2005 11:24 am

Post by Damuna_Nova »

Manly? Pfft.
User avatar
Damuna_Nova
Posts: 3256
Joined: Fri Oct 28, 2005 11:24 am

Post by Damuna_Nova »

Splinter Cell meets Murder She Wrote

Haha!

Murder She Wrote is on TV, and though I'm not really listening, my attention was caught when someone who sounds like the ops commander guy in Splinter Cell started talking.

Funnily enough he said he didn't want the NSA mixed up in whatever he was doing. :laugh:
User avatar
Juniper
Posts: 7558
Joined: Wed Jul 27, 2005 2:41 pm
Contact:

Post by Juniper »

@DN..hows the day been for you? :D
User avatar
Damuna_Nova
Posts: 3256
Joined: Fri Oct 28, 2005 11:24 am

Post by Damuna_Nova »

Lacklustre, and yours?
User avatar
Juniper
Posts: 7558
Joined: Wed Jul 27, 2005 2:41 pm
Contact:

Post by Juniper »

BOOOORING
Its a holiday weekend here...and is soooo quiet today...tho, its sooo much better than yesterday...i'm not complaining....
Locked