Fun Votes

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
Post Reply
TheElderScroller
Posts: 4
Joined: Thu Dec 25, 2014 2:32 am

Fun Votes

Post by TheElderScroller »

Hello DDnet Community!

This is my first topic here and i just need some help with a vote..
I want to make a vote named "1", if voted removing itself and adding vote "2", removing when voted and adding "3", and so on....

i had it like this: 'add_vote 1 "remove_vote 1;add_vote 2 say end"

but if i want to expand it i get problems...

Thank You
User avatar
laxa
Posts: 226
Joined: Mon Aug 04, 2014 11:08 am
Player profile: http://ddnet.tw/players/laxa/

Re: Fun Votes

Post by laxa »

What's the point of this vote ?
TheElderScroller
Posts: 4
Joined: Thu Dec 25, 2014 2:32 am

Re: Fun Votes

Post by TheElderScroller »

That's the point, it's totally poitless...
I thought i post it in Off Topic cause I'm not sure where else...

The vote is just4fun, eventually i want to make a voting Quiz out of it :D
User avatar
laxa
Posts: 226
Joined: Mon Aug 04, 2014 11:08 am
Player profile: http://ddnet.tw/players/laxa/

Re: Fun Votes

Post by laxa »

...

If it's pointless, deen won't do it.
And I completely dislike this idea too.
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.tw/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Fun Votes

Post by Soreu »

Who said that deen have to do this? He just asked how to ...



TheElderScroller - to do this you need more cfg files, e.g.

line of your current .cfg:

Code: Select all

add_vote 1 "remove_vote 1; exec vote2.cfg"
vote2.cfg:

Code: Select all

add_vote 2 "remove_vote 2; exec vote3.cfg"
vote3.cfg:

Code: Select all

add_vote 2 "remove_vote 2; exec vote3.cfg"
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
TheElderScroller
Posts: 4
Joined: Thu Dec 25, 2014 2:32 am

Re: Fun Votes

Post by TheElderScroller »

i'll give a try, thx
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.tw/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Fun Votes

Post by Soreu »

now i see i did same line in 2nd and 3rd cfg file ;p
anyway, if you will have any troubles or questions - send me PM
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
TheElderScroller
Posts: 4
Joined: Thu Dec 25, 2014 2:32 am

Re: Fun Votes

Post by TheElderScroller »

Finally i managed it with cfg files.. THX ^^
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: Fun Votes

Post by deen »

Can you post the resulting config files for others to see how it works?
Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests