Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

A few quick questions


Howdy
 Share

Recommended Posts

Hey, I've just started out using eclipse again and I'm making a game for me and some friends to just play around on, and I have a few questions.

* Is it possible to change the Max Length of what a friendly NPC can say when you hit CTRL over them?
* Is it possible to make an item which when double clicked can warp you to somewhere?
* Is it possible to make an NPC stand still on one spot?

Thanks a lot, any help will be appreciated.
Link to comment
Share on other sites

Hello and welcome to eclipse, Howdy ;)

First of all
1: I am not so sure about this, you could have it scripted to say multiple messages though
2\. Scripted definitely :)
3\. Yes, when you put the NPC in define his X and Y (e.g 5, 5) then put NPC Avoids all around him
:)
Link to comment
Share on other sites

Go to Server/Scripts/ open Main.txt
Ctrl+f (find) ScriptedNPC
replace case 0 with
```
Case 0
Call PlayerMsg(index,"your message here",0)
Call PlayerMsg(index,"your message here",0)
'Etc, etc.
Exit Sub

```First of all edit the 'Your Message Here' parts
get rid of the 'etc. etc part
Put a new Call PlayerMsg(index,"",0) For each message :) (make sure it is BEFORE THE EXIT SUB)
then go make a new npc, set its behaviour to scripted,
put the bar on 0
make all of his stats at least 1, then save.
Now put him on a map and when you press ctrl all your messages will pop up
Link to comment
Share on other sites

Just use this one
```
Sub ScriptedNPC(Index, Script)
Select Case Script
Case 0
Call PlayerMsg(Index,"Welcome to Howdy's",0)
Call PlayerMsg(index,"Please follow on down these stairs to meet the next tutorial NPC",0)
Exit Sub

```Signs require enter to read, not control. If you want, you can just use the notice attribute in front of a sign as a makeshift one, if it still does not work.
Hope i helped.
:azn:
Link to comment
Share on other sites

Scripted Teleportation Item:
Sub ScriptedItems(index)
```
Case 0
Call PlayerWarp(index, X, Y, MAP)
Call PlayerMsg(index, "you have been warped to"& GetMapName(GetPlayerMap(index))&"!", BRIGHTGREEN)

```Replace the X with the x coordinate of the map u want to be warped to, Replace the Y with the y coordinate, and replace the MAP with the map #, Note, if that works, after u teleport, it will desplay a message telling u u got warped to: and then the Map Name.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...