Giter Site home page Giter Site logo

erogodic's Introduction

hi, i'm shru and i'm wild about H.T.M.L.

  • ๐Ÿ”ญ Iโ€™m currently working on Wizardry IV / 4-plate squat.
  • ๐ŸŒฑ Iโ€™m currently learning the true meaning of Christmas.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on destroying all of the 5G towers.
  • ๐Ÿค” Iโ€™m looking for help with finding some sailors.
  • ๐Ÿ’ฌ Ask me about Vajrayana practice.
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐Ÿ˜„ Pronouns: ๆˆ‘/ใ€…
  • โšก Fun fact: Italians make the ideal lover.

erogodic's People

Contributors

oniietzschan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

erogodic's Issues

Please add an example

Your library is very interesting and I think it'd be awesome if you included an example! Regards

first time dialog script duplication, then works properly

Hi Shru. In a table i define a function called scriptFunc which has the commands that trigger msg, option, menu etc.

Then i call this function script where

function Player.setScript(scriptFunc)
	Player.script = Erogodic(scriptFunc)
  :defineAttributes({
    'name',
  })
  :addMacro('giveItem',function(item)
    local lastName = get('name')
    name ""
    msg("You got the " .. item .. "!")
    name(lastName)
  end)
	:addMacro('zone',function(zoneName)
		Player.setZone(zoneName)
	end)
	:addMacro("var",function(varName,value)
		if value then
			Player.setVariable(varName,value)
		else
			return Player.getVariable(varName)
		end
	end)
	:addMacro("next",function(value)
		if value==nil then
			value=Player.getVariable("state")+1
		end
		Player.setVariable("state",value)
	end)
	:addMacro("bg",function(fileName)
		World.setBackground(fileName)
	end)
end

The question is. Is there a way to just set a script function without creating the whole script table and repeating the addMacro or addAttribute?

So far i found only a _pushScript function that works. But the first time i use the erogodic lib it repeats the whole dialog twice and then it continues to work properly. So i still looking for the problem solution on my side.

Reusing script

Works the first time around. Second time says "Script is finished" when player comes back and initiates conversation again. Love2d by the way. Something I'm doing wrong?

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.