Thread: gs2 obstacles
View Single Post
  #2  
Old 10-13-2005, 07:06 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Quote:
Originally Posted by prozac424242
NPC Code:

if (created || playerenters)
{
loadmap mymap; // or whatever;
}



but how do you check for multiple events with gs2 other than this cumbersome repetition?
PHP Code:
function onCreated () {
  
doloadmap();
}

function 
onPlayerenters() {
  
doloadmap();
}

function 
doloadmap() {
  
loadmap("mymap");

I hope this isn't a literal example though - you only need to load the map once
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.
Reply With Quote