I've encountered a problem with the alttexture command and textures in general. I'm making a 3d chess game(as said earlier before) and one of the scripts i made makes it so a hud pops up asking you to select a chess piece. when you(the player) finalizes the selection the script activates the piece making it's script run.However when the game loads the textures on the chess pieces disappear making them black(texture is white) and the alternate texture is yellow and when that script is run the alternate texture doesn't even show. Here are the scripts;
the huds and activating script
;Artificial Intelligence Script
;Header
desc = chess movements
;Triggers
;HUDs
:state=0:hudreset,hudx=50,hudy=70,hudtext=Please Choose Your Piece. RR for RookRight BR for BishopRight and NR for KnightRight so on,hudname=Choose,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Please Choose Which Pawn You Want To Move. Press 1 For The Furthest Inside And 4 For The Farthest Outside,hudname=Which?,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Are You Sure You Want To Move This Piece?Press Y Or N,hudname=Sure?,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Where Do You Want To Move?Two Spaces or One Space?Hit the 2 or 1 key respectively,hudname=PawnMovement,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Where Do You Want To Move?To The Right Left Forward Or Backward? Press The First Letter Of The Direction You Want To Go,hudname=KnightMovement,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Where Do You Want To Move?Please Press One Of The Following-F For Fore B For Back And R And L For Right And Left Also Please Press The # Of Squares You Want To Move In The Direction You Wish To Move To,hudname=RookMovement,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Where Do You Want To Move?Please Press One Of The Following-RB For RightDiagonalBack LF For LeftDiagonalForward etc.,hudname=BishopMovement,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Where Do You Want To Move?Please Press One Of the Following-Press R For Rook Movements Or B For Bishop Movements,hudname=QueenMovements,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Where Do You Want To Move?Please Press A Combo Of The Following-RF for the right forward diagonal square LB for the left back diagonal square F for the forward square R for the Right square so on and so forth,hudname=KingMovement,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=70,hudtext=Are You Sure You Want To Move There?Press Y Or N,hudname=Move?,hudhide=1,hudmake=display
;Movements
:state=0,activated=1:hudshow=Choose,state=1
:state=1,keypressed=19 1,keypressed=19 1:settargetname=RookR,hudunshow=Choose,hudshow=Sure?,state=4
:state=1,keypressed=19 1,keypressed=38 1:settargetname=RookL,hudunshow=Choose,hudshow=Sure?,state=5
:state=1,keypressed=48 1,keypressed=19 1:settargetname=BishopR,hudunshow=Choose,hudshow=Sure?,state=6
:state=1,keypressed=48 1,keypressed=38 1:settargetname=BishopL,hudunshow=Choose,hudshow=Sure?,state=7
:state=1,keypressed=49 1,keypressed=19 1:settargetname=KnightR,hudunshow=Choose,hudshow=Sure?,state=8
:state=1,keypressed=49 1,keypressed=38 1:settargetname=KnightL,hudunshow=Choose,hudshow=Sure?,state=9
:state=1,keypressed=25 1,keypressed=25 1:hudunshow=Choose,hudshow=Which?,state=2
:state=1,keypressed=25 1,keypressed=38 1:hudunshow=Choose,hudshow=Which?,state=3
:state=1,keypressed=37 1:settargetname=King,hudunshow=Choose,hudshow=Sure?,state=10
:state=1,keypressed=16 1:settargetname=Queen,hudunshow=Choose,hudshow=Sure?,state=11
:state=2,keypressed=2 1:settargetname=PawnR1,hudunshow=Which?,hudshow=Sure?,state=12
:state=2,keypressed=3 1:settargetname=PawnR2,hudunshow=Which?,hudshow=Sure?,state=13
:state=2,keypressed=4 1:settargetname=PawnR3,hudunshow=Which?,hudshow=Sure?,state=14
:state=2,keypressed=5 1:settargetname=PawnR4,hudunshow=Which?,hudshow=Sure?,state=15
:state=3,keypressed=2 1:settargetname=PawnL1,hudunshow=Which?,hudshow=Sure?,state=16
:state=3,keypressed=3 1:settargetname=PawnL2,hudunshow=Which?,hudshow=Sure?,state=17
:state=3,keypressed=4 1:settargetname=PawnL3,hudunshow=Which?,hudshow=Sure?,state=18
:state=3,keypressed=5 1:settargetname=PawnL4,hudunshow=Which?,hudshow=Sure?,state=19
:state=4,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=4,keypressed=49 1:hudunshow=Sure?,state=0
:state=5,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=5,keypressed=49 1:hudunshow=Sure?,state=0
:state=6,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=6,keypressed=49 1:hudunshow=Sure?,state=0
:state=7,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=7,keypressed=49 1:hudunshow=Sure?,state=0
:state=8,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=8,keypressed=49 1:hudunshow=Sure?,state=0
:state=9,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=9,keypressed=49 1:hudunshow=Sure?,state=0
:state=10,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=10,keypressed=49 1:hudunshow=Sure?,state=0
:state=11,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=11,keypressed=49 1:hudunshow=Sure?,state=0
:state=12,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=12,keypressed=49 1:hudunshow=Sure?,state=0
:state=13,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=13,keypressed=49 1:hudunshow=Sure?,state=0
:state=14,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=14,keypressed=49 1:hudunshow=Sure?,state=0
:state=15,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=15,keypressed=49 1:hudunshow=Sure?,state=0
:state=16,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=16,keypressed=49 1:hudunshow=Sure?,state=0
:state=17,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=17,keypressed=49 1:hudunshow=Sure?,state=0
:state=18,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=18,keypressed=49 1:hudunshow=Sure?,state=0
:state=19,keypressed=21 1:hudunshow=Sure?,activatetarget=1
:state=19,keypressed=49 1:hudunshow=Sure?,state=0
;End of Script
and the alttexture script assigned to the entities activated by the above script
;Artificial Intelligence Script
;Header
desc = when activated alttexture when not none regular texture
;Triggers
:activated=1:alttexture
:activated=0:alttexture
;End of Script
Are my scripts wrong? or is it the engine?
I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein