Code Monkey home page Code Monkey logo

Comments (6)

teschnei avatar teschnei commented on August 15, 2024

if you're having issues with your script, put it up on pastebin or privatepaste so i can see what you mean

from darkstar.

greatmonkey avatar greatmonkey commented on August 15, 2024

http://pastebin.com/QN5y0PFa

has up to Ghelsba maps, currently still adding the others in.

from darkstar.

teschnei avatar teschnei commented on August 15, 2024

what is your problem, specifically? what params are returning nil?

on a side note, castle zvahl keeps showing up because lua numbers are SIGNED 32 bit numbers, and the number for zvahl is the 32nd bit (which, in your implementation, should be subtracting 2147483648, not adding it). i really suggest you use the bit operators (bit.band, bit.bor) for operations that are dealing with bits instead of adding/subtracting powers of 2

from darkstar.

greatmonkey avatar greatmonkey commented on August 15, 2024

So this script is being updated from who ever did it before. As for what problems would be mapVar, when it gos to the function onEventUpdate, mapVar has nothing in it.

from darkstar.

teschnei avatar teschnei commented on August 15, 2024

ah, yeah, those will get wiped every time the script is run (the file is unloaded and reloaded)

you don't want to do it that way anyways (it would mess up if 2 people talked to the map npc at the same time)

from darkstar.

TeoTwawki avatar TeoTwawki commented on August 15, 2024

player:updateEvent(stuff) to solve loss of parameter values.

edit: odd, the last 2 posts weren't showing when I posted this.

In game it reloads the menu his event brings up instead of exiting - the event isn't over with. It's not a lost var, it's a parameter not present when it updates. In existing scripts similar looping menu's use updateEvent to change their params.

I got your message eon IRC when I woke up about updateEvent not fixing it. Sorry but I don't know enough to try and help further, and I wouldn't want to steer you wrong guessing at it.

from darkstar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.