Counting trigger
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Counting trigger
WHat would need to be in a trigger to count stuff? With my limited coding experience, it would have to have a counter in it, right? x=x+1? And how would you get it to input that number after each count? How would you get it to not redefine with each pattern appearance?
Alea iacta est. Serius regredi est.
Re: Counting trigger
I was going to help, but as I began, I realized I haven't coded at all in 2 (more?) years and my pathetic attempt at a simple counter has left me ashamed.
If anyone can fix this..:It might help. But not inside Genesis.
Similar to what you're looking for, though?
This leaves me wondering how I ever managed to make a functional clock in JS..
If anyone can fix this..:
Code: Select all
<!DOCTYPE html>
<html>
<body>
<canvas id="counterCanvas" width="400" height="200"
style="border:1px solid #c3c3c3; background-color: lightGrey;">
Sadly, your browser does not support the canvas element.
</canvas>
<script>
var canvas = document.getElementById("counterCanvas");
var ctx = canvas.getContext("2d");
var height = canvas.height*0.8;
var wide = canvas.width*0.8;
setInterval(tick,10000);
var counter = 0;
function tick(counter) {
counter = counter + 1;
if (counter == 6) {
ctx.font = height*0.5 + "px Helvetica Neue";
ctx.fillStyle="green";
ctx.fillText("One minute has passed!",20,height/2);
counter = 0;
}
}
</script>
</body>
</html>
Similar to what you're looking for, though?
This leaves me wondering how I ever managed to make a functional clock in JS..
- Tarax the Terrible
- Myth
- Posts: 1331
- Joined: 09 Mar 2010 20:33
- Location: UK
Re: Counting trigger
Don't think they want a timed counter. Instead an event counter.
Eowul posted the script for smiths counting items forged. In the client section. Everything u need to adapt that for whatever should be there
Eowul posted the script for smiths counting items forged. In the client section. Everything u need to adapt that for whatever should be there
http://genesisquests.pbworks.com/
Join up and help each other with Quests
Join up and help each other with Quests
- Tarax the Terrible
- Myth
- Posts: 1331
- Joined: 09 Mar 2010 20:33
- Location: UK
Re: Counting trigger
Here https://www.genesismud.org/forums/viewt ... =37&t=2257Tarax the Terrible wrote:Don't think they want a timed counter. Instead an event counter.
Eowul posted the script for smiths counting items forged. In the client section. Everything u need to adapt that for whatever should be there
http://genesisquests.pbworks.com/
Join up and help each other with Quests
Join up and help each other with Quests
Re: Counting trigger
Sweet mother of God, yes! Exactly what I wanted! Many thanks, Tarax!
Alea iacta est. Serius regredi est.
- Tarax the Terrible
- Myth
- Posts: 1331
- Joined: 09 Mar 2010 20:33
- Location: UK
Re: Counting trigger
Another satisfied customer lol *thumbup*
http://genesisquests.pbworks.com/
Join up and help each other with Quests
Join up and help each other with Quests
Re: Counting trigger
Oh my, this is lovely. Yes, I'm not sure what I was thinking before..Tarax the Terrible wrote:Here https://www.genesismud.org/forums/viewt ... =37&t=2257Tarax the Terrible wrote:Don't think they want a timed counter. Instead an event counter.
Eowul posted the script for smiths counting items forged. In the client section. Everything u need to adapt that for whatever should be there
- Tarax the Terrible
- Myth
- Posts: 1331
- Joined: 09 Mar 2010 20:33
- Location: UK
Re: Counting trigger
Those guys really know their stuff. Would like to see some screenshots of heavily customised game clients to illustrate what is possible.
http://genesisquests.pbworks.com/
Join up and help each other with Quests
Join up and help each other with Quests
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/