script
-
- Posts: 75
- Joined: Tue Jul 05, 2005 4:29 pm
script
CAN you tell me how to make a script where you must type everything exactly as programed like "lifegiver"
thanx much appretiated
thanx much appretiated
-
- Posts: 75
- Joined: Tue Jul 05, 2005 4:29 pm
K, I have the basis of the script down.
The hard part will be getting the "Walldecals" or the "HUD" to display
the letters ( numbers ) when the key is pressed.
I'm a little stuck on that part.
I'll need an idea how to get that done.
Wall decals would work, just need ALOT of them along with ALOT of triggers.
As for the HUD way to go, I havn't dove into that aspect of RF yet.
If you have an idea the way you would rather go let know.
The hard part will be getting the "Walldecals" or the "HUD" to display
the letters ( numbers ) when the key is pressed.
I'm a little stuck on that part.
I'll need an idea how to get that done.
Wall decals would work, just need ALOT of them along with ALOT of triggers.
As for the HUD way to go, I havn't dove into that aspect of RF yet.
If you have an idea the way you would rather go let know.
-
- Posts: 75
- Joined: Tue Jul 05, 2005 4:29 pm
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
the low level command
might be useful here 
Code: Select all
DrawText(char *Text, int XPos, int YPos, float Alpha, int Font#, int R, int G, int B );
// Draws the text Text at the screen position XPos, YPos using the font Font#.

- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
This to be harder than I thought
I can get the Cheat code to work just fine.
I used the word "Life"
The problem is there isn't much of a mystery to it.
All the player has to do is randomly hit keys and the "Life"
will eventually come up.
I could easily include an else factor to restart The script,
Hence there's still not much of a mystery. Just will take a little to
figure out.
My question is;
How Can I return what key was pressed and then have that letter
appear?
if(self.key_pressed=Key_A)
{
DrawText("A",SLOT_1,POS_DOWN,255.0,FONT,255,255,255);
}
if(self.key_pressed=Key_B)
{
DrawText("B",SLOT_1,POS_DOWN,255.0,FONT,255,255,255);
}
This is way to long. The entire alphabet?
I hope I'm making sense of my dilema.
Thanks

I can get the Cheat code to work just fine.
I used the word "Life"
The problem is there isn't much of a mystery to it.
All the player has to do is randomly hit keys and the "Life"
will eventually come up.
I could easily include an else factor to restart The script,
Hence there's still not much of a mystery. Just will take a little to
figure out.
My question is;
How Can I return what key was pressed and then have that letter
appear?
if(self.key_pressed=Key_A)
{
DrawText("A",SLOT_1,POS_DOWN,255.0,FONT,255,255,255);
}
if(self.key_pressed=Key_B)
{
DrawText("B",SLOT_1,POS_DOWN,255.0,FONT,255,255,255);
}
This is way to long. The entire alphabet?
I hope I'm making sense of my dilema.
Thanks
sorry to go off topic, but we have a lot of new script commands like this and no docs for them. is there any way we could get a list of the new commands added since 071 into the docs? cause if no one knows its there its kinda pointless to have them.
i know the dev team have a lot of stuff on their plates right now, so i'm not trying to be unnappreciative, i just wanted to remind you guys.
i know the dev team have a lot of stuff on their plates right now, so i'm not trying to be unnappreciative, i just wanted to remind you guys.
Got it.
It'll take a little time but as long as it works.
The script will have a scoring system in it called " T_S" ( Text_Score)
when the player hits "Enter" it will tally up the T_S and modify the
player's Text_Score attribute.
The score is the same as each letters defanition on the keyboard.
A will equal 26.
if the player types in "A" 2 times the T_S is now 26+26.
As of now I have 8 slots available.
Now..... the pawn in the Game is waiting for a triggerorder()
that will check the player Text_Score. and react accordingly.
Get it?
Like I said this will take a little time...
Does anyone out there want this script?
It'll take a little time but as long as it works.
The script will have a scoring system in it called " T_S" ( Text_Score)
when the player hits "Enter" it will tally up the T_S and modify the
player's Text_Score attribute.
The score is the same as each letters defanition on the keyboard.
A will equal 26.
if the player types in "A" 2 times the T_S is now 26+26.
As of now I have 8 slots available.
Now..... the pawn in the Game is waiting for a triggerorder()
that will check the player Text_Score. and react accordingly.
Get it?
Like I said this will take a little time...
Does anyone out there want this script?