GetZone();
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Rysen

Hey all, I'm currently in the process of porting the old Rysen Ranch code over to v3 and I've kind of run into a problem and hopeing someone can help!

How most of the game works, basically, is that there's one major function that checks to see which tile you've activated and acts accordingly. In the case of a Sign Post, I used a zone, got the event number returned and used a good ol' CallEvent();

My question is how would I go about this in v3? Since events are no longer numbered, I'm not really sure how GetZone() helps me since in the v3vergec.txt it tells me that it returns an int and not a string, which I'm pretty sure I'll need in order to use CallFunction().

Thanks in advance. ^_^

Posted on 2004-04-21 19:15:36

RageCage

I'd assume that it'd return the ID of the zone, but there doesnt appear to be a way of easily connecting that to a name of a zone...

Posted on 2004-04-21 23:13:28

vecna

well you dont want the zone NAME, you want the zone's script name.

Uhh. I need to add functions for this, but it probably wont make it in today's release.

Posted on 2004-04-21 23:42:42

Rysen

Much appreciated. ^_^

Posted on 2004-04-23 19:22:36

Zip

Quick hack:
CallFunction("Zone"+str(returned_zone));
...
void Zone1(){}

Zip

Posted on 2004-04-25 00:42:49 (last edited on 2004-04-25 00:42:50)


Displaying 1-5 of 5 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.