Author Topic: Need help on making a very simple Script.  (Read 2794 times)

0 Members and 1 Guest are viewing this topic.

Nittmo

  • Goblin Pup
  • *
  • Posts: 41
  • Reputation: +0/-0
Need help on making a very simple Script.
« on: August 21, 2003 02:43 am CDT »
I would like help making a extremely simple script

which lets you get a pop-up of text that is whatever

you want it to be, you can't edit the text in-game

but you add text in the script file its-self

--

Example:


I want to quickly get referance to spells names I'll

copy the Spells list you have in the Documentation

Forum and paste it in the script, so when I hit

Control-L I'll get a hud that'll give me that info

And I hit Control-L Again to get it off my screen.

--

If possible make it scrollable (I keep my resolution

down low.)

--

Another thing which I'm sure is not possible because

if it was it would be done many times over, make

links on the hud linking to other pages.

--

All I need is maybe some code that I can copy and paste, or a good Tribes scripting Tutorial

--

Hope I wasn't too "wordy" I double spaced and seperated sentances to help (hop it didn't make it worse :roll: )
« Last Edit: December 31, 1969 06:00 pm CST by Nittmo »
-Nittmo

eViL

  • Uber Menace
  • *******
  • Posts: 1,022
  • Reputation: +0/-0
(No subject)
« Reply #1 on: August 21, 2003 02:52 am CDT »
personally i think it made it harder to understand.  but anyways, how low do you keep your res, because that is a major issue here apparently.  the hud code and what not is easy, making a hud scrollable is another story (can be done but with some work) and making the hud clickable.. well, that would require a hell of a lot of work.. lol.

Code: [Select]
$Spell::List[0] = "Thorn";
$Spell::List[1] = "Firebomb";
//etc....

function SpellHud::Text()
{

for(%i=0; $Spell::List[%i] != ""; %i++)
{
Hud::addTextLine(SpellNameHud, $Spell::List[%i]);
}

return 90;
}

Hud::new(SpellNameHud, SpellHud::Text, "0 80 110 300");

function SpellHud::Toggle()
{
Hud::toggleDisplay(SpellNameHud);
}

bindCommand(keyboard0, make, control, "l", TO, "SpellHud::Toggle();");


if you added all the spell names and changed the hud size around, that could be used to display a list of all the spell names
« Last Edit: December 31, 1969 06:00 pm CST by eViL »
Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.

Nittmo

  • Goblin Pup
  • *
  • Posts: 41
  • Reputation: +0/-0
(No subject)
« Reply #2 on: August 21, 2003 02:58 am CDT »
Wow, fast reply, thanks a lot. :)
« Last Edit: December 31, 1969 06:00 pm CST by Nittmo »
-Nittmo