trouble with warping
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
el_timo

okay...i've put in the warp code from v1_rpg but i'v made it more simple as i don't want the effects becase they mess up my text box


void Warp(int x, int y)
{


entity.x[playerent] = x*16;
entity.y[playerent] = y*16;
Render();
}


and in my map vc i have the same codes as in "tropical adventure" obviously with the effects taken out

void cottage1entry()
{
Warp(11, 11);

}

void cottage1exit()
{
Warp(71, 58);

}

there is no error declared by verge yet when i try and use this function during game play nothing happens.

Posted on 2006-11-14 17:01:17

mcgrue

Are cottage1entry() or cottage1exit() actually ever being triggered? Add in some Log() statements into each to verify.

Are you sure you edited your map to have the proper zones activate when walked upon, and added cottage1entry() as the function to call when the zone is activated for the in-door of the cottage?

Posted on 2006-11-14 18:57:49

el_timo

Unless log statements arent visible then they're not being triggered, if this is the case i tried an exit statement after the log statements.


void cottage1entry()
{
Log("Hello!");

Warp(11, 11);
Log("Hello!");
Exit("succes");
}

I've checked to make sure its right

Posted on 2006-11-15 16:51:35

Overkill

By checking to make sure it's right, did it exit with the message "succes" [sic]? Also, Log() calls normally aren't visible from the program itself, but check v3.log. Alternatively, turn on "logconsole 1" in verge.cfg to make logs visible at run time.

Also, if that isn't the cause of the problem, perhaps you should check that playerent is initialized to the player's entity index. Show the event for the startup of your map, I have a feeling the problem might lie there if the Warp()'s not being executed properly.

How? Well, otherwise it will Warp() whichever entity corresponds to playerent, which could mean either the wrong entity, or no entity at all. Log(str(playerent)); and make sure it isn't another entity on the map.

Posted on 2006-11-15 16:58:32 (last edited on 2006-11-15 17:06:40)

Arkhan

This will sound corny but did you set the zone so that its ALWAYS activated? I am pretty sure you can set it up so that its random, ....check those settings..!

I believe its "Activate On" or something and you can put in 0-255, where 0 is always activate. that way itll launch the zone and whatever script you told it to use...

:)

Posted on 2007-02-16 13:52:48

Overkill

Quote:Originally posted by Arkhan

This will sound corny but did you set the zone so that its ALWAYS activated? I am pretty sure you can set it up so that its random, ....check those settings..!

I believe its "Activate On" or something and you can put in 0-255, where 0 is always activate. that way itll launch the zone and whatever script you told it to use...

:)


Actually 255 is always activate, 0 is never activate. It's like a percent except 0-255 instead for some reason.

Posted on 2007-02-16 19:50:06


Displaying 1-6 of 6 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.