Scripting and putting scripts to Radiant -1 reply

Please wait...

MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#1 14 years ago

Hi! I have some scripts that I want to use in my SP map. I think that they are OK, but It would be better if You check it:

rem ( "comment" ); print ( "Behind You !!!" );

This is the simpliest script ever :D

I've compiled it to behind.ibi

I've put trigger_once and target_scriptrunner to my map. What next?




Guest

I didn't make it!

0 XP

 
#2 14 years ago

make a key/value on the scriptrunner of Usescript/behind

And be sure to target the trigger_once to the target_scriptrunner.




GothiX

No Time to Cry

50 XP

18th September 2003

0 Uploads

1,290 Posts

0 Threads

#3 14 years ago

Target the trigger_once to the target_scriptrunner and check the "runonactivator" box for the target_scriptrunner. Also, add the usescript / mapname/behind.ibi to that scriptrunner, and you're all set, if it wasn't for one mistake. In your script you have the following line; '

print ( "Behind You !!!" );

Which is wrong. It should be this:

print ( "!Behind You !!!" );

If you don't add an exclamation mark to the print line, it won't show.

EDIT: WADE, INSTAPOSTING SUCKS.




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#4 14 years ago

Should scriptrunner be "inactive", too?




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#5 14 years ago

Hmm... doesn't work (like always)




GothiX

No Time to Cry

50 XP

18th September 2003

0 Uploads

1,290 Posts

0 Threads

#6 14 years ago

It shouldn't be inactive, just runonactivator. Also, where exactly is your behind.ibi file?




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#7 14 years ago

In scripts\boxing.

Console doesn't shows message like "couldn't find file..."




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#8 14 years ago

Also I want to make 2 guys fighting (they should be enemies for everybody)

So I've made this:

part of npc file playerTeam TEAM_ENEMY enemyTeam TEAM_ENEMY

but they aren't fighting with anybody, like they are TEAM_PLAYER of everybody. What's wrong?




GothiX

No Time to Cry

50 XP

18th September 2003

0 Uploads

1,290 Posts

0 Threads

#9 14 years ago

JA can only handle two teams and nuetral, sorry.

Also, enter usescript / boxing/behind.ibi, because scripts never display a "Couldn't find file" error.




MeusH

°•°•°•°•°•°•°•°•°

50 XP

16th November 2003

0 Uploads

3,282 Posts

0 Threads

#10 14 years ago

OK. I will do it.

Can I make them fighting using script? I need them to cutscene (when I leart how to cutscene). Now player will just observe them?

And I think you are wrong... I had some errors "couldn't find script blah blah blah.ibi"