Jump to content

[LE] What is wrong with my script ? :) [6]


Recommended Posts

This time something VERY hard xD

 

 

Here is Script:

 

  Reveal hidden contents

 

 

 

 

Anything to Fix ? :D

i Mean how it work no how it look :smile: ReDragon <3 xDD

 

//Edit:

lel xD Few stupid misstakes :D

//Edit2:

Constructor was never in use xD

//Edit3:

More Fixes :D ! yey xD

omfg i was working for last 11 h... even this small code take 3h xD

i go 4 something to Eat and GL with looking for more bad in Code :D

 

 

and TY 4 help if any1 want to help with this ugly code xD

 

ugly cause lel... can't use classes and structures T_T

Edited by TobiaszPL
Link to comment
Share on other sites

QDataArray[ 4 * T + 0 ] = QData.GetAt( T ) as ObjectReference
QDataArray[ 4 * T + 1 ] = QData.GetAt( T ) as ObjectReference
QDataArray[ 4 * T + 2 ] = QData.GetAt( T ) as ObjectReference
QDataArray[ 4 * T + 3 ] = QData.GetAt( T ) as ObjectReference

 

You may have problems with this. I know a guy way back who did. Papyrus arrays behave as expected which there is only 1 thing going on in the brackets(for lack of better term), but add a second thing and it gets weird from there. Basically Array[index, value, value] is buggy, unless it was fixed.

Edited by Rasikko
Link to comment
Share on other sites

yours

Event OnInit()
    If( FirstUse )
        Constructor()
        FirstUse = true
    EndIf
    
    If( QFired )
        GoToState( "QState_Working" )
    Else
        GoToState( "QState_Ready" )
    EndIf
EndEvent;==- Var. List -==;
    Bool FirstUse = true

should be as follow

Event OnInit()
    If( FirstUse )
    else
        Constructor()
        FirstUse = true
    EndIf
    
    If( QFired )
        GoToState( "QState_Working" )
    Else
        GoToState( "QState_Ready" )
    EndIf
EndEvent;==- Var. List -==;
    Bool FirstUse = False
Link to comment
Share on other sites

You wrote: "i Mean how it work no how it look"

Keep in mind If it looks better, its much better to maintain the code!

 

I changed as follow, for studying only. That are technical changes, not really content improvements.

 

  Reveal hidden contents

 

Edited by ReDragon2013
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...