Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Saemtyh1

#1
Ok here it is call me silly... :P

This is my dialog
@1 What a wonderful day.
@2 What a crappy Day.
@3 I pooped my pants.

Here is the code.

function talk_score()
{
if Parser.Said("What a wonderful day.");
{
  GiveScore(100);
 


}

it give me an error...
Error (line 6): expected '('

What i want is 100 points for the first answer,  -100 for the second, and finally 1 point added for pooping your pants.  Then I want to exit the dialog. 

::)
Thanks for not calling me stupid in advance.
#2
I have a little problem.   I cant find anything related to using hotspots to change rooms.  Ive looked through the guide, and hotspots.ect and charicter.ect .  I have taken some visual basic and c++ training, but this is just frustrating.  All I want is for the player to walk over onto a hot spot and have it change rooms.  Here is what I sludged out.

//set bool
bool Hot;

// I make it false
Hot = false;


// If the bool is true change rooms.
if (Hot = true) {
  character.ChangeRoom(3, 366, 225)
 
  //if player is on hot spot....
 
  //this is my problem I need a var telling me hes on the spot or is there an easyer way.
  if hotspot.Enabled (Hot = true)
  // and yes i how what hotspot.Enabled does.  I just need something else there.
???

All i want is to know how to detect if player is on top of a hotspot.  Not changing rooms via a click (the easy way).  Maybe I'm just stupid, please help.  I was thinking i could do it from my char's position,

If char.pos > whatever char.changeroom. 

But I want it specifically related to all the borders of a hotspot.  Thanks in advance. :=
SMF spam blocked by CleanTalk