: At the risk of revealing too much, When I make dink Invisable , I need him to become visable when he attacks or talks to people. Has this been done before? Can I use key scripts to restore his visable sprites and change a variable?( and what key #s are ctrl, space, and shift?)Is there an easier way?
Yes, you could use key scripts to change variables.
The key #s for ctrl, space, and shift aren't available for editing, they're scripted internally.
What are you using to make Dink invisable? sp_nodraw ?
Consider this...
Create a white, 1x1 .bmp and set it up with a weapon-type script, replacing Dink's walk, idle, and attack with the bmp when the item is equipped. Then in the "use" proc, reload the normal graphics, and set cur_item to equal 1 (his fists).
To make him visable when talking, I think you'll need to do an if/then a global variable in all sprites he could talk to in that part of the game. If invisibilty is active, the "talk" proc of the sprite would reload the original graphics just like "use" from above. Then of course, "arm" and "disarm" in the invisible-item/weapon script would also turn the variable on and off respectively.
Oh, wait, you said an easier way... nevermind ;)