Page 1207 of 1703
Posted: Fri May 26, 2006 5:59 am
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
Posted: Fri May 26, 2006 5:59 am
by Ravager
@Nano, ^^ Doesn't realise how much I don't care about it being purposeful.
Gah. Enough of the arrows now.
Let's think of something better for this morning...uhh...afternoon.
@Chu, I also have to learn NWScript, that'll be torture enough...
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...

Posted: Fri May 26, 2006 6:04 am
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.
Posted: Fri May 26, 2006 6:08 am
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.
Posted: Fri May 26, 2006 6:16 am
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.

Morrowind is very specific about spacing and all that.
Posted: Fri May 26, 2006 6:24 am
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.
Posted: Fri May 26, 2006 6:38 am
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.
Posted: Fri May 26, 2006 6:40 am
by Juniper
What language is that you speak?? :speech:
Hello All!

Posted: Fri May 26, 2006 6:45 am
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++.
Posted: Fri May 26, 2006 6:50 am
by Juniper
@Ravvit....LOL..very nice! thank you

Posted: Fri May 26, 2006 6:51 am
by ch85us2001
[QUOTE=Ravager]Hello Juni! I saved you another picture...
http://www.mycathatesyou.com/cats/2005/03/7[/QUOTE]
*ducks and runs*

Posted: Fri May 26, 2006 6:52 am
by Ravager
[QUOTE=ch85us2001]*ducks and runs*

[/QUOTE]
You think that's bad...I saw some really evil-looking ones...
http://www.mycathatesyou.com/cats/alpha/s/2454
Posted: Fri May 26, 2006 6:56 am
by Juniper
Don't be afraid Chu...the kitties dont bite, very hard
@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~
Posted: Fri May 26, 2006 6:58 am
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...
Anyways, I have to cut it short and go for a while. I'll be back later.
Posted: Fri May 26, 2006 7:15 am
by ch85us2001
[QUOTE=Ravager]
And the evil pic...
http://www.mycathatesyou.com/cats/alpha/s/2462
[/QUOTE]
*Passes out from manly shock*

:speech:
Posted: Fri May 26, 2006 7:17 am
by Damuna_Nova
Manly? Pfft.
Posted: Fri May 26, 2006 7:56 am
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:
Posted: Fri May 26, 2006 8:14 am
by Juniper
@DN..hows the day been for you?

Posted: Fri May 26, 2006 8:17 am
by Damuna_Nova
Lacklustre, and yours?
Posted: Fri May 26, 2006 8:19 am
by Juniper
BOOOORING
Its a holiday weekend here...and is soooo quiet today...tho, its sooo much better than yesterday...i'm not complaining....